mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
NET: dmfe: don't access configuration space in D3 state
Accidently I reversed the order of pci_save_state and pci_set_power_state in .suspend()/.resume() callbacks Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
7b31f7ffa9
commit
65809b5125
1 changed files with 2 additions and 2 deletions
|
@ -2118,8 +2118,8 @@ static int dmfe_suspend(struct pci_dev *pci_dev, pm_message_t state)
|
|||
pci_enable_wake(pci_dev, PCI_D3cold, 1);
|
||||
|
||||
/* Power down device*/
|
||||
pci_set_power_state(pci_dev, pci_choose_state (pci_dev,state));
|
||||
pci_save_state(pci_dev);
|
||||
pci_set_power_state(pci_dev, pci_choose_state (pci_dev,state));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -2129,8 +2129,8 @@ static int dmfe_resume(struct pci_dev *pci_dev)
|
|||
struct net_device *dev = pci_get_drvdata(pci_dev);
|
||||
u32 tmp;
|
||||
|
||||
pci_restore_state(pci_dev);
|
||||
pci_set_power_state(pci_dev, PCI_D0);
|
||||
pci_restore_state(pci_dev);
|
||||
|
||||
/* Re-initilize DM910X board */
|
||||
dmfe_init_dm910x(dev);
|
||||
|
|
Loading…
Reference in a new issue