On Mon, Oct 24, 2022 at 10:15:28AM +0200, Alexander Stein wrote: > Hello Shawn, > > Am Montag, 24. Oktober 2022, 03:31:23 CEST schrieb Shawn Guo: > > On Mon, Sep 26, 2022 at 01:26:22PM +0200, Alexander Stein wrote: > > > extcon does not work somehow, so switch to usb-role-switch instead. > > > > So extcon was added without testing? > > It had been tested, but apparently only the USB Host case :( extcon itself > does work and detects ID pin correctly. Cable states switch when a USB device > (mass storage) is attached and removed, thus mass storage is detect and > usable. > But unfortunately this is not the case for USB device using g_serial udc > driver. IMHO this seems to be a problem within chipidea usb driver. > Using usb-role-switch instead, both USB host and USB device do work. Thanks for the clarification! Could you improve the commit log a bit with these information? Shawn