Re: [PATCH] SCSI midlayer power management

From: Nathan Bryant
Date: Thu Aug 12 2004 - 15:44:59 EST


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




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/