1. 14 Aug, 2023 1 commit
    • Illia Ostapyshyn's avatar
      HID: input: Support devices sending Eraser without Invert · 276e14e6
      Illia Ostapyshyn authored
      Some digitizers (notably XP-Pen Artist 24) do not report the Invert
      usage when erasing.  This causes the device to be permanently stuck with
      the BTN_TOOL_RUBBER tool after sending Eraser, as Invert is the only
      usage that can release the tool.  In this state, Touch and Inrange are
      no longer reported to userspace, rendering the pen unusable.
      
      Prior to commit 87562fcd ("HID: input: remove the need for
      HID_QUIRK_INVERT"), BTN_TOOL_RUBBER was never set and Eraser events were
      simply translated into BTN_TOUCH without causing an inconsistent state.
      
      Introduce HID_QUIRK_NOINVERT for such digitizers and detect them during
      hidinput_configure_usage().  This quirk causes the tool to be released
      as soon as Eraser is reported as not set.  Set BTN_TOOL_RUBBER in
      input->keybit when mapping Eraser.
      
      Fixes: 87562fcd ("HID: input: remove the need for HID_QUIRK_INVERT")
      Co-developed-by: default avatarNils Fuhler <nils@nilsfuhler.de>
      Signed-off-by: default avatarNils Fuhler <nils@nilsfuhler.de>
      Signed-off-by: default avatarIllia Ostapyshyn <ostapyshyn@sra.uni-hannover.de>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      276e14e6
  2. 12 Jul, 2023 1 commit
    • Linus Torvalds's avatar
      Merge tag 'for-linus-2023071101' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · 1d754604
      Linus Torvalds authored
      Pull HID fixes from Benjamin Tissoires:
      
       - AMD SFH shift-out-of-bounds fix (Basavaraj Natikar)
      
       - avoid struct memcpy overrun warning in the hid-hyperv module (Arnd
         Bergmann)
      
       - a quick HID kselftests script fix for our CI to be happy (Benjamin
         Tissoires)
      
       - various fixes and additions of device IDs
      
      * tag 'for-linus-2023071101' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        HID: amd_sfh: Fix for shift-out-of-bounds
        HID: amd_sfh: Rename the float32 variable
        HID: input: fix mapping for camera access keys
        HID: logitech-hidpp: Add wired USB id for Logitech G502 Lightspeed
        HID: nvidia-shield: Pack inner/related declarations in HOSTCMD reports
        HID: hyperv: avoid struct memcpy overrun warning
        selftests: hid: fix vmtests.sh not running make headers
      1d754604
  3. 10 Jul, 2023 4 commits
  4. 09 Jul, 2023 15 commits
  5. 08 Jul, 2023 19 commits