pci config space

Greg KH greg at kroah.com
Sun Feb 20 00:33:19 EST 2011


On Sat, Feb 19, 2011 at 03:32:51PM -0600, Asim wrote:
> Hi,
> 
> While this may just be connecting the dots, I am not able to fully
> understand how pci_save_state works.
> 
> I see that the pci_save_state and pci_restore_state are invoked at
> suspend and resume.  This saves the PCI configuration registers during
> suspend. Are these the device registers or bridge registers?

It depends if the device is a device or a bridge :)

> Consequently, is the pci_save_state and driver suspend routine saving
> the full device state/device state exposed to PCI or PCI state ?

Yes.

Hope this helps,

greg k-h



More information about the Kernelnewbies mailing list