>>>>> "Patrick" == Patrick Gitchell <prgitch@xxxxxxxxx> writes: Patrick> Hello, Patrick> I'm looking into having events occur in an embedded device when A) It Patrick> connects to a host using the File Storage gadget and B) It is ejected Patrick> by that host. Part A is pretty straightforward, however, I'm having Patrick> issues with part B... Patrick> The problem is, Windows seems to treat the event differently than Patrick> Linux, as Linux sends a SCSI STOP command to the device, whereas Patrick> Windows sends a USB Suspend. We basically already support that. See the following commits: 31436a1a64b8eed: USB: Mass storage gadget: Handle eject request f48cf80f93ba974: USB: Composite framework: Add suspended sysfs entry -- Bye, Peter Korsgaard -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html