1. 07 Mar, 2017 13 commits
  2. 28 Feb, 2017 1 commit
  3. 27 Feb, 2017 3 commits
  4. 26 Feb, 2017 2 commits
    • Thomas Hellstrom's avatar
      drm/vmwgfx: Work around drm removal of control nodes · 31788ca8
      Thomas Hellstrom authored
      vmware tools has a daemon that gets layout information from the GUI and
      forwards it to DRM so that the modesetting code can set preferred connector
      locations and modes. This daemon was using control nodes but since control
      nodes were just removed, make it possible for the daemon to use render- or
      primary nodes instead. This is a bit ugly but will allow drm to proceed with
      removal of the mostly unused control-node code and allow vmware to proceed
      with fixing up automatic layout settings for gnome-shell/wayland.
      
      We bump minor to inform user-space about the api change.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      Reviewed-by: default avatarSinclair Yeh <syeh@vmware.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/20170221104227.2854-1-thellstrom@vmware.com
      31788ca8
    • 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
  5. 25 Feb, 2017 21 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