Skip to contentSkip to conversation

usb: quirks: Add no-lpm quirk for Elan Microelectronics Touchpad

PATCH Superseded Joseph Salisbury 3 participants 4 messages Jul 6, 2016 – Jul 8, 2016 1 message not in the archive

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 usb: quirks: Add no-lpm quirk for Elan Microelectronics Touchpad

In reply to a message not in the archive

As reported in BugLink, this device has an issue with Linux Power Management so adding a quirk. This quirk was reccomended by Alan Stern:

http://lkml.iu.edu/hypermail/linux/kernel/1606.2/05590.html

---
 drivers/usb/core/quirks.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/usb/core/quirks.c +3 -0
index 944a6dc..a33d003 100644
@@ -198,6 +198,9 @@ static const struct usb_device_id usb_quirk_list[] = {
 	/* Protocol and OTG Electrical Test Device */
 	{ USB_DEVICE(0x1a0a, 0x0200), .driver_info =
 			USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL },
+
+	/* ELAN Microelectronics Touchscreen */
+	{ USB_DEVICE(0x04f3, 0x0381), .driver_info = USB_QUIRK_NO_LPM },
 
 	/* Acer C120 LED Projector */
 	{ USB_DEVICE(0x1de1, 0xc102), .driver_info = USB_QUIRK_NO_LPM },
Signature · 1 line
2.7.4
maintainer
#2 lore raw
Quoted 19 lines · Joseph Salisbury

As reported in BugLink, this device has an issue with Linux Power Management so adding a quirk. This quirk was reccomended by Alan Stern:

http://lkml.iu.edu/hypermail/linux/kernel/1606.2/05590.html

---
 drivers/usb/core/quirks.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/usb/core/quirks.c +0 -0
index 944a6dc..a33d003 100644

drivers/usb/core/quirks.c static const struct usb_device_id usb_quirk_list[] = { · line 203

Quoted 6 lines
drivers/usb/core/quirks.c +3 -0
@@ -198,6 +198,9 @@ static const struct usb_device_id usb_quirk_list[] = {
 	/* Protocol and OTG Electrical Test Device */
 	{ USB_DEVICE(0x1a0a, 0x0200), .driver_info =
 			USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL },
+
+	/* ELAN Microelectronics Touchscreen */
+	{ USB_DEVICE(0x04f3, 0x0381), .driver_info = USB_QUIRK_NO_LPM },

Please put this next to the other Elan touchscreen quirk entries, don't put them in random order, it's a pain to maintain that way...

thanks,

greg k-h

#3 lore raw
Quoted 29 lines · Greg KH
Quoted 19 lines · Joseph Salisbury

As reported in BugLink, this device has an issue with Linux Power Management so adding a quirk. This quirk was reccomended by Alan Stern:

http://lkml.iu.edu/hypermail/linux/kernel/1606.2/05590.html

---
 drivers/usb/core/quirks.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/usb/core/quirks.c +0 -0
index 944a6dc..a33d003 100644

drivers/usb/core/quirks.c static const struct usb_device_id usb_quirk_list[] = { · line 203

Quoted 6 lines
drivers/usb/core/quirks.c +3 -0
@@ -198,6 +198,9 @@ static const struct usb_device_id usb_quirk_list[] = {
 	/* Protocol and OTG Electrical Test Device */
 	{ USB_DEVICE(0x1a0a, 0x0200), .driver_info =
 			USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL },
+
+	/* ELAN Microelectronics Touchscreen */
+	{ USB_DEVICE(0x04f3, 0x0381), .driver_info = USB_QUIRK_NO_LPM },

Please put this next to the other Elan touchscreen quirk entries, don't put them in random order, it's a pain to maintain that way...

Quoted 3 lines

thanks,

greg k-h

Sorry, I grouped it with the other USB_QUIRK_NO_LPM entries. I'll send a V2 patch and make a note to group by manufacturer from now on.

Thanks,

Joe

#4 lore raw
In reply to Joseph Salisbury

Hi,

Quoted 3 lines · Joseph Salisbury

As reported in BugLink, this device has an issue with Linux Power Management so

s/"Linux Power Management"/"USB Link Power Management"

Best regards,
Lu Baolu

Quoted 25 lines

adding a quirk. This quirk was reccomended by Alan Stern:

http://lkml.iu.edu/hypermail/linux/kernel/1606.2/05590.html

---
 drivers/usb/core/quirks.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/usb/core/quirks.c +3 -0
index 944a6dc..a33d003 100644
@@ -198,6 +198,9 @@ static const struct usb_device_id usb_quirk_list[] = {
 	/* Protocol and OTG Electrical Test Device */
 	{ USB_DEVICE(0x1a0a, 0x0200), .driver_info =
 			USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL },
+
+	/* ELAN Microelectronics Touchscreen */
+	{ USB_DEVICE(0x04f3, 0x0381), .driver_info = USB_QUIRK_NO_LPM },
 
 	/* Acer C120 LED Projector */
 	{ USB_DEVICE(0x1de1, 0xc102), .driver_info = USB_QUIRK_NO_LPM },