All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB: serial: pl2303: fix GL type detection
@ 2021-08-26 11:02 Robert Marko
  2021-08-26 11:07 ` Johan Hovold
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Marko @ 2021-08-26 11:02 UTC (permalink / raw)
  To: johan, gregkh, linux-usb, linux-kernel; +Cc: Robert Marko

At least some PL2303GL have a bcdDevice of 0x405 instead of 0x100 as the
datasheet claims. Add it to the list of known release numbers for the
HXN (G) type.

Fixes: 894758d0571d ("USB: serial: pl2303: tighten type HXN (G) detection")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
 drivers/usb/serial/pl2303.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index 2ce9cbf49e97..3b579966fe73 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
@@ -433,6 +433,7 @@ static int pl2303_detect_type(struct usb_serial *serial)
 		switch (bcdDevice) {
 		case 0x100:
 		case 0x305:
+		case 0x405:
 			/*
 			 * Assume it's an HXN-type if the device doesn't
 			 * support the old read request value.
-- 
2.31.1


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

end of thread, other threads:[~2021-08-30  7:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26 11:02 [PATCH] USB: serial: pl2303: fix GL type detection Robert Marko
2021-08-26 11:07 ` Johan Hovold
2021-08-26 11:09   ` Robert Marko
2021-08-30  7:23     ` Johan Hovold

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.