MLK-17033: ath10k: fix suspend/resume fail issue
authorGao Pan <pandy.gao@nxp.com>
Fri, 1 Dec 2017 05:17:07 +0000 (13:17 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:49:51 +0000 (14:49 -0500)
qca6174 wifi driver causes system hang during suspend/resume stress test.
This patch fix this suspend/resume fail issue.

Signed-off-by: Andy Duan <fugang.duan@nxp.com>
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-picked from 72fbaf4aa36e7407108d1c0b7d857287f84bee3d)

drivers/net/wireless/ath/ath10k/pci.c

index 25b8d50..6150b37 100644 (file)
@@ -1782,6 +1782,8 @@ static void ath10k_pci_hif_stop(struct ath10k *ar)
        ath10k_pci_irq_disable(ar);
        ath10k_pci_irq_sync(ar);
        ath10k_pci_flush(ar);
+       ath10k_pci_sleep_sync(ar);
+
        napi_synchronize(&ar->napi);
        napi_disable(&ar->napi);