I am using iMX53 qsb with Linux 2.6.35 kernel now. I enable USB gadget function(g_hid) to send data from board device(gadget) to PC host. The data transfer function is OK. but when I plug out device(gadget), I can't receive any "device(gadget) plug out" message from system, also including "device(gadget) plug in". Are there any APIs in user space or any modification in drivers to help to receive plug condition?
Any pointers or idea would be greatly appreciated.