I 'm fairly new to Linux drivers, and have a similar question as in this post, but on an AM3352
I've got my board configured as a USB gadget serial device.
When I connect to a host, I can see the diagnostic message "g_serial gadget ..." on the console.
How do I capture this in some way so my application knows when the host is connected?
Likewise, how do I configure and capture the "host disconnected" status.
It should be possible via detecting the change in the DEVCTL_VBUS status, but I'm unsure of how to monitor that bit in user space.
Thanks,
Peter Steinberg