Re: [patch/rft 2.6.17-rc5-git 3/6] PM_EVENT_PRETHAW, handle in IDE and PCI

Pavel Machek
2006-05-30T19:21:08Z

Hi!

> @@ -1227,7 +1227,9 @@ static int generic_ide_suspend(struct de
> rq.special = &args;
> rq.pm = &rqpm;
> rqpm.pm_step = ide_pm_state_start_suspend;
> - rqpm.pm_state = state.event;
> + if (mesg.event == PM_EVENT_PRETHAW)
> + mesg.event = PM_EVENT_FREEZE;
> + rqpm.pm_state = mesg.event;
>

Actually it would be nicer not to modify mesg.event... And perhaps I'd
move this check lower -- to be consistent with 'low level driver gets
full info' idea. (Or is it checked at too many places?)

--
Thanks for all the (sleeping) penguins.