diff mbox

[3/3] ath10k: re-enable pci device upon resume

Message ID 1425287344-30594-3-git-send-email-michal.kazior@tieto.com (mailing list archive)
State Not Applicable
Delegated to: Kalle Valo
Headers show

Commit Message

Michal Kazior March 2, 2015, 9:09 a.m. UTC
This balances out pci_disable_device() from
ath10k_pci_hif_suspend().

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
---
 drivers/net/wireless/ath/ath10k/pci.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

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