OSDN Git Service

ath10k: add the PCI PM core suspend/resume ops
authorRyan Hsu <ryanhsu@qti.qualcomm.com>
Thu, 31 Aug 2017 12:36:14 +0000 (15:36 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 31 Aug 2017 18:16:56 +0000 (21:16 +0300)
commit32faa3f0ee509176aeac0009e3ee93f9b15f07a5
treedc61ef04463dd88a0380ace111088a31ab413a11
parent69fecf599f48e258984b2ffdf0a4c65a35a31287
ath10k: add the PCI PM core suspend/resume ops

The actual PCI suspend/resume in ath10k has been handled in wow.c,
but in the case of the device doesn't support remote wakeup,
the .hif_suspend() and .hif_resume() will never be handled.

  ath10k_wow_op_suspend()
  {
if (WARN_ON(!test_bit(ATH10K_FW_FEATURE_WOWLAN_SUPPORT,
    ar->running_fw->fw_file.fw_features))) {
ret = 1;
goto exit;
}

....

ret = ath10k_hif_suspend(ar);
  }

So register the PCI PM core to support the suspend/resume if the device
doesn't support remote wakeup.

Signed-off-by: Ryan Hsu <ryanhsu@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c