All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] HID: i2c-hid: reset Synaptics SYNA2393 on resume
@ 2020-04-25 10:58 Daniel Playfair Cal
  2020-04-29 19:45 ` Jiri Kosina
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Playfair Cal @ 2020-04-25 10:58 UTC (permalink / raw)
  To: jikos, benjamin.tissoires; +Cc: linux-input, Daniel Playfair Cal

On the Dell XPS 9570, the Synaptics SYNA2393 touchpad generates spurious
interrupts after resuming from suspend until it receives some input or
is reset. Add it to the quirk I2C_HID_QUIRK_RESET_ON_RESUME so that it
is reset when resuming from suspend.

More information about the bug can be found in this mailing list
discussion: https://www.spinics.net/lists/linux-input/msg59530.html

Signed-off-by: Daniel Playfair Cal <daniel.playfair.cal@gmail.com>
---
 drivers/hid/hid-ids.h              | 3 +++
 drivers/hid/i2c-hid/i2c-hid-core.c | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index b18b13147a6f..984011835ce9 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -1097,6 +1097,9 @@
 #define USB_DEVICE_ID_SYMBOL_SCANNER_2	0x1300
 #define USB_DEVICE_ID_SYMBOL_SCANNER_3	0x1200
 
+#define I2C_VENDOR_ID_SYNAPTICS     0x06cb
+#define I2C_PRODUCT_ID_SYNAPTICS_SYNA2393   0x7a13
+
 #define USB_VENDOR_ID_SYNAPTICS		0x06cb
 #define USB_DEVICE_ID_SYNAPTICS_TP	0x0001
 #define USB_DEVICE_ID_SYNAPTICS_INT_TP	0x0002
diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c
index 009000c5d55c..294c84e136d7 100644
--- a/drivers/hid/i2c-hid/i2c-hid-core.c
+++ b/drivers/hid/i2c-hid/i2c-hid-core.c
@@ -177,6 +177,8 @@ static const struct i2c_hid_quirks {
 		 I2C_HID_QUIRK_BOGUS_IRQ },
 	{ USB_VENDOR_ID_ALPS_JP, HID_ANY_ID,
 		 I2C_HID_QUIRK_RESET_ON_RESUME },
+	{ I2C_VENDOR_ID_SYNAPTICS, I2C_PRODUCT_ID_SYNAPTICS_SYNA2393,
+		 I2C_HID_QUIRK_RESET_ON_RESUME },
 	{ USB_VENDOR_ID_ITE, I2C_DEVICE_ID_ITE_LENOVO_LEGION_Y720,
 		I2C_HID_QUIRK_BAD_INPUT_SIZE },
 	{ 0, 0 }
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] HID: i2c-hid: reset Synaptics SYNA2393 on resume
  2020-04-25 10:58 [PATCH] HID: i2c-hid: reset Synaptics SYNA2393 on resume Daniel Playfair Cal
@ 2020-04-29 19:45 ` Jiri Kosina
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2020-04-29 19:45 UTC (permalink / raw)
  To: Daniel Playfair Cal; +Cc: benjamin.tissoires, linux-input

On Sat, 25 Apr 2020, Daniel Playfair Cal wrote:

> On the Dell XPS 9570, the Synaptics SYNA2393 touchpad generates spurious
> interrupts after resuming from suspend until it receives some input or
> is reset. Add it to the quirk I2C_HID_QUIRK_RESET_ON_RESUME so that it
> is reset when resuming from suspend.
> 
> More information about the bug can be found in this mailing list
> discussion: https://www.spinics.net/lists/linux-input/msg59530.html
> 
> Signed-off-by: Daniel Playfair Cal <daniel.playfair.cal@gmail.com>

Applied, thanks Daniel.

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-29 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-25 10:58 [PATCH] HID: i2c-hid: reset Synaptics SYNA2393 on resume Daniel Playfair Cal
2020-04-29 19:45 ` Jiri Kosina

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.