Re: [PATCH 2/2] Fix console handling during suspend/resume

Alan Stern
2006-06-25T02:02:52Z

On Sat, 24 Jun 2006, Linus Torvalds wrote:

> /**
> * device_suspend - Save state and stop all devices in system.
> * @state: Power state to put each device in.
> *
> * Walk the dpm_active list, call ->suspend() for each device, and move
> - * it to dpm_off.
> - * Check the return value for each. If it returns 0, then we move the
> - * the device to the dpm_off list. If it returns -EAGAIN, we move it to
> - * the dpm_off_irq list. If we get a different error, try and back out.
> + * it to the dpm_off list.
> + *
> + * (For historical reasons, if it returns -EAGAIN, that used to mean
> + * that the device would be called again with interrupts enabled.
--------------------------------------------------------------^ disabled.

> + * These days, we use the "suspend_late()" callback for that, so we
> + * print a warning and consider it an error).

Alan Stern