1. 10 Aug, 2020 4 commits
  2. 21 Jul, 2020 1 commit
  3. 20 Jul, 2020 3 commits
  4. 14 Jul, 2020 1 commit
    • Grant Likely's avatar
      HID: input: Fix devices that return multiple bytes in battery report · 4f57cace
      Grant Likely authored
      Some devices, particularly the 3DConnexion Spacemouse wireless 3D
      controllers, return more than just the battery capacity in the battery
      report. The Spacemouse devices return an additional byte with a device
      specific field. However, hidinput_query_battery_capacity() only
      requests a 2 byte transfer.
      
      When a spacemouse is connected via USB (direct wire, no wireless dongle)
      and it returns a 3 byte report instead of the assumed 2 byte battery
      report the larger transfer confuses and frightens the USB subsystem
      which chooses to ignore the transfer. Then after 2 seconds assume the
      device has stopped responding and reset it. This can be reproduced
      easily by using a wired connection with a wireless spacemouse. The
      Spacemouse will enter a loop of resetting every 2 seconds which can be
      observed in dmesg.
      
      This patch solves the problem by increasing the transfer request to 4
      bytes instead of 2. The fix isn't particularly elegant, but it is simple
      and safe to backport to stable kernels. A further patch will follow to
      more elegantly handle battery reports that contain additional data.
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      Cc: Darren Hart <darren@dvhart.com>
      Cc: Jiri Kosina <jikos@kernel.org>
      Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
      Cc: stable@vger.kernel.org
      Tested-by: default avatarDarren Hart <dvhart@infradead.org>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      4f57cace
  5. 07 Jul, 2020 9 commits
  6. 24 Jun, 2020 3 commits
    • James Hilliard's avatar
      HID: quirks: Ignore Simply Automated UPB PIM · 1ee1369b
      James Hilliard authored
      As this is a cypress HID->COM RS232 style device that is handled
      by the cypress_M8 driver we also need to add it to the ignore list
      in hid-quirks.
      
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarJames Hilliard <james.hilliard1@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      1ee1369b
    • Hans de Goede's avatar
      HID: apple: Disable Fn-key key-re-mapping on clone keyboards · a5d81646
      Hans de Goede authored
      The Maxxter KB-BT-001 Bluetooth keyboard, which looks somewhat like the
      Apple Wireless Keyboard, is using the vendor and product IDs (05AC:0239)
      of the Apple Wireless Keyboard (2009 ANSI version) <sigh>.
      
      But its F1 - F10 keys are marked as sending F1 - F10, not the special
      functions hid-apple.c maps them too; and since its descriptors do not
      contain the HID_UP_CUSTOM | 0x0003 usage apple-hid looks for for the
      Fn-key, apple_setup_input() never gets called, so F1 - F6 are mapped
      to key-codes which have not been set in the keybit array causing them
      to not send any events at all.
      
      The lack of a usage code matching the Fn key in the clone is actually
      useful as this allows solving this problem in a generic way.
      
      This commits adds a fn_found flag and it adds a input_configured
      callback which checks if this flag is set once all usages have been
      mapped. If it is not set, then assume this is a clone and clear the
      quirks bitmap so that the hid-apple code does not add any special
      handling to this keyboard.
      
      This fixes F1 - F6 not sending anything at all and F7 - F12 sending
      the wrong codes on the Maxxter KB-BT-001 Bluetooth keyboard and on
      similar clones.
      
      Cc: Joao Moreno <mail@joaomoreno.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      a5d81646
    • David Rheinsberg's avatar
      MAINTAINERS: update uhid and hid-wiimote entry · a06bb885
      David Rheinsberg authored
      My last name changed to "Rheinsberg", so update the maintainer entries
      and adjust the emails while at it.
      Signed-off-by: default avatarDavid Rheinsberg <david.rheinsberg@gmail.com>
      Signed-off-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      a06bb885
  7. 19 Jun, 2020 2 commits
    • Daniel G. Morse's avatar
      HID: Wiimote: Treat the d-pad as an analogue stick · a8cbf80e
      Daniel G. Morse authored
      The controllers from the Super Nintendo Classic Edition (AKA the SNES
      Mini) appear as a Classic Controller Pro when connected to a Wii
      Remote. All the buttons work as the same, with the d-pad being mapped
      the same as the d-pad on the Classic Controller Pro. This differs from
      the behaviour of most controllers with d-pads and no analogue sticks,
      where the d-pad maps to ABS_HAT1X for left and right, and ABS_HAT1Y
      for up and down. This patch adds an option to the hid-wiimote module
      to make the Super Nintendo Classic Controller behave this way.
      
      The patch has been tested with a Super Nintendo Classic Controller
      plugged into a Wii Remote in both with the option both enabled and
      disabled. When enabled the d-pad acts as the analogue control, and
      when disabled it acts as it did before the patch was applied. This
      patch has not been tested with e Wii Classic Controller (either the
      original or the pro version) as I do not have one of these
      controllers.
      
      Although I have not tested it with these controllers, I think it is
      likely this patch will also work with the NES Classic Edition
      Controllers.
      Signed-off-by: default avatarDaniel G. Morse <dmorse@speedfox.co.uk>
      Reviewed-by: default avatarDavid Rheinsberg <david.rheinsberg@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      a8cbf80e
    • Rodrigo Rivas Costa's avatar
      HID: steam: fixes race in handling device list. · 2d3f53a8
      Rodrigo Rivas Costa authored
      Using uhid and KASAN this driver crashed because it was getting
      several connection events where it only expected one. Then the
      device was added several times to the static device list and it got
      corrupted.
      
      This patch checks if the device is already in the list before adding
      it.
      Signed-off-by: default avatarRodrigo Rivas Costa <rodrigorivascosta@gmail.com>
      Tested-by: default avatarSiarhei Vishniakou <svv@google.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      2d3f53a8
  8. 16 Jun, 2020 7 commits
  9. 04 Jun, 2020 10 commits
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · a789d5f8
      Linus Torvalds authored
      Pull HID updates from Jiri Kosina:
      
       - hid-mcp2221 GPIO support, from Rishi Gupta
      
       - MT_CLS_WIN_8_DUAL obsolete quirk removal from hid-multitouch, from
         Kai-Heng Feng
      
       - a bunch of new hardware support to hid-asus driver, from Hans de
         Goede
      
       - other assorted small fixes, cleanups and device-specific quirks
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        HID: multitouch: Remove MT_CLS_WIN_8_DUAL
        HID: multitouch: enable multi-input as a quirk for some devices
        HID: sony: Fix for broken buttons on DS3 USB dongles
        HID: Add quirks for Trust Panora Graphic Tablet
        HID: apple: Swap the Fn and Left Control keys on Apple keyboards
        HID: asus: Add depends on USB_HID to HID_ASUS Kconfig option
        HID: asus: Fix mute and touchpad-toggle keys on Medion Akoya E1239T
        HID: asus: Add support for multi-touch touchpad on Medion Akoya E1239T
        HID: asus: Add report_size to struct asus_touchpad_info
        HID: asus: Add hid_is_using_ll_driver(usb_hid_driver) check
        HID: asus: Simplify skipping of mappings for Asus T100CHI keyboard-dock
        HID: asus: Only set EV_REP if we are adding a mapping
        HID: i2c-hid: add Schneider SCL142ALM to descriptor override
        HID: intel-ish-hid: avoid bogus uninitialized-variable warning
        HID: mcp2221: add GPIO functionality support
        HID: fix typo in Kconfig
        HID: logitech: drop outdated references to unifying receivers
      a789d5f8
    • Linus Torvalds's avatar
      Merge tag 'sound-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 631d6914
      Linus Torvalds authored
      Pull sound updates from Takashi Iwai:
       "It was another busy development cycle, and the majority of changes are
        found in ASoC side. Below are Some highlights.
      
        ASoC core:
         - Lots of core cleanups and refactorings, still on-going work by
           Morimoto-san
      
        ASoC drivers:
         - Continued work on cleaning up and improving the Intel SOF stuff,
           along with new platform support including SoundWire
      
         - Fixes to make the Marvell SSPA driver work upstream
      
         - Support for AMD Renoir ACP, Dialog DA7212, Freescale EASRC and
           i.MX8M, Intel Elkhard Lake, Maxim MAX98390, Nuvoton NAU8812 and
           NAU8814 and Realtek RT1016.
      
        USB-audio:
         - Improvement for sync and implicit feedback streams with the more
           accurate frame size calculation and full-duplex support
      
         - Support for RME Babyface Pro and Prioneer DJ DJM
      
        HD-audio:
         - Fixes for Mic mute LED on HP machines
      
         - Re-enable support of Intel SST driver for SKL/KBL platforms
      
        FireWire:
         - Lots of refactoring, add support for RME FireFace and MOTU
           UltraLite-mk3"
      
      * tag 'sound-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (428 commits)
        ALSA: es1688: Add the missed snd_card_free()
        ALSA: hda: add sienna_cichlid audio asic id for sienna_cichlid up
        ALSA: usb-audio: Add Pioneer DJ DJM-900NXS2 support
        ASoC: qcom: q6asm-dai: kCFI fix
        ASoC: soc-card: add snd_soc_card_remove_dai_link()
        ASoC: soc-card: add snd_soc_card_add_dai_link()
        ASoC: soc-card: add snd_soc_card_set_bias_level_post()
        ASoC: soc-card: add snd_soc_card_set_bias_level()
        ASoC: soc-card: add snd_soc_card_remove()
        ASoC: soc-card: add snd_soc_card_late_probe()
        ASoC: soc-card: add snd_soc_card_probe()
        ASoC: soc-card: add probed bit field to snd_soc_card
        ASoC: soc-card: add snd_soc_card_resume_post()
        ASoC: soc-card: add snd_soc_card_resume_pre()
        ASoC: soc-card: add snd_soc_card_suspend_post()
        ASoC: soc-card: add snd_soc_card_suspend_pre()
        ASoC: soc-card: move snd_soc_card_subclass to soc-card
        ASoC: soc-card: move snd_soc_card_get_codec_dai() to soc-card
        ASoC: soc-card: move snd_soc_card_set/get_drvdata() to soc-card
        ASoC: soc-card: move snd_soc_card_jack_new() to soc-card
        ...
      631d6914
    • Linus Torvalds's avatar
      Merge branch 'pcmcia-next' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux · a0a4d17e
      Linus Torvalds authored
      Pull pcmcia updates from Dominik Brodowski:
       "Two minor PCMCIA odd fixes: one replacing zero-length arrays with a
        flexible-array member, and one making a local function static"
      
      * 'pcmcia-next' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux:
        pcmcia: make pccard_loop_tuple() static
        pcmcia: Replace zero-length array with flexible-array
      a0a4d17e
    • Linus Torvalds's avatar
      Merge tag 'leds-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds · 86c67ce2
      Linus Torvalds authored
      Pull LED updates from Pavel Machek:
       "New drivers: aw2013, sgm3140, some fixes
      
        Nothing much to see here, next release should be more interesting"
      
      * tag 'leds-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds:
        leds: add aw2013 driver
        dt-bindings: leds: Add binding for aw2013
        leds: trigger: remove redundant assignment to variable ret
        leds: netxbig: Convert to use GPIO descriptors
        leds: add sgm3140 driver
        dt-bindings: leds: Add binding for sgm3140
        leds: ariel: Add driver for status LEDs on Dell Wyse 3020
        leds: pwm: check result of led_pwm_set() in led_pwm_add()
        leds: tlc591xxt: hide error on EPROBE_DEFER
        leds: tca6507: Include the right header
        leds: lt3593: Drop surplus include
        leds: lp3952: Include the right header
        leds: lm355x: Drop surplus include
      86c67ce2
    • Linus Torvalds's avatar
      Merge tag 'tag-chrome-platform-for-v5.8' of... · 9875b201
      Linus Torvalds authored
      Merge tag 'tag-chrome-platform-for-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux
      
      Pull chrome platform updates from Benson Leung:
       "cros_ec_typec:
         - Add notifier for update, and register port partner
      
        Sensors/iio:
         - Fixes to cros_ec_sensorhub around allocation of resources, and
           send_sample
      
        Wilco EC:
         - Fix to output format of h1_gpio
      
        Misc:
         - Misc fixes to appease kernel-doc and other warnings
         - Set user space log size in chromeos_pstore"
      
      * tag 'tag-chrome-platform-for-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux:
        platform/chrome: cros_usbpd_logger: Add __printf annotation to append_str()
        platform/chrome: cros_ec_i2c: Appease the kernel-doc deity
        platform/chrome: typec: Fix ret value check error
        platform/chrome: cros_ec_typec: Register port partner
        platform/chrome: cros_ec_typec: Add struct for port data
        platform/chrome: cros_ec_typec: Use notifier for updates
        platform/chrome: cros_ec_ishtp: free ishtp buffer before sending event
        platform/chrome: cros_ec_ishtp: skip old cros_ec responses
        platform/chrome: wilco_ec: Provide correct output format to 'h1_gpio' file
        platform/chrome: chromeos_pstore: set user space log size
      9875b201
    • Linus Torvalds's avatar
      Merge tag 'linux-watchdog-5.8-rc1' of git://www.linux-watchdog.org/linux-watchdog · 0486a39a
      Linus Torvalds authored
      Pull watchdog updates from Wim Van Sebroeck:
      
       - add new arm_smc_wdt watchdog driver
      
       - da9062 and da9063 improvements
      
       - clarify documentation about stop() that became optional
      
       - document r8a7742 support
      
       - some overall fixes and improvements
      
      * tag 'linux-watchdog-5.8-rc1' of git://www.linux-watchdog.org/linux-watchdog:
        watchdog: m54xx: Add missing include
        dt-bindings: watchdog: renesas,wdt: Document r8a7742 support
        watchdog: Fix runtime PM imbalance on error
        watchdog: riowd: remove unneeded semicolon
        watchdog: Add new arm_smc_wdt watchdog driver
        dt-bindings: watchdog: Add ARM smc wdt for mt8173 watchdog
        watchdog: imx2_wdt: update contact email
        watchdog: iTCO: fix link error
        watchdog: da9062: No need to ping manually before setting timeout
        watchdog: da9063: Make use of pre-configured timeout during probe
        watchdog: da9062: Initialize timeout during probe
        watchdog: clarify that stop() is optional
        watchdog: imx_sc_wdt: Fix reboot on crash
        watchdog: ts72xx_wdt: fix build error
      0486a39a
    • Linus Torvalds's avatar
      Merge tag 'backlight-next-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight · 302d5b33
      Linus Torvalds authored
      Pull backlight updates from Lee Jones:
       "Core Framework:
         - Add backlight_device_get_by_name() to the API
      
        New Device Support:
         - Add support for WLED5 to Qualcomm WLED
      
        Fix-ups:
         - Convert to GPIO descriptors in l4f00242t03
         - Device Tree fix-ups for qcom-wled
      
        Bug Fixes:
         - Properly disable regulators on .probe() failure"
      
      * tag 'backlight-next-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
        backlight: Add backlight_device_get_by_name()
        backlight: qcom-wled: Add support for WLED5 peripheral that is present on PM8150L PMICs
        dt-bindings: backlight: qcom-wled: Add WLED5 bindings
        backlight: qcom-wled: Add callback functions
        dt-bindings: backlight: qcom-wled: Convert the wled bindings to .yaml format
        backlight: l4f00242t03: Convert to GPIO descriptors
        backlight: lp855x: Ensure regulators are disabled on probe failure
      302d5b33
    • Linus Torvalds's avatar
      Merge tag 'mfd-next-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd · 512b7d37
      Linus Torvalds authored
      Pull MFD updates from Lee Jones:
       "Core Frameworks:
         - Constify 'properties' attribute in core header file
      
        New Drivers:
         - Add support for Gateworks System Controller
         - Add support for MediaTek MT6358 PMIC
         - Add support for Mediatek MT6360 PMIC
         - Add support for Monolithic Power Systems MP2629 ADC and Battery charger
      
        Fix-ups:
         - Use new I2C API in htc-i2cpld
         - Remove superfluous code in sprd-sc27xx-spi
         - Improve error handling in stm32-timers
         - Device Tree additions/fixes in mt6397
         - Defer probe betterment in wm8994-core
         - Improve module handling in wm8994-core
         - Staticify in stpmic1
         - Trivial (spelling, formatting) in tqmx86
      
        Bug Fixes:
         - Fix incorrect register/PCI IDs in intel-lpss-pci
         - Fix unbalanced Regulator API calls in wm8994-core
         - Fix double free() in wcd934x
         - Remove IRQ domain on failure in stmfx
         - Reset chip on resume in stmfx
         - Disable/enable IRQs on suspend/resume in stmfx
         - Do not use bulk writes on H/W which does not support them in max77620"
      
      * tag 'mfd-next-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (29 commits)
        mfd: mt6360: Remove duplicate REGMAP_IRQ_REG_LINE() entry
        mfd: Add support for PMIC MT6360
        mfd: max77620: Use single-byte writes on MAX77620
        mfd: wcd934x: Drop kfree for memory allocated with devm_kzalloc
        mfd: stmfx: Disable IRQ in suspend to avoid spurious interrupt
        mfd: stmfx: Fix stmfx_irq_init error path
        mfd: stmfx: Reset chip on resume as supply was disabled
        mfd: wm8994: Silence warning about supplies during deferred probe
        mfd: wm8994: Fix unbalanced calls to regulator_bulk_disable()
        mfd: wm8994: Fix driver operation if loaded as modules
        dt-bindings: mfd: mediatek: Add MT6397 Pin Controller
        mfd: Constify properties in mfd_cell
        mfd: stm32-timers: Use dma_request_chan() instead dma_request_slave_channel()
        mfd: sprd: Remove unnecessary spi_bus_type setting
        mfd: intel-lpss: Update LPSS UART #2 PCI ID for Jasper Lake
        mfd: tqmx86: Fix a typo in MODULE_DESCRIPTION
        mfd: stpmic1: Make stpmic1_regmap_config static
        mfd: htc-i2cpld: Convert to use i2c_new_client_device()
        MAINTAINERS: Add entry for mp2629 Battery Charger driver
        power: supply: mp2629: Add impedance compensation config
        ...
      512b7d37
    • Linus Torvalds's avatar
      Merge tag 'Smack-for-5.8' of git://github.com/cschaufler/smack-next · acf25aa6
      Linus Torvalds authored
      Pull smack updates from Casey Schaufler:
       "Clean out dead code and repair an out-of-bounds warning"
      
      * tag 'Smack-for-5.8' of git://github.com/cschaufler/smack-next:
        Smack: Remove unused inline function smk_ad_setfield_u_fs_path_mnt
        Smack:- Remove redundant inode_smack cache
        Smack:- Remove mutex lock "smk_lock" from inode_smack
        Smack: slab-out-of-bounds in vsscanf
        smack: remove redundant structure variable from header.
        smack: avoid unused 'sip' variable warning
      acf25aa6
    • Linus Torvalds's avatar
      Merge tag 'keys-next-20200602' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs · a484a497
      Linus Torvalds authored
      Pull keyring updates from David Howells:
      
       - Fix a documentation warning.
      
       - Replace a zero-length array with a flexible one
      
       - Make the big_key key type use ChaCha20Poly1305 and use the crypto
         algorithm directly rather than going through the crypto layer.
      
       - Implement the update op for the big_key type.
      
      * tag 'keys-next-20200602' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        keys: Implement update for the big_key type
        security/keys: rewrite big_key crypto to use library interface
        KEYS: Replace zero-length array with flexible-array
        Documentation: security: core.rst: add missing argument
      a484a497