Jason Gerecke
93da9dcee2
HID: wacom: Avoid entering wacom_wac_pen_report for pad / battery
...
commit d9216d753b2b1406b801243b12aaf00a5ce5b861 upstream.
It has recently been reported that the "heartbeat" report from devices
like the 2nd-gen Intuos Pro (PTH-460, PTH-660, PTH-860) or the 2nd-gen
Bluetooth-enabled Intuos tablets (CTL-4100WL, CTL-6100WL) can cause the
driver to send a spurious BTN_TOUCH=0 once per second in the middle of
drawing. This can result in broken lines while drawing on Chrome OS.
The source of the issue has been traced back to a change which modified
the driver to only call `wacom_wac_pad_report()` once per report instead
of once per collection. As part of this change, pad-handling code was
removed from `wacom_wac_collection()` under the assumption that the
`WACOM_PEN_FIELD` and `WACOM_TOUCH_FIELD` checks would not be satisfied
when a pad or battery collection was being processed.
To be clear, the macros `WACOM_PAD_FIELD` and `WACOM_PEN_FIELD` do not
currently check exclusive conditions. In fact, most "pad" fields will
also appear to be "pen" fields simply due to their presence inside of
a Digitizer application collection. Because of this, the removal of
the check from `wacom_wac_collection()` just causes pad / battery
collections to instead trigger a call to `wacom_wac_pen_report()`
instead. The pen report function in turn resets the tip switch state
just prior to exiting, resulting in the observed BTN_TOUCH=0 symptom.
To correct this, we restore a version of the `WACOM_PAD_FIELD` check
in `wacom_wac_collection()` and return early. This effectively prevents
pad / battery collections from being reported until the very end of the
report as originally intended.
Fixes: d4b8efeb46 ("HID: wacom: generic: Correct pad syncing")
Cc: [email protected] # v4.17+
Signed-off-by: Jason Gerecke <[email protected] >
Reviewed-by: Ping Cheng <[email protected] >
Tested-by: Ping Cheng <[email protected] >
Signed-off-by: Jiri Kosina <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2020-11-05 11:43:29 +01:00
..
i2c-hid
HID: i2c-hid: Always sleep 60ms after I2C_HID_PWR_ON commands
2020-09-03 11:27:01 +02:00
intel-ish-hid
HID: intel-ish-hid: avoid bogus uninitialized-variable warning
2020-06-24 17:50:23 +02:00
usbhid
HID: hiddev: Fix slab-out-of-bounds write in hiddev_ioctl_usage()
2020-09-03 11:27:10 +02:00
hid-a4tech.c
HID: input: fix a4tech horizontal wheel custom usage
2019-08-05 14:37:15 +02:00
hid-accutouch.c
hid-alps.c
HID: alps: support devices with report id 2
2020-07-29 10:18:36 +02:00
hid-apple.c
HID: apple: Disable Fn-key key-re-mapping on clone keyboards
2020-07-29 10:18:36 +02:00
hid-appleir.c
hid-asus.c
HID: asus: Ignore Asus vendor-page usage-code 0xff events
2020-02-01 09:34:41 +00:00
hid-aureal.c
hid-axff.c
HID: Fix assumption that devices have inputs
2019-10-03 15:36:40 -04:00
hid-belkin.c
hid-betopff.c
hid-bigbenff.c
HID: hid-bigbenff: fix race condition for scheduled work during removal
2020-03-21 08:11:49 +01:00
hid-cherry.c
hid-chicony.c
hid-cmedia.c
hid-core.c
HID: core: Correctly handle ReportSize being zero
2020-09-05 11:22:49 +02:00
hid-corsair.c
hid-cougar.c
HID: do not call hid_set_drvdata(hdev, NULL) in drivers
2019-08-22 17:11:58 +02:00
hid-cp2112.c
HID: cp2112: prevent sleeping function called from invalid context
2019-08-19 14:13:00 +02:00
hid-creative-sb0540.c
HID: sb0540: add support for Creative SB0540 IR receivers
2019-09-03 16:52:04 +02:00
hid-cypress.c
hid-debug.c
hid-dr.c
HID: Fix assumption that devices have inputs
2019-10-03 15:36:40 -04:00
hid-elan.c
HID: elan: Fix memleak in elan_input_configured
2020-09-17 13:47:48 +02:00
hid-elecom.c
hid-elo.c
hid-emsff.c
HID: Fix assumption that devices have inputs
2019-10-03 15:36:40 -04:00
hid-ezkey.c
hid-gaff.c
HID: Fix assumption that devices have inputs
2019-10-03 15:36:40 -04:00
hid-gembird.c
hid-generic.c
hid-gfrm.c
HID: do not call hid_set_drvdata(hdev, NULL) in drivers
2019-08-22 17:11:58 +02:00
hid-google-hammer.c
HID: google: add moonball USB id
2020-03-21 08:11:58 +01:00
hid-gt683r.c
hid-gyration.c
hid-holtek-kbd.c
HID: holtek: test for sanity of intfdata
2019-08-05 14:18:42 +02:00
hid-holtek-mouse.c
hid-holtekff.c
HID: Fix assumption that devices have inputs
2019-10-03 15:36:40 -04:00
hid-hyperv.c
HID: hyperv: Use in-place iterator API in the channel callback
2019-10-01 14:49:41 -04:00
hid-icade.c
hid-ids.h
HID: ite: Add USB id match for Acer One S1003 keyboard dock
2020-10-29 09:58:07 +01:00
hid-input.c
HID: hid-input: fix stylus battery reporting
2020-10-29 09:57:42 +01:00
hid-ite.c
HID: ite: Add USB id match for Acer One S1003 keyboard dock
2020-10-29 09:58:07 +01:00
hid-jabra.c
hid-kensington.c
hid-keytouch.c
hid-kye.c
hid-lcpower.c
hid-led.c
hid-lenovo.c
HID: do not call hid_set_drvdata(hdev, NULL) in drivers
2019-08-22 17:11:58 +02:00
hid-lg.c
HID: logitech: Fix general protection fault caused by Logitech driver
2019-08-22 09:53:08 +02:00
hid-lg.h
hid-lg2ff.c
HID: Fix assumption that devices have inputs
2019-10-03 15:36:40 -04:00
hid-lg3ff.c
HID: Fix assumption that devices have inputs
2019-10-03 15:36:40 -04:00
hid-lg4ff.c
HID: Fix assumption that devices have inputs
2019-10-03 15:36:40 -04:00
hid-lg4ff.h
hid-lgff.c
HID: Fix assumption that devices have inputs
2019-10-03 15:36:40 -04:00
hid-logitech-dj.c
Merge branch 'for-5.4/logitech' into for-linus
2019-09-22 22:39:01 +02:00
hid-logitech-hidpp.c
HID: logitech-hidpp: avoid repeated "multiplier = " log messages
2020-07-22 09:33:08 +02:00
hid-macally.c
hid-magicmouse.c
HID: magicmouse: do not set up autorepeat
2020-07-22 09:33:08 +02:00
hid-maltron.c
hid-mf.c
hid-microsoft.c
HID: microsoft: Add rumble support for the 8bitdo SN30 Pro+ controller
2020-09-17 13:47:48 +02:00
hid-monterey.c
hid-multitouch.c
HID: core: Sanitize event code and type when mapping input
2020-09-05 11:22:49 +02:00
hid-nti.c
hid-ntrig.c
hid-ortek.c
hid-penmount.c
hid-petalynx.c
hid-picolcd.h
hid-picolcd_backlight.c
hid-picolcd_cir.c
hid-picolcd_core.c
HID: do not call hid_set_drvdata(hdev, NULL) in drivers
2019-08-22 17:11:58 +02:00
hid-picolcd_debugfs.c
hid-picolcd_fb.c
video: fbdev: don't print error message on framebuffer_alloc() failure
2019-06-28 12:30:08 +02:00
hid-picolcd_lcd.c
hid-picolcd_leds.c
hid-pl.c
hid-plantronics.c
hid-primax.c
hid-prodikeys.c
HID: prodikeys: make array keys static const, makes object smaller
2019-10-01 16:21:04 +02:00
hid-quirks.c
HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for all Saitek X52 devices
2020-09-17 13:47:48 +02:00
hid-redragon.c
hid-retrode.c
hid-rmi.c
HID: rmi: Check that the RMI_STARTED bit is set before unregistering the RMI transport device
2020-01-04 19:18:13 +01:00
hid-roccat-arvo.c
hid-roccat-arvo.h
hid-roccat-common.c
hid-roccat-common.h
hid-roccat-isku.c
hid-roccat-isku.h
hid-roccat-kone.c
HID: roccat: add bounds checking in kone_sysfs_write_settings()
2020-10-29 09:57:39 +01:00
hid-roccat-kone.h
hid-roccat-koneplus.c
hid-roccat-koneplus.h
hid-roccat-konepure.c
hid-roccat-kovaplus.c
hid-roccat-kovaplus.h
hid-roccat-lua.c
hid-roccat-lua.h
hid-roccat-pyra.c
hid-roccat-pyra.h
hid-roccat-ryos.c
hid-roccat-savu.c
hid-roccat-savu.h
hid-roccat.c
hid-saitek.c
hid-samsung.c
hid-sensor-custom.c
*: convert stream-like files -> stream_open, even if they use noop_llseek
2019-07-14 16:09:19 +03:00
hid-sensor-hub.c
HID: do not call hid_set_drvdata(hdev, NULL) in drivers
2019-08-22 17:11:58 +02:00
hid-sjoy.c
hid-sony.c
HID: sony: Fix for broken buttons on DS3 USB dongles
2020-06-07 13:18:47 +02:00
hid-speedlink.c
hid-steam.c
HID: steam: fixes race in handling device list.
2020-07-29 10:18:36 +02:00
hid-steelseries.c
hid-sunplus.c
hid-tivo.c
hid-tmff.c
HID: Fix assumption that devices have inputs
2019-10-03 15:36:40 -04:00
hid-topseed.c
hid-twinhan.c
hid-u2fzero.c
hid-uclogic-core.c
Merge branch 'for-5.3/uclogic' into for-linus
2019-07-10 01:40:23 +02:00
hid-uclogic-params.c
Merge branch 'for-5.3/uclogic' into for-linus
2019-07-10 01:40:23 +02:00
hid-uclogic-params.h
hid-uclogic-rdesc.c
hid-uclogic-rdesc.h
hid-udraw-ps3.c
hid-viewsonic.c
hid-waltop.c
hid-wiimote-core.c
hid-wiimote-debug.c
hid-wiimote-modules.c
hid-wiimote.h
hid-xinmo.c
hid-zpff.c
HID: Fix assumption that devices have inputs
2019-10-03 15:36:40 -04:00
hid-zydacron.c
hidraw.c
HID: hidraw, uhid: Always report EPOLLOUT
2020-01-17 19:48:15 +01:00
Kconfig
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid
2019-09-23 12:18:13 -07:00
Makefile
HID: sb0540: add support for Creative SB0540 IR receivers
2019-09-03 16:52:04 +02:00
uhid.c
HID: hidraw, uhid: Always report EPOLLOUT
2020-01-17 19:48:15 +01:00
wacom.h
HID: wacom: generic: Treat serial number and related fields as unsigned
2019-11-06 21:37:29 +01:00
wacom_sys.c
HID: wacom: Read HID_DG_CONTACTMAX directly for non-generic devices
2020-05-14 07:58:24 +02:00
wacom_wac.c
HID: wacom: Avoid entering wacom_wac_pen_report for pad / battery
2020-11-05 11:43:29 +01:00
wacom_wac.h
Merge branches 'for-5.2/fixes', 'for-5.3/doc', 'for-5.3/ish', 'for-5.3/logitech' and 'for-5.3/wacom' into for-linus
2019-07-10 01:39:57 +02:00