Hello Xu, On Tue, 25 Jul 2023 12:23:43 +0000 Xu Yang <xu.yang_2@xxxxxxx> wrote: ... > > I tested again now with the 3 patches applied and found that with > > CONFIG_USB_OTG=y it works, and detects a device when plugged. Good! > > > > However with CONFIG_USB_OTG disabled it is still not working. In this > > case obviously mxs_phy_is_otg_host() returns always false, even though > > las_event is 2 (USB_EVENT_ID). This is what I get during boot with no > > device connected: > > Yes, I may need to remove CONFIG_USB_OTG condifion. Will handle this later. Did you manage to make progress with this work? It looked like very close to be fixed in the proper way with your latest patch iteration. I'd definitely happy to test new patches as soon as you have any. Best regards, Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com