Hello,
I worked on a J5 (DM814x) board USB device driver. I set USBn_INTRUSB register bit5: DISCON. But when the USB device port cable disconnect from USB host, I only can get the SUSPEND interrupt. I can't get the device disconnect interrupt.
DM814x Technical Reference Manual(sprugz8b.pdf) mentioned USB[5] Interrupt for device disconnected (host mode). I think that why I can't get the device disconnect interrupt.
My question are:
-- When DM814x USB works on the device mode, how to detect if the USB device disconnect?
-- And if VBUS connect external 5V for ipod role switch,how to detect if the USB device disconnect?
I also test on AM335x board. AM335x Technical Reference Manual(spruh73f.pdf) mentioned USB[5] Interrupt for device disconnected (host mode) too. But when the USB device cable removed, I can get the USB device disconnect interrupt.
Thanks, Jian