[Bug 99885] Re: [PATCH] Enable to use a Sanwa PC5000 multimeter usb cable
Pawel Ludwikow
pludwiko at rab.ict.pwr.wroc.pl
Sun Apr 1 19:39:01 UTC 2007
The patch
** Attachment added: "patch for sanwa pc5000 usb cable (kb-usb2)"
http://librarian.launchpad.net/7100616/kernel.patch
** Description changed:
Binary package hint: linux-source
I don't know other way to submit a patch, so it goes via bug report. If
there is a more correct way to do so please give me a note.
I enclose a simple (3 line) patch to enable the Sanwa PC5000 multimeter
usb cable (KB-USB2). It contains a popular Prolific 2303 chip but with
different vendor&product ID. The patch was tested on ubuntu kernel
2.6.20. After applying the path the cable is detected, /dev/ttyUSBx is
allocated and the communication is taking place without errors.
- The patch:
-
- diff -rc linux-source-2.6.20/drivers/usb/serial/pl2303.c linux-source-2.6.20-mod/drivers/usb/serial/pl2303.c
- *** linux-source-2.6.20/drivers/usb/serial/pl2303.c 2006-12-14 01:58:58.000000000 +0100
- --- linux-source-2.6.20-mod/drivers/usb/serial/pl2303.c 2007-03-31 20:58:33.000000000 +0200
- ***************
- *** 83,88 ****
- --- 83,89 ----
- { USB_DEVICE(BELKIN_VENDOR_ID, BELKIN_PRODUCT_ID) },
- { USB_DEVICE(ALCOR_VENDOR_ID, ALCOR_PRODUCT_ID) },
- { USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_ID) },
- + { USB_DEVICE(SANWA_VENDOR_ID, SANWA_PRODUCT_ID) },
- { } /* Terminating entry */
- };
-
- diff -rc linux-source-2.6.20/drivers/usb/serial/pl2303.h linux-source-2.6.20-mod/drivers/usb/serial/pl2303.h
- *** linux-source-2.6.20/drivers/usb/serial/pl2303.h 2006-10-02 17:39:23.000000000 +0200
- --- linux-source-2.6.20-mod/drivers/usb/serial/pl2303.h 2007-04-01 16:09:37.000000000 +0200
- ***************
- *** 97,99 ****
- --- 97,104 ----
- /* Huawei E620 UMTS/HSDPA card (ID: 12d1:1001) */
- #define HUAWEI_VENDOR_ID 0x12d1
- #define HUAWEI_PRODUCT_ID 0x1001
- +
- + /* Sanwa KB-USB2 multimeter cable (ID: 11ad:0001) */
- + #define SANWA_VENDOR_ID 0x11ad
- + #define SANWA_PRODUCT_ID 0x0001
- +
ProblemType: Bug
Architecture: i386
Date: Sun Apr 1 21:27:32 2007
DistroRelease: Ubuntu 7.04
Uname: Linux discovery 2.6.20.3-ubuntu1-usbtest #1 SMP Sun Apr 1 10:44:56 CEST 2007 i686 GNU/Linux
--
[PATCH] Enable to use a Sanwa PC5000 multimeter usb cable
https://launchpad.net/bugs/99885
More information about the kernel-bugs
mailing list