Oliver Neukum wrote:
> Am Mittwoch, 5. Juni 2002 16:54 schrieb David Brownell:
> 
>>>>>OK, but where do we handle the case where resumption is impossible
>>>>>because the device has been unplugged ?
>>>>
>>>>If that's not already handled, it'd be a bug in the hub driver.
>>>
>>>Well, how will we handle it with respect to the resume function ?
>>>Do we report failure if there's no longer a device at the physical
>>>location ? IMHO we do.
>>
>>Report it to what?  And in what sense would it ever be an "error"
>>to remove a device -- even during suspend?
>
> The genric layer that did request the resumption must be told
> that this was impossible and the device should be purged.

Last time I did suspend/resume of a system with USB, the hub
driver _already_ handled that.  Presumably it still does.


>>>Now I am puzzeled. There must be some misunderstanding.
>>>Could you please outline, how we deal with a resumption
>>>if the devices lost power under the new scheme ?
>>
>>By definition, this is "(re)enumeration", not resumption.
>
> But how is the state restored ?

I seem to recall pointing you at usb-storage once already,
as the only USB driver today which needs to do such stuff.
It has a notion of device identity, based ISTR on serial
numbers, and saves that state. UTSL.

- Dave



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to