Hi,
I am working on USB function driver for ls1046ardb board, the issue I am facing is that I don't receive a disconnect interrupt when cable is unplugged from host. I have enable the disconnect interrupt from DEVTEN register. I am using USB1 device. Are there any other settings that need to be done for enabling the disconnect interrupt. Connect and reset interrupts are working fine.
Look at the Section 33.4.3.1.1 of the LS1046a Reference Manual. Do you use similar command sequence for USB 3.0 device initialization?
Look at attached file. It is LS1043a USB driver code from NXP SDK 2.0 Linux BSP. Similar code can be used on the LS1046a board.
See gatged.c file.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks I will look into it.