1. 28 Feb, 2017 4 commits
  2. 27 Feb, 2017 2 commits
    • Linus Torvalds's avatar
      Merge tag 'trace-v4.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 45554b23
      Linus Torvalds authored
      Pull another tracing update from Steven Rostedt:
       "Commit 79c6f448 ("tracing: Fix hwlat kthread migration") fixed a
        bug that was caused by a race condition in initializing the hwlat
        thread. When fixing this code, I realized that it should have been
        done differently. Instead of doing the rewrite and sending that to
        stable, I just sent the above commit to fix the bug that should be
        back ported.
      
        This commit is on top of the quick fix commit to rewrite the code the
        way it should have been written in the first place"
      
      * tag 'trace-v4.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Clean up the hwlat binding code
      45554b23
    • Linus Torvalds's avatar
      Merge tag 'trace-v4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 79b17ea7
      Linus Torvalds authored
      Pull tracing updates from Steven Rostedt:
       "This release has no new tracing features, just clean ups, minor fixes
        and small optimizations"
      
      * tag 'trace-v4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (25 commits)
        tracing: Remove outdated ring buffer comment
        tracing/probes: Fix a warning message to show correct maximum length
        tracing: Fix return value check in trace_benchmark_reg()
        tracing: Use modern function declaration
        jump_label: Reduce the size of struct static_key
        tracing/probe: Show subsystem name in messages
        tracing/hwlat: Update old comment about migration
        timers: Make flags output in the timer_start tracepoint useful
        tracing: Have traceprobe_probes_write() not access userspace unnecessarily
        tracing: Have COMM event filter key be treated as a string
        ftrace: Have set_graph_function handle multiple functions in one write
        ftrace: Do not hold references of ftrace_graph_{notrace_}hash out of graph_lock
        tracing: Reset parser->buffer to allow multiple "puts"
        ftrace: Have set_graph_functions handle write with RDWR
        ftrace: Reset fgd->hash in ftrace_graph_write()
        ftrace: Replace (void *)1 with a meaningful macro name FTRACE_GRAPH_EMPTY
        ftrace: Create a slight optimization on searching the ftrace_hash
        tracing: Add ftrace_hash_key() helper function
        ftrace: Convert graph filter to use hash tables
        ftrace: Expose ftrace_hash_empty and ftrace_lookup_ip
        ...
      79b17ea7
  3. 26 Feb, 2017 1 commit
    • Linus Torvalds's avatar
      Merge tag 'watchdog-for-linus-v4.11' of... · e5d56efc
      Linus Torvalds authored
      Merge tag 'watchdog-for-linus-v4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull watchdog updates from Guenter Roeck:
       "Wim asked me to handle the watchdog pull request this time around.
      
        Key changes:
      
         - New drivers: Cortina Gemini, ZTE's zx2967 family, NIC7018
      
         - Convert to use device managed functions: ebc-c384_wdt, tegra_wdt,
           da9063_wdt, da9062_wdt, da9055_wdt, da9052_wdt, bcm2835_wdt,
           mena21_wdt, wm831x_wdt, digicolor_wdt, intel-mid_wdt, meson_wdt,
           sunxi_wdt, aspeed_wdt, coh901327_wdt, iTCO_wdt
      
         - Use watchdog core to install restart handler: tangox, dw_wdt,
           bcm2835_wdt, asm9260_wdt, bcm47xx_wdt
      
         - Convert ts72xx_wdt driver to watchdog core
      
         - Let core handle heartbeat in ep93xx_wdt driver
      
         - Enable COMPILE_TEST where possible
      
         - Various other improvements"
      
      * tag 'watchdog-for-linus-v4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (54 commits)
        watchdog: s3c2410: Add prefix to local function
        watchdog: s3c2410: Select MFD_SYSCON on all Exynos platforms
        watchdog: s3c2410: Use dev_dbg instead of pr_info
        watchdog: s3c2410: Fix infinite interrupt in soft mode
        watchdog: s3c2410: Remove confusing CONFIG prefix from local defines
        watchdog: softdog: make pretimeout support a compile option
        watchdog: zx2967: add watchdog controller driver for ZTE's zx2967 family
        dt: bindings: add documentation for zx2967 family watchdog controller
        watchdog: sama5d4: Implement resume hook
        watchdog: sama5d4: Cache MR instead of a partial config
        watchdog: ts72xx_wdt: convert driver to watchdog core
        watchdog: ep93xx_wdt: cleanup and let the core handle the heartbeat
        watchdog: RDC321X_WDT always depends on PCI
        watchdog: add driver for Cortina Gemini watchdog
        watchdog: add DT bindings for Cortina Gemini
        watchdog: constify watchdog_ops structures
        watchdog: Introduce watchdog_stop_on_unregister helper
        watchdog: ebc-c384_wdt: Utilize devm_ functions in driver probe callback
        watchdog: tegra_wdt: Convert to use device managed functions
        watchdog: da9063_wdt: Convert to use device managed functions
        ...
      e5d56efc
  4. 25 Feb, 2017 33 commits
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-4.11-rc1' of... · c4f3f22e
      Linus Torvalds authored
      Merge tag 'linux-kselftest-4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull Kselftest update from Shuah Khan:
       "This update consists of:
      
         - fixes to several existing tests from Stafford Horne
      
         - cpufreq tests from Viresh Kumar
      
         - Selftest build and install fixes from Bamvor Jian Zhang and Michael
           Ellerman
      
         - Fixes to protection-keys tests from Dave Hansen
      
         - Warning fixes from Shuah Khan"
      
      * tag 'linux-kselftest-4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (28 commits)
        selftests/powerpc: Fix remaining fallout from recent changes
        selftests/powerpc: Fix the clean rule since recent changes
        selftests: Fix the .S and .S -> .o rules
        selftests: Fix the .c linking rule
        selftests: Fix selftests build to just build, not run tests
        selftests, x86, protection_keys: fix wrong offset in siginfo
        selftests, x86, protection_keys: fix uninitialized variable warning
        selftest: cpufreq: Update MAINTAINERS file
        selftest: cpufreq: Add special tests
        selftest: cpufreq: Add support to test cpufreq modules
        selftest: cpufreq: Add suspend/resume/hibernate support
        selftest: cpufreq: Add support for cpufreq tests
        selftests: Add intel_pstate to TARGETS
        selftests/intel_pstate: Update makefile to match new style
        selftests/intel_pstate: Fix warning on loop index overflow
        cpupower: Restore format of frequency-info limit
        selftests/futex: Add headers to makefile dependencies
        selftests/futex: Add stdio used for logging
        selftests: x86 protection_keys remove dead code
        selftests: x86 protection_keys fix unused variable compile warnings
        ...
      c4f3f22e
    • Linus Torvalds's avatar
      Merge tag 'for-linus-4.11-ofs2' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux · cb419553
      Linus Torvalds authored
      Pull orangefs updates from Mike Marshall:
       "Orangefs: cleanups, a protocol fix and an added configuration button.
      
        Cleanups:
      
         - silence harmless integer overflow warning (from
           dan.carpenter@oracle.com)
      
         - Dan Carpenter influenced debugfs cleanups.
      
         - remove orangefs_backing_dev_info (from jack@suse.cz)
      
        Protocol fix:
      
         - fix buffer size mis-match between kernel space and user space
      
        New configuration button:
      
         - support readahead_readcnt parameter"
      
      * tag 'for-linus-4.11-ofs2' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux:
        orangefs: fix buffer size mis-match between kernel space and user space.
        orangefs: Dan Carpenter influenced cleanups...
        orangefs: Remove orangefs_backing_dev_info
        orangefs: Support readahead_readcnt parameter.
        orangefs: silence harmless integer overflow warning
      cb419553
    • Linus Torvalds's avatar
      Merge branch 'for-linus-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs · 9003ed1f
      Linus Torvalds authored
      Pull btrfs updates from Chris Mason:
       "This has a series of fixes and cleanups that Dave Sterba has been
        collecting.
      
        There is a pretty big variety here, cleaning up internal APIs and
        fixing corner cases"
      
      * 'for-linus-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: (124 commits)
        Btrfs: use the correct type when creating cow dio extent
        Btrfs: fix deadlock between dedup on same file and starting writeback
        btrfs: use btrfs_debug instead of pr_debug in transaction abort
        btrfs: btrfs_truncate_free_space_cache always allocates path
        btrfs: free-space-cache, clean up unnecessary root arguments
        btrfs: convert btrfs_inc_block_group_ro to accept fs_info
        btrfs: flush_space always takes fs_info->fs_root
        btrfs: pass fs_info to (more) routines that are only called with extent_root
        btrfs: qgroup: Move half of the qgroup accounting time out of commit trans
        btrfs: remove unused parameter from adjust_slots_upwards
        btrfs: remove unused parameters from __btrfs_write_out_cache
        btrfs: remove unused parameter from cleanup_write_cache_enospc
        btrfs: remove unused parameter from __add_inode_ref
        btrfs: remove unused parameter from clone_copy_inline_extent
        btrfs: remove unused parameters from btrfs_cmp_data
        btrfs: remove unused parameter from __add_inline_refs
        btrfs: remove unused parameters from scrub_setup_wr_ctx
        btrfs: remove unused parameter from create_snapshot
        btrfs: remove unused parameter from init_first_rw_device
        btrfs: remove unused parameter from __btrfs_alloc_chunk
        ...
      9003ed1f
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v4.11-1' of git://git.infradead.org/linux-platform-drivers-x86 · 94eae803
      Linus Torvalds authored
      Pull x86 platform driver updates from Darren Hart:
       "Big picture:
      
         - New intel_turbo_max_3 driver, providing max core frequency
           information to the scheduler. Intel PMC APL support, s0ix read API,
           and fixes.
      
         - New Silead touchscreen platform touchscreen descriptions.
           Additional hotkey support for the intel-hid driver.
      
         - New model support for dell-laptop and hp_accel.
      
         - Several cleanups, especially to the fujitsu-laptop and
           intel_mid_powerbtn drivers.
      
        Detail summary:
      
        platorm/x86:
         - silead depends on I2C being built-in
         - add support for devices with Silead touchscreens
         - Support Turbo Boost Max 3.0 for non HWP systems
      
        intel_turbo_max_3:
         - make it explicitly non-modular
      
        dell-laptop:
         - Add Latitude 7480 and others to the DMI whitelist
      
        intel-hid:
         - Support 5 button array
      
        thinkpad_acpi:
         - Call led_classdev_notify_brightness_hw_changed on kbd brightness change
         - Use brightness_set_blocking callback for LEDs
         - Stop setting led_classdev brightness directly
      
        acer-wmi:
         - add another KEY_WLAN keycode
         - Inform firmware that RF Button Driver is active
         - setup accelerometer when machine has appropriate notify event
      
        asus-wireless:
         - Fix indentation
         - Use per-HID HSWC parameters
      
        intel_pmc_ipc:
         - Add APL PMC PCI Id
         - read s0ix residency API
         - Remove unused iTCO_version variable
      
        alienware-wmi:
         - Remove header duplicate
      
        intel_pmc_core:
         - fix out-of-bounds accesses on stack
      
        intel_mid_powerbtn:
         - Use SCU IPC directly
         - Unify IRQ acknowledgment
         - Move comment to where it belongs
         - Unify PBSTATUS access
         - Remove snail address
         - Sort headers alphabetically
         - Join string literals
         - Enable driver for Merrifield
         - Acknowledge interrupts
         - Factor out mfld_ack()
         - Introduce driver data
         - Substitute mfld by mid
         - Convert to use devm_*()
      
        fujitsu-laptop:
         - make hotkey handling functions more similar
         - break up complex loop condition
         - move keycode processing to separate functions
         - decrease indentation in acpi_fujitsu_hotkey_notify()
         - simplify logolamp_get()
         - rework logolamp_set() to properly handle errors
         - set default trigger for radio LED to rfkill-any
      
        dell-smbios:
         - Auto-select as needed
      
        intel_mid_thermal:
         - Fix module autoload
         - Remove duplicated platform device ID
      
        mlx-platform:
         - mlxcpld-hotplug driver style fixes
      
        hp_accel:
         - Add support for HP ZBook 17"
      
      * tag 'platform-drivers-x86-v4.11-1' of git://git.infradead.org/linux-platform-drivers-x86: (45 commits)
        platform/x86: intel_turbo_max_3: make it explicitly non-modular
        platform/x86: dell-laptop: Add Latitude 7480 and others to the DMI whitelist
        platform/x86: intel-hid: Support 5 button array
        platform/x86: thinkpad_acpi: Call led_classdev_notify_brightness_hw_changed on kbd brightness change
        platform/x86: thinkpad_acpi: Use brightness_set_blocking callback for LEDs
        platform/x86: thinkpad_acpi: Stop setting led_classdev brightness directly
        leds: class: Add new optional brightness_hw_changed attribute
        platform/x86: acer-wmi: add another KEY_WLAN keycode
        platform/x86: acer-wmi: Inform firmware that RF Button Driver is active
        platform/x86: asus-wireless: Fix indentation
        platform/x86: asus-wireless: Use per-HID HSWC parameters
        platform/x86: intel_pmc_ipc: Add APL PMC PCI Id
        platform/x86: intel_pmc_ipc: read s0ix residency API
        platform/x86: alienware-wmi: Remove header duplicate
        platform/x86: intel_mid_powerbtn: Use SCU IPC directly
        platform/x86: intel_mid_powerbtn: Unify IRQ acknowledgment
        platform/x86: intel_mid_powerbtn: Move comment to where it belongs
        platform/x86: intel_mid_powerbtn: Unify PBSTATUS access
        platform/x86: intel_pmc_core: fix out-of-bounds accesses on stack
        platform/x86: silead depends on I2C being built-in
        ...
      94eae803
    • Linus Torvalds's avatar
      Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 5d8a00ee
      Linus Torvalds authored
      Pull clk updates from Stephen Boyd:
       "The usual collection of new drivers, non-critical fixes, and updates
        to existing clk drivers. The bulk of the work is on Allwinner and
        Rockchip SoCs, but there's also an Intel Atom driver in here too.
      
        New Drivers:
         - Tegra BPMP firmware
         - Hisilicon hi3660 SoCs
         - Rockchip rk3328 SoCs
         - Intel Atom PMC
         - STM32F746
         - IDT VersaClock 5P49V5923 and 5P49V5933
         - Marvell mv98dx3236 SoCs
         - Allwinner V3s SoCs
      
        Removed Drivers:
         - Samsung Exynos4415 SoCs
      
        Updates:
         - Migrate ABx500 to OF
         - Qualcomm IPQ4019 CPU clks and general PLL support
         - Qualcomm MSM8974 RPM
         - Rockchip non-critical fixes and clk id additions
         - Samsung Exynos4412 CPUs
         - Socionext UniPhier NAND and eMMC support
         - ZTE zx296718 i2s and other audio clks
         - Renesas CAN and MSIOF clks for R-Car M3-W
         - Renesas resets for R-Car Gen2 and Gen3 and RZ/G1
         - TI CDCE913, CDCE937, and CDCE949 clk generators
         - Marvell Armada ap806 CPU frequencies
         - STM32F4* I2S/SAI support
         - Broadcom BCM2835 DSI support
         - Allwinner sun5i and A80 conversion to new style clk bindings"
      
      * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (130 commits)
        clk: renesas: mstp: ensure register writes complete
        clk: qcom: Do not drop device node twice
        clk: mvebu: adjust clock handling for the CP110 system controller
        clk: mvebu: Expand mv98dx3236-core-clock support
        clk: zte: add i2s clocks for zx296718
        clk: sunxi-ng: sun9i-a80: Fix wrong pointer passed to PTR_ERR()
        clk: sunxi-ng: select SUNXI_CCU_MULT for sun5i
        clk: sunxi-ng: Check kzalloc() for errors and cleanup error path
        clk: tegra: Add BPMP clock driver
        clk: uniphier: add eMMC clock for LD11 and LD20 SoCs
        clk: uniphier: add NAND clock for all UniPhier SoCs
        ARM: dts: sun9i: Switch to new clock bindings
        clk: sunxi-ng: Add A80 Display Engine CCU
        clk: sunxi-ng: Add A80 USB CCU
        clk: sunxi-ng: Add A80 CCU
        clk: sunxi-ng: Support separately grouped PLL lock status register
        clk: sunxi-ng: mux: Get closest parent rate possible with CLK_SET_RATE_PARENT
        clk: sunxi-ng: mux: honor CLK_SET_RATE_NO_REPARENT flag
        clk: sunxi-ng: mux: Fix determine_rate for mux clocks with pre-dividers
        clk: qcom: SDHCI enablement on Nexus 5X / 6P
        ...
      5d8a00ee
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 7067739d
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
       "I2C has for you two new drivers (Tegra BPMP and STM32F4), interrupt
        support for pca954x muxes, and a bunch of driver bugfixes and
        improvements. Nothing really special this cycle.
      
        A few commits have been added to my tree just recently. Those are the
        Tegra BPMP driver and a few straightforward bugfixes or cleanups which
        I prefer to have upstream rather soonish. The rest had proper
        linux-next exposure"
      
      * 'i2c/for-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (25 commits)
        i2c: thunderx: Replace pci_enable_msix()
        i2c: exynos5: fix arbitration lost handling
        i2c: exynos5: disable fifo-almost-empty irq signal when necessary
        i2c: at91: ensure state is restored after suspending
        i2c: bcm2835: Avoid possible NULL ptr dereference
        i2c: Add Tegra BPMP I2C proxy driver
        dt-bindings: Add Tegra186 BPMP I2C binding
        misc: eeprom: at24: use device_property_*() functions instead of of_get_property()
        i2c: mux: pca954x: Add interrupt controller support
        dt: bindings: i2c-mux-pca954x: Add documentation for interrupt controller
        i2c: mux: pca954x: Add missing pca9542 definition to chip_desc
        i2c: riic: correctly finish transfers
        i2c: i801: Add support for Intel Gemini Lake
        i2c: mux: pca9541: Export OF device ID table as module aliases
        i2c: mux: pca954x: Export OF device ID table as module aliases
        i2c: mux: mlxcpld: remove unused including <linux/version.h>
        i2c: busses: constify i2c_algorithm structures
        i2c: i2c-mux-gpio: rename i2c-gpio-mux to i2c-mux-gpio
        i2c: sh_mobile: document support for r8a7796 (R-Car M3-W)
        i2c: i2c-cros-ec-tunnel: Reduce logging noise
        ...
      7067739d
    • Linus Torvalds's avatar
      Merge tag 'for-next-dma_ops' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma · ac1820fb
      Linus Torvalds authored
      Pull rdma DMA mapping updates from Doug Ledford:
       "Drop IB DMA mapping code and use core DMA code instead.
      
        Bart Van Assche noted that the ib DMA mapping code was significantly
        similar enough to the core DMA mapping code that with a few changes it
        was possible to remove the IB DMA mapping code entirely and switch the
        RDMA stack to use the core DMA mapping code.
      
        This resulted in a nice set of cleanups, but touched the entire tree
        and has been kept separate for that reason."
      
      * tag 'for-next-dma_ops' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (37 commits)
        IB/rxe, IB/rdmavt: Use dma_virt_ops instead of duplicating it
        IB/core: Remove ib_device.dma_device
        nvme-rdma: Switch from dma_device to dev.parent
        RDS: net: Switch from dma_device to dev.parent
        IB/srpt: Modify a debug statement
        IB/srp: Switch from dma_device to dev.parent
        IB/iser: Switch from dma_device to dev.parent
        IB/IPoIB: Switch from dma_device to dev.parent
        IB/rxe: Switch from dma_device to dev.parent
        IB/vmw_pvrdma: Switch from dma_device to dev.parent
        IB/usnic: Switch from dma_device to dev.parent
        IB/qib: Switch from dma_device to dev.parent
        IB/qedr: Switch from dma_device to dev.parent
        IB/ocrdma: Switch from dma_device to dev.parent
        IB/nes: Remove a superfluous assignment statement
        IB/mthca: Switch from dma_device to dev.parent
        IB/mlx5: Switch from dma_device to dev.parent
        IB/mlx4: Switch from dma_device to dev.parent
        IB/i40iw: Remove a superfluous assignment statement
        IB/hns: Switch from dma_device to dev.parent
        ...
      ac1820fb
    • Linus Torvalds's avatar
      Merge tag 'fbdev-v4.11' of git://github.com/bzolnier/linux · edccb594
      Linus Torvalds authored
      Pull fbdev updates from Bartlomiej Zolnierkiewicz:
      
       - fix for font color when console is switched to another fb driver
      
       - deferred probing fixes for simplefb driver
      
       - preparations to add support of an optional GPIO to enable panel for
         ARM CLCD driver
      
       - some improvements for ssd1307fb driver
      
       - cleanups for OMAP fbdev LCD drivers
      
       - misc fixes/cleanups for various fb drivers
      
      * tag 'fbdev-v4.11' of git://github.com/bzolnier/linux: (30 commits)
        video: fbdev: fsl-diu-fb: fix spelling mistake "palette"
        fbdev: ssd1307fb: include linux/gpio/consumer.h
        video: fbdev: fsl-diu-fb: remove impossible condition
        video: fbdev: amifb: remove impossible condition
        fbdev/ssd1307fb: clear screen in probe
        fbdev/ssd1307fb: add support to enable VBAT
        fbdev: ssd1307fb: Make reset gpio devicetree property optional
        fbdev: ssd1307fb: Remove reset-active-low from the DT binding document
        fbdev: ssd1307fb: Start to use gpiod API for reset gpio
        video: fbdev: sh_mobile_lcdcfb: fix error return code in sh_mobile_lcdc_probe()
        video: fbdev: offb: switch to using for_each_node_by_type
        video/console: use setup_timer and mod_timer instead of init_timer
        fbdev: omap/lcd: Make callbacks optional
        fbdev: omap/lcd: Staticize non-exported lcd_panel structs
        fbdev: omap/lcd: Remove no-op driver callbacks
        video/mbx: use simple_open()
        video: fbdev: stifb: handle NULL return value from ioremap_nocache
        video: fbdev: pmagb-b-fb: Remove bad `__init' annotation
        video: fbdev: pmag-ba-fb: Remove bad `__init' annotation
        video: ARM CLCD: use panel device node for getting backlight and mode
        ...
      edccb594
    • Joe Perches's avatar
      treewide: Remove remaining executable attributes from source files · 6e5c8381
      Joe Perches authored
      These are the current source files that should not have
      executable attributes set.
      
      [ Normally this would be sent through Andrew Morton's tree
        but his quilt tools don't like permission only patches. ]
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6e5c8381
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 7b46588f
      Linus Torvalds authored
      Merge more updates from Andrew Morton:
      
       - almost all of the rest of MM
      
       - misc bits
      
       - KASAN updates
      
       - procfs
      
       - lib/ updates
      
       - checkpatch updates
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (124 commits)
        checkpatch: remove false unbalanced braces warning
        checkpatch: notice unbalanced else braces in a patch
        checkpatch: add another old address for the FSF
        checkpatch: update $logFunctions
        checkpatch: warn on logging continuations
        checkpatch: warn on embedded function names
        lib/lz4: remove back-compat wrappers
        fs/pstore: fs/squashfs: change usage of LZ4 to work with new LZ4 version
        crypto: change LZ4 modules to work with new LZ4 module version
        lib/decompress_unlz4: change module to work with new LZ4 module version
        lib: update LZ4 compressor module
        lib/test_sort.c: make it explicitly non-modular
        lib: add CONFIG_TEST_SORT to enable self-test of sort()
        rbtree: use designated initializers
        linux/kernel.h: fix DIV_ROUND_CLOSEST to support negative divisors
        lib/find_bit.c: micro-optimise find_next_*_bit
        lib: add module support to atomic64 tests
        lib: add module support to glob tests
        lib: add module support to crc32 tests
        kernel/ksysfs.c: add __ro_after_init to bin_attribute structure
        ...
      7b46588f
    • Thomas Gleixner's avatar
      mac80211_hwsim: Replace bogus hrtimer clockid · 915f3e3f
      Thomas Gleixner authored
      mac80211_hwsim initializes a hrtimer with clockid CLOCK_MONOTONIC_RAW.
      That's not supported.
      
      Use CLOCK_MONOTNIC instead.
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      915f3e3f
    • Mike Marshall's avatar
    • Paul Gortmaker's avatar
      platform/x86: intel_turbo_max_3: make it explicitly non-modular · af050abb
      Paul Gortmaker authored
      The Kconfig currently controlling compilation of this code is:
      
      drivers/platform/x86/Kconfig:config INTEL_TURBO_MAX_3
      drivers/platform/x86/Kconfig:   bool "Intel Turbo Boost Max Technology 3.0 enumeration driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the couple traces of modular infrastructure use, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      We do uncover some implicit includes during build coverage that
      were hidden behind the module.h which pulls in a lot of dependants.
      
      Cc: Andy Shevchenko <andy@infradead.org>
      Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Cc: platform-driver-x86@vger.kernel.org
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      af050abb
    • Alex Hung's avatar
      platform/x86: dell-laptop: Add Latitude 7480 and others to the DMI whitelist · 8d2c4538
      Alex Hung authored
      This is to support Latitude 7480 and many other newer Dell laptops.
      Signed-off-by: default avatarAlex Hung <alex.hung@canonical.com>
      Reviewed-by: default avatarPali Rohár <pali.rohar@gmail.com>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      8d2c4538
    • Alex Hung's avatar
      platform/x86: intel-hid: Support 5 button array · bd5762a0
      Alex Hung authored
      New firmwares include a feature called 5 button array that supports
      super key, volume up/down, rotation lock and power button. Support
      for this feature is required to fix power button on some recent
      systems.
      
      This patch was tested on a Dell Latitude 7480.
      Signed-off-by: default avatarAlex Hung <alex.hung@canonical.com>
      Reviewed-by: default avatarMichał Kępień <kernel@kempniu.pl>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      bd5762a0
    • Hans de Goede's avatar
      platform/x86: thinkpad_acpi: Call led_classdev_notify_brightness_hw_changed on... · c685e20d
      Hans de Goede authored
      platform/x86: thinkpad_acpi: Call led_classdev_notify_brightness_hw_changed on kbd brightness change
      
      Make thinkpad_acpi call led_classdev_notify_brightness_hw_changed on the
      kbd_led led_classdev registered by thinkpad_acpi when the kbd backlight
      brightness is changed through the hotkey.
      
      This will allow userspace to monitor (poll) for brightness changes on
      these LEDs caused by the hotkey.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      c685e20d
    • Hans de Goede's avatar
      platform/x86: thinkpad_acpi: Use brightness_set_blocking callback for LEDs · 86ec0c2c
      Hans de Goede authored
      Now a days the LED core can take care of executing brightness_set from
      a workqueue if it needs to sleep, make use of this and remove a bunch
      of DIY code for this.
      
      Since this commit removes the workqueue usage for LEDs, the
      led_sysfs_blink_set callback may now also sleep, this is fine.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      86ec0c2c
    • Hans de Goede's avatar
      platform/x86: thinkpad_acpi: Stop setting led_classdev brightness directly · 06da5325
      Hans de Goede authored
      There is no need to set the led_classdev's brightness value from
      its set_brightness callback, this is taken care of by the led-core and
      thinkpad_acpi really should not be mucking with it.
      
      Note that kbdlight_set_level_and_update() is still used by the old
      thinpad_acpi specific sysfs interface for the led, so we cannot
      remove it.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      06da5325
    • Hans de Goede's avatar
      leds: class: Add new optional brightness_hw_changed attribute · b8c5099b
      Hans de Goede authored
      Some LEDs may have their brightness level changed autonomously
      (outside of kernel control) by hardware / firmware. This commit
      adds support for an optional brightness_hw_changed attribute to
      signal such changes to userspace (if a driver can detect them):
      
      What:		/sys/class/leds/<led>/brightness_hw_changed
      Date:		January 2017
      KernelVersion:	4.11
      Description:
      		Last hardware set brightness level for this LED. Some LEDs
      		may be changed autonomously by hardware/firmware. Only LEDs
      		where this happens and the driver can detect this, will
      		have this file.
      
      		This file supports poll() to detect when the hardware
      		changes the brightness.
      
      		Reading this file will return the last brightness level set
      		by the hardware, this may be different from the current
      		brightness.
      
      Drivers which want to support this, simply add LED_BRIGHT_HW_CHANGED to
      their flags field and call led_classdev_notify_brightness_hw_changed()
      with the hardware set brightness when they detect a hardware / firmware
      triggered brightness change.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
      b8c5099b
    • Chris Chiu's avatar
      platform/x86: acer-wmi: add another KEY_WLAN keycode · 5ffa572a
      Chris Chiu authored
      Now that we have informed the firmware that the RF Button driver is
      active, laptops such as the Acer TravelMate P238-M will generate
      a WMI key event with code 0x86 when the Fn+F3 airplane mode key is
      pressed.
      
      Add this keycode to the table so that it is converted to an appropriate
      input event.
      Signed-off-by: default avatarChris Chiu <chiu@endlessm.com>
      Signed-off-by: default avatarDaniel Drake <drake@endlessm.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      5ffa572a
    • Chris Chiu's avatar
      platform/x86: acer-wmi: Inform firmware that RF Button Driver is active · 280642c3
      Chris Chiu authored
      The same method to activate LM(Launch Manager) can also be used to
      activate the RF Button driver with different bit toggled in the same
      lm_status. To express that many functions this byte field can achieve,
      rename the lm_status to app_status. And also the app_mask is the bit
      mask which specifically indicate which bits are going to be changed.
      
      This solves a problem where the AR9565 wifi included in the
      Acer Aspire ES1-421 is permanently hard blocked according to the rfkill
      GPIO read by ath9k.
      Signed-off-by: default avatarChris Chiu <chiu@endlessm.com>
      Signed-off-by: default avatarDaniel Drake <drake@endlessm.com>
      Reviewed-by: default avatarLee, Chun-Yi <jlee@suse.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      280642c3
    • João Paulo Rechi Vita's avatar
      platform/x86: asus-wireless: Fix indentation · 4ac20e62
      João Paulo Rechi Vita authored
      Fix indentation problem introduced when this driver was first merged into
      the kernel.
      Signed-off-by: default avatarJoão Paulo Rechi Vita <jprvita@endlessm.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      4ac20e62
    • João Paulo Rechi Vita's avatar
      platform/x86: asus-wireless: Use per-HID HSWC parameters · 4b7fb9fc
      João Paulo Rechi Vita authored
      Some Asus machines use 0x4/0x5 as their LED on/off values, while others
      use 0x0/0x1, as shown in the DSDT excerpts below. Luckily it seems this
      behavior is tied to different HIDs, after looking at 44 DSDTs from
      different Asus models.
      
      Another small difference is that a few of them call GWBL instead of
      OWGS, and SWBL instead of OWGD. That does not seem to make a difference
      for asus-wireless, and is additional reasoning to not try to call these
      methods directly.
      
      Device (ASHS)                       | Device (ASHS)
      {                                   | {
          Name (_HID, "ATK4002")          |     Name (_HID, "ATK4001")
          Method (HSWC, 1, Serialized)    |     Method (HSWC, 1, Serialized)
          {                               |     {
              If ((Arg0 < 0x02))          |         If ((Arg0 < 0x02))
              {                           |         {
                  OWGD (Arg0)             |             OWGD (Arg0)
                  Return (One)            |             Return (One)
              }                           |         }
              If ((Arg0 == 0x02))         |
              {                           |         If ((Arg0 == 0x02))
                  Local0 = OWGS ()        |         {
                  If (Local0)             |             Return (OWGS ())
                  {                       |         }
                          Return (0x05)   |
                  }                       |         If ((Arg0 == 0x03))
                  Else                    |         {
                  {                       |             Return (0xFF)
                          Return (0x04)   |         }
                  }                       |
              }                           |         If ((Arg0 == 0x80))
              If ((Arg0 == 0x03))         |         {
              {                           |            Return (One)
                  Return (0xFF)           |         }
              }                           |     }
              If ((Arg0 == 0x04))         |     Method (_STA, 0, NotSerialized)
              {                           |     {
                  OWGD (Zero)             |         If ((MSOS () >= OSW8))
                  Return (One)            |         {
              }                           |             Return (0x0F)
              If ((Arg0 == 0x05))         |         }
              {                           |         Else
                  OWGD (One)              |         {
                  Return (One)            |             Return (Zero)
              }                           |         }
              If ((Arg0 == 0x80))         |     }
              {                           | }
                  Return (One)            |
              }                           |
          }                               |
          Method (_STA, 0, NotSerialized) |
          {                               |
              If ((MSOS () >= OSW8))      |
              {                           |
                  Return (0x0F)           |
              }                           |
              Else                        |
              {                           |
                  Return (Zero)           |
              }                           |
          }                               |
      }                                   |
      Signed-off-by: default avatarJoão Paulo Rechi Vita <jprvita@endlessm.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      4b7fb9fc
    • Rajneesh Bhardwaj's avatar
      platform/x86: intel_pmc_ipc: Add APL PMC PCI Id · 23e775db
      Rajneesh Bhardwaj authored
      This patch adds the PCI Device id for Power Management Controller on Intel
      Apollo Lake platforms.
      
      Intel PMC IPC Driver loads as a platform driver on Apollo Lake platforms
      since Intel BIOS hides the PCI Configuration space for 0:13:1 and
      re-enumerates it as ACPI device (INT34D2). The correct PCI Device ID should
      be added if some platform firmware choses to enumerate the device via PCI
      space.
      Signed-off-by: default avatarRajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      23e775db
    • Shanth Murthy's avatar
      platform/x86: intel_pmc_ipc: read s0ix residency API · 76062b4a
      Shanth Murthy authored
      This patch adds a new API to indicate S0ix residency in usec. It utilizes
      the PMC Global Control Registers (GCR) to read deep and shallow
      S0ix residency.
      
      PMC MMIO resources:
              o Lower 4kB: IPC1 (PMC inter-processor communication) interface
              o Upper 4kB: GCR (Global Control Registers)
      
      This enables the power management framework to take corrective actions when
      the platform fails to enter S0ix after kernel freeze as part of the suspend
      to idle flow. (echo freeze > /sys/power/state).
      
      This is expected to be used with a S0ix failsafe framework such as:
      <https://lwn.net/Articles/689505/>
      
      [rajneesh: folded in "fix division in 32-bit case" from Andy Shevchenko]
      Signed-off-by: default avatarRajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
      Signed-off-by: default avatarShanth Murthy <shanth.murthy@intel.com>
      [andy: fixed kbuild error, removed "total" from variables, fixed macro]
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      76062b4a
    • Andy Shevchenko's avatar
      platform/x86: alienware-wmi: Remove header duplicate · 8e4b8c7d
      Andy Shevchenko authored
      No need to #include <linux/acpi.h> twice. Remove second occurrence.
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      8e4b8c7d
    • Andy Shevchenko's avatar
      platform/x86: intel_mid_powerbtn: Use SCU IPC directly · 25b4a38f
      Andy Shevchenko authored
      On older Intel MID platforms is using SCU IPC library beneath MSIC
      calls.
      
      To make access unified between old and new platforms use SCU IPC library
      directly. It's safe since serialization is done in the library.
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      25b4a38f
    • Andy Shevchenko's avatar
      platform/x86: intel_mid_powerbtn: Unify IRQ acknowledgment · ca45ba06
      Andy Shevchenko authored
      The IRQ on Intel Merrifield can be acknowledged in the similar way it's
      done for previous MID platforms. Unify acknowledgment via SCU IPC.
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      ca45ba06
    • Linus Torvalds's avatar
      Merge tag 'openrisc-for-linus' of git://github.com/openrisc/linux · 9e314890
      Linus Torvalds authored
      Pull OpenRISC updates from Stafford Horne:
       "Highlights include:
      
         - optimized memset and memcpy routines, ~20% boot time saving
      
         - support for cpu idling
      
         - adding support for l.swa and l.lwa atomic operations (in spec from
           2014)
      
         - use atomics to implement: bitops, cmpxchg, futex
      
         - the atomics are in preparation for SMP support"
      
      * tag 'openrisc-for-linus' of git://github.com/openrisc/linux: (25 commits)
        openrisc: head: Init r0 to 0 on start
        openrisc: Export ioremap symbols used by modules
        arch/openrisc/lib/memcpy.c: use correct OR1200 option
        openrisc: head: Remove unused strings
        openrisc: head: Move init strings to rodata section
        openrisc: entry: Fix delay slot detection
        openrisc: entry: Whitespace and comment cleanups
        scripts/checkstack.pl: Add openrisc support
        MAINTAINERS: Add the openrisc official repository
        openrisc: Add .gitignore
        openrisc: Add optimized memcpy routine
        openrisc: Add optimized memset
        openrisc: Initial support for the idle state
        openrisc: Fix the bitmask for the unit present register
        openrisc: remove unnecessary stddef.h include
        openrisc: add futex_atomic_* implementations
        openrisc: add optimized atomic operations
        openrisc: add cmpxchg and xchg implementations
        openrisc: add atomic bitops
        openrisc: add l.lwa/l.swa emulation
        ...
      9e314890
    • Sven Eckelmann's avatar
      checkpatch: remove false unbalanced braces warning · 95330473
      Sven Eckelmann authored
      Lines containing "} else {" should not be detected as unbalanced braces.
      But the second check can be reduced to ".+else\s*{" and it therefore
      never checked if the beginning of a line contains any other character
      (like the relevant "}").  This check would also return true for "} else
      {" and create warnings like
      
          CHECK: Unbalanced braces around else statement
          #391: FILE: ./net/batman-adv/tvlv.c:391:
          +   } else {
      
      The check can be changed to check the whole line for the missing "}" to
      avoid this false positive.
      
      Fixes: 0d1532456c26 ("checkpatch: notice unbalanced else braces in a patch")
      Link: http://lkml.kernel.org/r/20170220121644.12209-1-sven@narfation.orgSigned-off-by: default avatarSven Eckelmann <sven@narfation.org>
      Acked-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      95330473
    • Joe Perches's avatar
      checkpatch: notice unbalanced else braces in a patch · e4c5babd
      Joe Perches authored
      Patches that add or modify code like
      
      	} else
      		<foo>
      or
      	else {
      		<bar>
      
      where one branch appears to have a brace and the other branch does not
      have a brace should emit a --strict style message.
      
      Link: http://lkml.kernel.org/r/c6be32747fc725cbc235802991746700a0f54fdc.1486754390.git.joe@perches.comSigned-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e4c5babd
    • Matthew Wilcox's avatar
      checkpatch: add another old address for the FSF · 1bde561e
      Matthew Wilcox authored
      We still have a lot of old addresses for the FSF in the kernel.
      
        willy@harry:~/kernel/idr$ git grep '675 Mass' |wc -l
        1502
        willy@harry:~/kernel/idr$ git grep '59 Temple' |wc -l
        2825
        willy@harry:~/kernel/idr$ git grep '51 Franklin' |wc -l
        2020
      
      Let's discourage adding the oldest one too.
      
      Link: http://lkml.kernel.org/r/20170128173052.GA23532@bombadil.infradead.orgSigned-off-by: default avatarMatthew Wilcox <mawilcox@microsoft.com>
      Acked-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1bde561e
    • Miles Chen's avatar
      checkpatch: update $logFunctions · 758d7aad
      Miles Chen authored
      Currently checkpatch.pl does not recognize printk_deferred* functions as
      log functions and complains about the line length of printk_deferred*
      functions.  Add printk_deferred* to logFunctions to fix it.
      
      Link: http://lkml.kernel.org/r/1484537124-18083-1-git-send-email-miles.chen@mediatek.comSigned-off-by: default avatarMiles Chen <miles.chen@mediatek.com>
      Acked-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      758d7aad