Skip to contentSkip to conversation

: drivers: update to pl2303 usb-serial to support Motorola cables

PATCH New Dario Lombardo 1 participant 1 message Jan 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : drivers: update to pl2303 usb-serial to support Motorola cables

From: Dario Lombardo <[email protected]>

Added 0x0307 device id to support Motorola cables to the pl2303 usb serial driver. This cable has a modified chip that is a pl2303, but declares itself as 0307. Fixed by adding the right device id to the supported devices list, assigning it the code labeled PL2303_PRODUCT_ID_MOTOROLA.

---

drivers/usb/serial/pl2303.c 2011-01-19 13:58:22.000000000 +0100 renamed from drivers/usb/serial/pl2303.c 2011-01-21 09:11:09.000000000 +0100 +1 -0
@@ -50,6 +50,7 @@
     { USB_DEVICE(PL2303_VENDOR_ID, PL2303_PRODUCT_ID_MMX) },
     { USB_DEVICE(PL2303_VENDOR_ID, PL2303_PRODUCT_ID_GPRS) },
     { USB_DEVICE(PL2303_VENDOR_ID, PL2303_PRODUCT_ID_HCR331) },
+    { USB_DEVICE(PL2303_VENDOR_ID, PL2303_PRODUCT_ID_MOTOROLA) },
     { USB_DEVICE(IODATA_VENDOR_ID, IODATA_PRODUCT_ID) },
     { USB_DEVICE(IODATA_VENDOR_ID, IODATA_PRODUCT_ID_RSAQ5) },
     { USB_DEVICE(ATEN_VENDOR_ID, ATEN_PRODUCT_ID) },
drivers/usb/serial/pl2303.h 2011-01-19 13:54:30.000000000 +0100 renamed from drivers/usb/serial/pl2303.h 2011-01-21 09:11:21.000000000 +0100 +1 -0
@@ -21,6 +21,7 @@
 #define PL2303_PRODUCT_ID_MMX        0x0612
 #define PL2303_PRODUCT_ID_GPRS        0x0609
 #define PL2303_PRODUCT_ID_HCR331    0x331a
+#define PL2303_PRODUCT_ID_MOTOROLA  0x0307
 
 #define ATEN_VENDOR_ID        0x0557
 #define ATEN_VENDOR_ID2        0x0547