This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

About the linux usb hotplug issue on AM335X:no usb hotplug msg or event when plugin/plugout usb gadget device

hello,

there is a issue, i can't get any msg or event when plugin/plugout usb gadget device on AM335X;

and the following is some message when i plugin or plugout usb mass storage gadget device;

1. plugin the usb mass storage device in AM335X board, print the following msg:

root@am335x-evm:/media/card# [  227.138070] musb g_mass_storage gadget disconnec

ted.

[  227.894687]  gadget: high-speed config #1: Linux File-Backed Storage

 

2. plugout the usb mass storage device in AM335X board, on any msg is printing:

3. plugin the usb mass storage device in AM335X board again, print the following msg:

root@am335x-evm:/media/card# [  240.147903] musb g_mass_storage gadget disconnec

ted.

[  240.903177]  gadget: high-speed config #1: Linux File-Backed Storage

 

root@am335x-evm:/media/card#

it seems that when plugin usb gadget devce again, it shall disconnect the usb device firstly, and then reconnect the usb device again;

so my question is how can I know whether USB gadget device has been plugged out/in?

thanks in advance!