Skip to content

Commit

Permalink
ath9k: Fix bug in PCI resume
Browse files Browse the repository at this point in the history
This patch fixes a bug where the device was enabled
before restoring the PCI state.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sujith authored and John W. Linville committed Aug 14, 2009
1 parent 1cf6873 commit 523c36f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/wireless/ath/ath9k/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,12 @@ static int ath_pci_resume(struct pci_dev *pdev)
u32 val;
int err;

pci_restore_state(pdev);

err = pci_enable_device(pdev);
if (err)
return err;
pci_restore_state(pdev);

/*
* Suspend/Resume resets the PCI configuration space, so we have to
* re-disable the RETRY_TIMEOUT register (0x41) to keep
Expand Down

0 comments on commit 523c36f

Please sign in to comment.