Hi Igor,
Thanks for the reply.
May i know which version of sdk is the code extract from?
I am using linux 3.0.101, but i do not see any similiar coding around.
After doing some seaching, i found out that in /driver/usb/otg/fsl_otg.c, there is a part of code in function usb_otg_start:
if (le32_to_cpu(p_otg->dr_mem_map->otgsc) & OTGSC_STS_USB_ID)
p_otg->fsm.id = 1;
else
p_otg->fsm.id = 0;
It seems like this part of code checks for the ID STATUS bit in the USB OTGSC register.
I tried to force the p_otg->fsm.id to 0 without checking for this status bit, and it works (i plugged in my thumb drive and the USB OTG port success in enumerate the port)
However, may i know will there be any unexpected behaviour by just changing this part of code and do not check for the ID bit?
Thank you.
Regards,
ZC