Re: [PATCH] PCI PM: Restore standard config registers of all devices early (was: Re: EeePC resume failure - timers)

Alan Stern
2009-01-16T16:40:30Z

On Fri, 16 Jan 2009, Rafael J. Wysocki wrote:

> IMO suspend-resume is quite difficult to implement in a PCI driver unless
> the driver writer knows very well how PCI PM is supposed to work and interact
> with things like interrupts control, ACPI etc.

I agree. There's plenty of boilerplate PCI stuff in the USB
suspend/resume routines which really belongs in the PCI core. When we
switch over to the new framework (perhaps as soon as 2.6.30) the driver
code will be a lot simpler.

Alan Stern