[PATCH 3/3] ath10k: re-enable pci device upon resume
Michal Kazior
michal.kazior at tieto.com
Mon Mar 2 01:09:04 PST 2015
This balances out pci_disable_device() from
ath10k_pci_hif_suspend().
Signed-off-by: Michal Kazior <michal.kazior at tieto.com>
---
drivers/net/wireless/ath/ath10k/pci.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index d06b264..1295345 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -2079,6 +2079,12 @@ static int ath10k_pci_hif_resume(struct ath10k *ar)
return ret;
}
+ ret = pci_enable_device(pdev);
+ if (ret) {
+ ath10k_err(ar, "failed to enable pci device: %d\n", ret);
+ return ret;
+ }
+
pci_restore_state(pdev);
/* Suspend/Resume resets the PCI configuration space, so we have to
--
1.8.5.3
More information about the ath10k
mailing list