On Tuesday 17 July 2012 15:00:08 Alan Stern wrote:
> Furthermore, what happens if you power down a port when the attached
> device is active (not suspended)? Again it will look like a physical
> disconnect. So again, you don't want to power off such ports -- even
> though they don't have remote wakeup enabled.
>
> I guess this comes down to deciding how much power you want to give the
> user. Are you saying that the user should be prevented from powering
> down a port unless:
>
> there is no device attached, or
>
> the attached device is suspended with wakeup disabled?
>
> But the justification seems weak. If powering down a port looks
> exactly like a disconnect, then you should allow powering down to the
> same extent that you allow disconnects. Last time I checked, the
> kernel did not try to prevent users from unplugging their USB devices.
But it does not claim that a device is still present after that. An attempt
to use it returns an error.
Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html