Am Dienstag, 29. September 2009 18:57:52 schrieb Alan Stern: > On Tue, 29 Sep 2009, Oliver Neukum wrote: > > Am Montag, 28. September 2009 22:03:28 schrieb Alan Stern: > A "sync" call can easily be added to a userspace program. It's not > appropriate within a kernel API. Why? This is exactly what is done upon suspension or poweroff. > I don't regard "usually" as a persuasive argument. Furthermore, this > API applies only to ports with an attached device, which means it is > better described as a device API than as a port API. As an analogy, > consider the suspend port feature. We export that through sysfs. No. Suspension is far more complex than merely setting a port's feature. We use callbacks to inform drivers and propagate the event through the device tree. Preparing a device for disconnection would be a task akin to preparing it for suspension. Regards Oliver -- 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