public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dario Lombardo <dario.lombardo@libero.it>
To: Greg Kroah-Hartman <gregkh@suse.de>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: [PATCH: linux-2.6]: drivers: update to pl2303 usb-serial to support Motorola cables
Date: Fri, 21 Jan 2011 15:35:19 +0100	[thread overview]
Message-ID: <4D3999A7.1030201@libero.it> (raw)

From: Dario Lombardo <dario.lombardo@libero.it>

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.

Signed-off-by: Dario Lombardo <dario.lombardo@libero.it>

---

--- a/drivers/usb/serial/pl2303.c    2011-01-21 09:11:09.000000000 +0100
+++ b/drivers/usb/serial/pl2303.c    2011-01-19 13:58:22.000000000 +0100
@@ -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) },
--- a/drivers/usb/serial/pl2303.h    2011-01-21 09:11:21.000000000 +0100
+++ b/drivers/usb/serial/pl2303.h    2011-01-19 13:54:30.000000000 +0100
@@ -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

                 reply	other threads:[~2011-01-21 14:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D3999A7.1030201@libero.it \
    --to=dario.lombardo@libero.it \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox