I've been busy using CDC on SuSE 8.2's kernel 2.4.10 (using the module CDCEther) lately. I'm busy developing an USB- CDC- function (Ethernet Control Model), and I have made a set of (device, configuration, interface and endpoint) descriptors. What I'm seeing is that (after the device's address and the device's configuration have been 'get' and then 'set' by the Linux host), the CDC linux host driver activates Interface 1, alternate 0 with a 'set interface'- USB- command. One would think, as is normal in USB, that interface 0 (minimally holding the needed CTRL0- endpoint) is ALWAYS activated.
Well, as my device configuration also contains, on interface 0, an Int- endpoint (on endpoint 1, sample period value being 10), one would think that the set Int- sample time would be respected on that interrupt endpoint, and that the Linux host (by means of the CDCEther- module) would send an IN- token on the interrupt endpoint every 10 ms (mostly NAK'ed by the device when there's no data on the endpoint). However, it does NOT.
I think that this behaviour is not OK, as my device sends a message on that (interrrupt) endpoint (by the way : terminated by a zero- length message on that endpoint, so there's no 'short packet'- issue !)... which is never seen by the host, because the host does not send the necessary IN- tokens every sample period.
Is this an error in CDCEther.c, or is this some undocumented but erroneous behaviour ? I send the log together with this message.
Thank you in advance,
Philippe.
P.S. If this would be a CDCEther- problem, would this be solved in the 2.6 kernel (which seems to use usbnet as the module for that job) ?
Jul 22 16:24:30 bvwcltbp kernel: hub.c: port 1, portstatus 303, change 0, 1.5 Mb/s Jul 22 16:24:30 bvwcltbp kernel: hub.c: port 2, portstatus 101, change 1, 12 Mb/s Jul 22 16:24:30 bvwcltbp kernel: hub.c: port 2 connection change Jul 22 16:24:30 bvwcltbp kernel: hub.c: port 2, portstatus 101, change 1, 12 Mb/s Jul 22 16:24:30 bvwcltbp kernel: hub.c: port 2, portstatus 101, change 0, 12 Mb/s Jul 22 16:24:30 bvwcltbp kernel: hub.c: port 2, portstatus 103, change 0, 12 Mb/s Jul 22 16:24:30 bvwcltbp kernel: hub.c: new USB device 00:1f.2-2, assigned address 51 Jul 22 16:24:30 bvwcltbp kernel: usb.c: kmalloc IF c1ddc7a0, numif 2 Jul 22 16:24:30 bvwcltbp kernel: usb.c: skipping descriptor 0x24 Jul 22 16:24:30 bvwcltbp last message repeated 2 times Jul 22 16:24:30 bvwcltbp kernel: usb.c: skipped 3 class/vendor specific endpoint descriptors Jul 22 16:24:30 bvwcltbp kernel: usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3 Jul 22 16:24:30 bvwcltbp kernel: usb.c: USB device number 51 default language ID 0x409 Jul 22 16:24:30 bvwcltbp kernel: Manufacturer: [Correctly given] Jul 22 16:24:30 bvwcltbp kernel: Product: [Correctly given] Jul 22 16:24:30 bvwcltbp kernel: SerialNumber: [Correctly given] Jul 22 16:24:30 bvwcltbp kernel: CDCEther.c: Ethernet information found at device configuration. Trying to use it anyway. Jul 22 16:24:30 bvwcltbp kernel: CDCEther.c: Found Header descriptor, CDC version 110. Jul 22 16:24:30 bvwcltbp kernel: CDCEther.c: Imperfect filtering support - need sw hashing Jul 22 16:24:30 bvwcltbp kernel: CDCEther.c: Can't use SetEthernetMulticastFilters request Jul 22 16:24:30 bvwcltbp kernel: CDCEther.c: detected BULK OUT packets of size 64 Jul 22 16:24:30 bvwcltbp kernel: CDCEther.c: interrupt address: 1 Jul 22 16:24:30 bvwcltbp kernel: CDCEther.c: interrupt interval: 10 Jul 22 16:24:30 bvwcltbp kernel: usb.c: ignoring set_interface for dev 51, iface 0, alt 0 Jul 22 16:24:30 bvwcltbp kernel: CDCEther.c: eth1: [Concatenation of Manufacturer, Product, and SerialNumber] Jul 22 16:24:30 bvwcltbp kernel: CDCEther.c: eth1: [Ethernet MAC Address in the form xx:yy:zz:aa:bb:cc] Jul 22 16:24:30 bvwcltbp kernel: usb.c: CDCEther driver claimed interface c1ddc7b8 Jul 22 16:24:30 bvwcltbp kernel: usb.c: CDCEther driver claimed interface c1ddc7a0 Jul 22 16:24:30 bvwcltbp kernel: usb.c: kusbd: /sbin/hotplug add 51 Jul 22 16:24:30 bvwcltbp kernel: usb.c: kusbd: /sbin/hotplug add 51 Jul 22 16:24:30 bvwcltbp kernel: hub.c: port 1, portstatus 303, change 0, 1.5 Mb/s Jul 22 16:24:30 bvwcltbp kernel: hub.c: port 2, portstatus 103, change 0, 12 Mb/s Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b96a0, burb c24b9d20 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 80 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b9d20, burb c24b96a0 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b96a0, burb c24b9d20 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b9d20, burb c24b96a0 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b96a0, burb c24b9d20 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b9d20, burb c24b96a0 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b96a0, burb c24b9d20 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b9d20, burb c24b96a0 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b96a0, burb c24b9d20 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b9d20, burb c24b96a0 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b96a0, burb c24b9d20 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b9d20, burb c24b96a0 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp kernel: usb-uhci.c: ENXIO 80003380, flags 0, urb c24b96a0, burb c24b9d20 Jul 22 16:24:33 bvwcltbp kernel: usbdevfs: USBDEVFS_CONTROL failed dev 51 rqt 128 rq 6 len 9 ret -6 Jul 22 16:24:33 bvwcltbp /etc/hotplug/usb.agent[8077]: cannot get config descriptor 0, No such device or address (6) Jul 22 16:24:33 bvwcltbp last message repeated 6 times Jul 22 16:24:33 bvwcltbp /etc/hotplug/usb.agent[8070]: cannot get config descriptor 0, No such device or address (6) Jul 22 16:24:33 bvwcltbp last message repeated 5 times Jul 22 16:24:38 bvwcltbp /etc/hotplug/net.agent[8037]: No HW description found ... exiting
