This is a discussion on Partial patch for sys/dev/usb/if_cdce.c within the mailing.openbsd.tech forums, part of the OpenBSD category; --> The patch at the end of this e-mail enables my USB cable modem to work (I've been running with ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| The patch at the end of this e-mail enables my USB cable modem to work (I've been running with this patch for several days without problems). Without this I only get: cdce0 at uhub0 port 4 configuration 1 interface 1 cdce0: AMBIT NTL USB Cable Modem, rev 1.10/1.01, addr 7 cdce0: could not find data bulk in i.e. the cdce driver can't talk properly to the modem. With the patch I get this: cdce0 at uhub0 port 4 configuration 1 interface 1 cdce0: AMBIT NTL USB Cable Modem, rev 1.10/1.01, addr 7 cdce0: could not find data bulk in cdce1 at uhub0 port 4 configuration 1 interface 0 cdce1: AMBIT NTL USB Cable Modem, rev 1.10/1.01, addr 7 cdce1: address 2a:cb:83:02:00:00 so cdce0 attaches but still doesn't work; however cdce1 attaches and works as expected. I don't pretend to understand why this duplication happens (hence why this e-mail is titled "partial patch"). In case it's relevant, the output of usbdevs is as follows: Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), NVIDIA(0x10de), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, C-Media USB Headphone Set(0x000c), ABC(0x0d8c), rev 1.00 port 2 addr 3: full speed, self powered, config 1, product 0x7000(0x7000), ATEN International(0x0557), rev 1.00 port 1 addr 4: low speed, power 50 mA, config 1, USB Multimedia Keyboard(0x9410), MALTRON(0x058f), rev 1.22 port 2 powered port 3 powered port 4 addr 5: low speed, power 100 mA, config 1, Trackball(0xc404), Logitech(0x046d), rev 2.20 port 3 addr 6: full speed, power 300 mA, config 1, Linksys USB2.0 Network Adapter(0x2226), USB(0x077b), rev 0.01 port 4 addr 7: full speed, self powered, config 1, NTL USB Cable Modem(0x6098), AMBIT(0x0bb2), rev 1.01 port 5 powered port 6 powered port 7 powered port 8 powered port 9 powered port 10 powered At the risk of stating the obvious, the patch is relative to sys/dev/usb and requires usbdevs.h usbdevs_data.h to be rebuilt. Laurie -- http://tratt.net/laurie/ -- Personal http://convergepl.org/ -- The Converge programming language --- usbdevs.orig Mon Mar 19 14:37:27 2007 +++ usbdevs Mon Mar 19 14:37:29 2007 @@ -675,6 +675,7 @@ /* Ambit Microsystems products */ product AMBIT WLAN 0x0302 WLAN +product AMBIT NTL_250 0x6098 NTL 250 cable modem /* American Power Conversion products */ product APC UPSPRO500 0x0002 Back-UPS Pro 500 --- if_cdce.c.orig Mon Mar 19 14:37:44 2007 +++ if_cdce.c Mon Mar 19 14:38:14 2007 @@ -101,6 +101,7 @@ {{ USB_VENDOR_GMATE, USB_PRODUCT_GMATE_YP3X00 }, CDCE_NO_UNION }, {{ USB_VENDOR_NETCHIP, USB_PRODUCT_NETCHIP_ETHERNETGADGET }, CDCE_NO_UNION }, {{ USB_VENDOR_COMPAQ, USB_PRODUCT_COMPAQ_IPAQLINUX }, CDCE_NO_UNION }, + {{ USB_VENDOR_AMBIT, USB_PRODUCT_AMBIT_NTL_250 }, CDCE_NO_UNION }, }; #define cdce_lookup(v, p) ((const struct cdce_type *)usb_lookup(cdce_devs, v, p)) |