AnsweredAssumed Answered

imx6ul usb gadget connect/disconnect/suspend/resume events ?

Question asked by SJA on May 7, 2020
Latest reply on May 29, 2020 by karan gajjar

Using g_ether USB gadget with imx6ul under linux.

We can disconnect USB cable and reconnect with no problems.

Link goes and comes back just fine.


But how do I get an hotplug type event (kernel or udev trigger) when the

USB cable is disconnected and then reconnected ??

We do not see an disconnect activity in kernel log.

And we see "g_ether gadget: high-speed config #1: CDC Ethernet (ECM)"

when the cable is plugged back in.


/sys/class/udc/ci_hdrc.0/state shows "configured" when the cable is plugged in

and "suspended" when the cable is unplugged.