This balances out pci_disable_device() from
ath10k_pci_hif_suspend().

Signed-off-by: Michal Kazior <[email protected]>
---
 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


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

Reply via email to