1. 08 Jan, 2024 12 commits
  2. 04 Jan, 2024 3 commits
  3. 02 Jan, 2024 12 commits
  4. 27 Dec, 2023 1 commit
  5. 22 Dec, 2023 1 commit
  6. 19 Dec, 2023 3 commits
    • Jason Gerecke's avatar
      HID: wacom: Add additional tests of confidence behavior · b0fb904d
      Jason Gerecke authored
      Test for proper driver behavior when the touch confidence bit is set
      or cleared. Test the three flavors of touch confidence loss (tipswitch
      cleared before confidence, tipswitch and confidence cleared at the same
      time, and tipswitch only cleared when touch is actually removed). Also
      test two flavors of touch confidence gain (confidence added to a touch
      that was "never" confident, and confidence added to a touch that was
      previously confident).
      Signed-off-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
      b0fb904d
    • Jason Gerecke's avatar
      HID: wacom: Correct behavior when processing some confidence == false touches · 50229603
      Jason Gerecke authored
      There appear to be a few different ways that Wacom devices can deal with
      confidence:
      
        1. If the device looses confidence in a touch, it will first clear
           the tipswitch flag in one report, and then clear the confidence
           flag in a second report. This behavior is used by e.g. DTH-2452.
      
        2. If the device looses confidence in a touch, it will clear both
           the tipswitch and confidence flags within the same report. This
           behavior is used by some AES devices.
      
        3. If the device looses confidence in a touch, it will clear *only*
           the confidence bit. The tipswitch bit will remain set so long as
           the touch is tracked. This behavior may be used in future devices.
      
      The driver does not currently handle situation 3 properly. Touches that
      loose confidence will remain "in prox" and essentially frozen in place
      until the tipswitch bit is finally cleared. Not only does this result
      in userspace seeing a stuck touch, but it also prevents pen arbitration
      from working properly (the pen won't send events until all touches are
      up, but we don't currently process events from non-confident touches).
      
      This commit centralizes the checking of the confidence bit in the
      wacom_wac_finger_slot() function and has 'prox' depend on it. In the
      case where situation 3 is encountered, the treat the touch as though
      it was removed, allowing both userspace and the pen arbitration to
      act normally.
      Signed-off-by: default avatarTatsunosuke Tobita <tatsunosuke.tobita@wacom.com>
      Signed-off-by: default avatarPing Cheng <ping.cheng@wacom.com>
      Signed-off-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Fixes: 7fb0413b ("HID: wacom: Use "Confidence" flag to prevent reporting invalid contacts")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
      50229603
    • Linus Torvalds's avatar
      Merge tag 'hid-for-linus-2023121901' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · 3f10e214
      Linus Torvalds authored
      Pull HID fixes from Jiri Kosina:
      
       - fix for division by zero in Nintendo driver when generic joycon is
         attached, reported and fixed by SteamOS folks (Guilherme G. Piccoli)
      
       - GCC-7 build fix (which is a good cleanup anyway) for Nintendo driver
         (Ryan McClelland)
      
      * tag 'hid-for-linus-2023121901' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        HID: nintendo: Prevent divide-by-zero on code
        HID: nintendo: fix initializer element is not constant error
      3f10e214
  7. 18 Dec, 2023 4 commits
  8. 17 Dec, 2023 4 commits