Re: [patch] enums to clear suspend-state confusion

David Brownell
2004-08-18T18:45:08Z

On Wednesday 18 August 2004 10:31 am, Alan Cox wrote:
> It would also be nice
> to have a driver flag to indicate which devices can simply be
> hotunplug/hotreplugged over a suspend and don't need extra duplicate
> code.

In fact, that should be the default: if there's no suspend(),
use drivers' unplug/replug logic. Bugs in that code need to be
fixed regardless of PM being used (or not).

Right now that won't work because of a self-deadlock
in the PM core, but that's a fixable problem.