mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] HID: core: assign usbhid to handle EETI PID=0x0001 HID device
@ 2017-08-11  7:42 JamChen
       [not found] ` <778fb127-4e62-943b-a14f-f219ffdac152@pr.hu>
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: JamChen @ 2017-08-11  7:42 UTC (permalink / raw)
  To: jikos, benjamin.tissoires
  Cc: linux-input, linux-kernel, zboszor, jam.chen.egalax

From: Jam Chen <jam.chen.egalax@gmail.com>

The vendor used the same PID(0x0001) for multiple touch IC controllers.
The newer ICs can support HID class and report the multitouch collection
in the descriptor. So they were handled by the hid-multitouch driver.
But some customized firmwares don't support multitouch protocol even if
driver have got the Win8 blob data.

Actually, those ICs only support the single touch function, and report
the mouse protocol by default. We can assign usbhid to handle them all.

Signed-off-by: Jam Chen <jam.chen.egalax@gmail.com>
---
 drivers/hid/hid-core.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 9017dcc14502..df4696022488 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -828,6 +828,10 @@ static int hid_scan_report(struct hid_device *hid)
 				 */
 				hid->group = HID_GROUP_RMI;
 		break;
+	case USB_VENDOR_ID_DWAV:
+		if (hid->product == USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER)
+			hid->group = HID_GROUP_GENERIC;
+		break;
 	}
 
 	/* fall back to generic driver in case specific driver doesn't exist */
-- 
2.11.0

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

end of thread, other threads:[~2017-09-22  8:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-11  7:42 [PATCH] HID: core: assign usbhid to handle EETI PID=0x0001 HID device JamChen
     [not found] ` <778fb127-4e62-943b-a14f-f219ffdac152@pr.hu>
     [not found]   ` <CAPHAoVBjJPekxs8=m314f9ziD60ANgzeuvOVoXeYridoEt3FeQ@mail.gmail.com>
2017-08-17 13:59     ` Boszormenyi Zoltan
2017-08-22  9:33 ` Benjamin Tissoires
2017-09-22  8:33   ` Boszormenyi Zoltan
     [not found] ` <71e49c0b-959b-4d55-b1d3-6aafe85f8652@gmail.com>
2017-08-22 16:13   ` Kirill Esipov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®