Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 523c36fc authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath9k: Fix bug in PCI resume



This patch fixes a bug where the device was enabled
before restoring the PCI state.

Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1cf6873a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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