Link state changes in USB ECM driver

Hi, am currently working on USB ECM driver and created couple of ECM interfaces. I was unable to figure out how the ECM driver ( f_acm.c ) handles the following cases.

Here are a few common cases that may lead to a link state change:

  1. A cable is plugged into or unplugged from an NIC ( ecm interface ).
  2. The device at the other end of the cable is powered down or disabled.

From a NIC driver perspective we poll the driver and figure out from the status register and determine whether the carrier is on or off.

But how does a USB ethernet i/f comes to know that carrier is off due to some error case.

Kindly let me know your inputs.

Regards, Sandeep

--------------------------------------- This message was sent using the comp.arch.embedded web interface on

formatting link

Reply to
Sandeeptssmg
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.