Re: [PATCH] SCSI midlayer power management

Nathan Bryant
2004-08-12T20:41:56Z

James Bottomley wrote:
> On Thu, 2004-08-12 at 16:26, Pavel Machek wrote:
>
>>Yes.
>
>
> Well, that makes the suspend and resume functions rather complex.
> They're not going to be coded simply if we have to save and restore the
> register state of the cards and reinitialise them. I assume if you had
> to pick three drivers to do this for, that would be aic7xxx, aic79xx and
> sym_2?

S3 suspend-to-RAM has the same requirement. When the system enters S3,
the PCI slot loses all physical power and the card's registers are
completely gone.

So I've already had to fix up the aic7xxx driver to, among other things,
reset the DMA base addres on resume. This should help for swsusp.
Although maybe there are other requirements for swsusp... I think for
swsusp we have to cope with a resume request that seems to come out of
nowhere.

>
> James
>
>
>