Re: usbd does not use detach

From: Terry Lambert <tlambert2_at_mindspring.com>
Date: Fri, 15 Aug 2003 01:55:34 -0700
"M. Warner Losh" wrote:
> These two are redundant.  Devices can already ask the bridge driver if
> the device is still present on the bus.  Smart drivers already do
> this, but most of the drivers in the tree are dumb.  You also have to
> deal with device disappearance in ISRs since it is possible for the
> device to go away while the device is in the middle of the ISR.  Some
> bus technologies also allow interrupt entry when a card/device is
> ejected.

Another common case is to hibernate/sleep/suspend/whatever the
machine, and then disconnect the device out from under it, and
it not being there when the machine wakes back up.  Almost all
MP3 players and Palm devices have that issues (since the order
of human operation is to shut off the machine, get the wallet
and keys, grab the iPod (or whatever), and head out the door).

-- Terry
Received on Thu Aug 14 2003 - 23:56:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:18 UTC