On Fri, 24 Sep 2004, Oliver Neukum wrote:

> Hi,
> 
> this seems to have large relevance for the power management stuff we've
> been discussing.
> 
>       Regards
>               Oliver
> 
> ----------  Weitergeleitete Nachricht  ----------
> 
> Subject: suspend/resume support for driver requires an external firmware
> Date: Freitag, 24. September 2004 08:16
> From: "Zhu, Yi" <[EMAIL PROTECTED]>
> To: Patrick Mochel <[EMAIL PROTECTED]>, Linux Kernel Mailing List <[EMAIL PROTECTED]>
> 
> 
> [Mail originally post on acpi-dev, repost here per Patrick's request.]
> 
> 
> Hi,
> 
> I make the ipw2100 driver (http://ipw2100.sf.net) support suspend/resume
> with below patch.
> http://cache.gmane.org//gmane/linux/drivers/ipw2100/devel/2129-001.bin
> 
> Current state is the patch makes ipw2100 suspend/resume work in the expense
> of addtional ~200k kernel runtime memory. So I'd rather look on it as a
> workaround instead of a finial solution.
> 
> The problem is ipw2100 requires an external on-disk firmware support. When
> the device is put to D3 state, firmware needs to be unloaded. And the
> firmware should be loaded again after the device is put to D0 state. But
> currently there is no suspend/resume order(dependency) for the online
> devices list in the kernel (dpm_active). So the ide disk might still be in
> the suspend state when ipw2100->resume is called. This causes a deadlock.
> Note here the ipw2100 can be any driver that requires a firmware.

There are USB devices like this too.

My feeling is that the kernel should _not_ save the firmware during a D3
suspend.  When the resume takes place the device should be unregistered
and subsequently reprobed.  Then the firmware can be loaded again by the
same mechanism that loaded it in the first place.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to