I'm running kernel version 2.6.20 on a AT91RM9200 and have a gadget serial (USB) open in user space. I'm reading and writing with no problem. My reads are blocking and
the read call returns fine when data comes in on the USB port. My
problem is that when I'm waiting on the read() call and the USB device
cable is removed, the read() does not return with an error like I
would expect, in fact it does not return at all and seems to be
locked. Basically the gadget serial driver is not releasing the read call when the USB disconnects. Anyone have any insight into this?
Thanks a lot.