> > I think we should only allow suspend if cable isn't connected. What > > would happend if you have mounted fs (using mass storage), user is > > transferring files and you force a disconnect ? > > We force a disconnect during suspend which is actually triggered by user > Only. So do we need to consider this scenario? > Like Ajay says, the kernel would need to take a call either way: - Disallowing a system wide suspend, just because a USB cable is connected - Allow a system-wide suspend, but disconnect the gadget device. I would vote to allow a system-wide suspend. A user that tries to put a phone to standby in the middle of a data transfer shouldn't be too surprised that the data transfer was aborted. - Anand -- 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