cdc_ether problem

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Darius
Date: Wednesday, November 12, 2008 - 6:04 am

Hi All,

I'm testing my ne USB device driver for i.MX.
It works stable with serial gadget.
When using ethernet gadget, I have such problem with cdc_ether on host side:

If USB device (based on i.MX and my new driver) is first time connected to host,
cdc_ether module is loaded and everything works ok. Link "usb0" is created on both sides, and ping runs well.
BUT, if USB device is disconnected from host, cdc_ether is not unloaded. When connecting to host again,
I'm allways getting this error: "cdc_ether: probe of 5-2:1.0 failed with error -71".
Log of my device driver shows, that in this case one "Change Interface" request is not received from the host.
Below are two logs of debug kernel attached - one after succesful connection and one after failed connection.

I'm not good in USB core or networking, therefore I can't understand wheter it is cdc_ether driver problem, or bug in my hardware driver.
If I remove cdc_ether module with # rmmod cdc_ether and then connect device to host, everything is ok. Therefore I think my hardware driver works correct.
My host is x86_64 with Fedora 8 and kernel 2.6.26.6-49.fc8debug.
I'm waiting for any help and comments!

Darius.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
cdc_ether problem, Darius, (Wed Nov 12, 6:04 am)