Bug 93347

Summary: Added support for Tripplite U209-000-R Usb-Serial adapter
Product: Base System Reporter: Nick Gustas <freebsdpr>
Component: usbAssignee: iedowse
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 6.1-BETA1   
Hardware: Any   
OS: Any   

Description Nick Gustas 2006-02-14 16:50:03 UTC
Patch to "add" support for the Tripplite U209-000-R usb to serial adapter.

uplcom.c ver 1.29 from FreeBSD 6.1-BETA1 doesn't support the Tripplite U209-000-R, I tried 1.31 from HEAD, and it also didn't support it. Device shows up as gen0 instead of ucom0

Hopefully this can be added before 6.1 is released.

Fix: Patch for uplcom.c ver 1.29




-----



cd /usr/src/sys/dev/usb

patch < patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- uplcom.c~  Tue Feb 14 12:29:20 2006
|+++ uplcom.c   Tue Feb 14 12:29:20 2006
--------------------------
Patching file uplcom.c using Plan A...
Hunk #1 succeeded at 241.
done

cd /usr/src/sys/modules/uplcom

make

kldload ./uplcom.ko

ucom0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, addr 2

cu -l /dev/cuaU0
Connected
at
OK--x6B0mcaTp1yy6Ue736tERUuQqthrJVpXrGBUOM5fLvC4YmZ6
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- uplcom.c~   Tue Feb 14 12:29:20 2006
+++ uplcom.c    Tue Feb 14 12:29:20 2006
@@ -241,6 +241,8 @@
        /* IOGEAR/ATEN UC-232A (also ST Lab USB-SERIAL-1) */
        { USB_VENDOR_PROLIFIC, USB_PRODUCT_PROLIFIC_PL2303, -1, TYPE_PL2303 },
        /* TDK USB-PHS Adapter UHA6400 */
+        /* Tripplite U209-000-R */
+        { USB_VENDOR_TRIPPLITE, USB_PRODUCT_ATEN_UC232A, -1, TYPE_PL2303X },
        { USB_VENDOR_TDK, USB_PRODUCT_TDK_UHA6400, -1, TYPE_PL2303 },
        /* RATOC REX-USB60 */
        { USB_VENDOR_RATOC, USB_PRODUCT_RATOC_REXUSB60, -1, TYPE_PL2303 },
How-To-Repeat: captive# kldload /boot/kernel/uplcom.ko
captive# kldstat
Id Refs Address    Size     Name
 1    7 0xc0400000 640478   kernel
 2    1 0xc0a41000 58554    acpi.ko
 3    2 0xc1bf5000 3000     ucom.ko
 4    1 0xc1cae000 3000     uplcom.ko


ugen0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, addr 2


captive# usbdevs -a 2 -v
Controller /dev/usb0:
Controller /dev/usb1:
addr 2: full speed, power 100 mA, config 1, USB-Serial Controller(0x2008), Prolific Technology Inc.(0x2478), rev 3.00
Controller /dev/usb2:
Comment 1 Nick Gustas 2006-02-14 18:23:07 UTC
Patch inserted new lines in wrong spot, still works, but not right. Sorry.

Updated below.

--- uplcom.c.1.21       Tue Feb 14 12:29:20 2006
+++ uplcom.c    Tue Feb 14 14:18:40 2006
@@ -240,6 +240,8 @@
          0x300, TYPE_PL2303X },
        /* IOGEAR/ATEN UC-232A (also ST Lab USB-SERIAL-1) */
        { USB_VENDOR_PROLIFIC, USB_PRODUCT_PROLIFIC_PL2303, -1, 
TYPE_PL2303 },
+        /* Tripplite U209-000-R */
+        { USB_VENDOR_TRIPPLITE, USB_PRODUCT_ATEN_UC232A, -1, 
TYPE_PL2303X },
        /* TDK USB-PHS Adapter UHA6400 */
        { USB_VENDOR_TDK, USB_PRODUCT_TDK_UHA6400, -1, TYPE_PL2303 },
        /* RATOC REX-USB60 */
Comment 2 iedowse freebsd_committer freebsd_triage 2006-02-27 01:04:10 UTC
State Changed
From-To: open->patched


Committed to -CURRENT, thanks! 


Comment 3 iedowse freebsd_committer freebsd_triage 2006-02-27 01:04:10 UTC
Responsible Changed
From-To: freebsd-usb->iedowse


MFC reminder.
Comment 4 iedowse freebsd_committer freebsd_triage 2006-06-05 13:02:02 UTC
State Changed
From-To: patched->closed


MFC'd to 6-stable.