|
@@ -4033,8 +4033,10 @@ int hif_force_wake_request(struct hif_opaque_softc *hif_handle)
|
|
else
|
|
else
|
|
timeout = 0;
|
|
timeout = 0;
|
|
|
|
|
|
- if (pld_force_wake_request_sync(scn->qdf_dev->dev, timeout)) {
|
|
|
|
- hif_err("force wake request send failed");
|
|
|
|
|
|
+ ret = pld_force_wake_request_sync(scn->qdf_dev->dev, timeout);
|
|
|
|
+ if (ret) {
|
|
|
|
+ hif_err("force wake request(timeout %u) send failed: %d",
|
|
|
|
+ timeout, ret);
|
|
HIF_STATS_INC(pci_scn, mhi_force_wake_failure, 1);
|
|
HIF_STATS_INC(pci_scn, mhi_force_wake_failure, 1);
|
|
status = -EINVAL;
|
|
status = -EINVAL;
|
|
goto release_rtpm_ref;
|
|
goto release_rtpm_ref;
|
|
@@ -4127,6 +4129,7 @@ int hif_force_wake_request(struct hif_opaque_softc *hif_handle)
|
|
struct hif_softc *scn = (struct hif_softc *)hif_handle;
|
|
struct hif_softc *scn = (struct hif_softc *)hif_handle;
|
|
struct hif_pci_softc *pci_scn = HIF_GET_PCI_SOFTC(scn);
|
|
struct hif_pci_softc *pci_scn = HIF_GET_PCI_SOFTC(scn);
|
|
uint32_t timeout;
|
|
uint32_t timeout;
|
|
|
|
+ int ret;
|
|
|
|
|
|
HIF_STATS_INC(pci_scn, mhi_force_wake_request_vote, 1);
|
|
HIF_STATS_INC(pci_scn, mhi_force_wake_request_vote, 1);
|
|
|
|
|
|
@@ -4135,8 +4138,10 @@ int hif_force_wake_request(struct hif_opaque_softc *hif_handle)
|
|
else
|
|
else
|
|
timeout = 0;
|
|
timeout = 0;
|
|
|
|
|
|
- if (pld_force_wake_request_sync(scn->qdf_dev->dev, timeout)) {
|
|
|
|
- hif_err("force wake request send failed");
|
|
|
|
|
|
+ ret = pld_force_wake_request_sync(scn->qdf_dev->dev, timeout);
|
|
|
|
+ if (ret) {
|
|
|
|
+ hif_err("force wake request(timeout %u) send failed: %d",
|
|
|
|
+ timeout, ret);
|
|
HIF_STATS_INC(pci_scn, mhi_force_wake_failure, 1);
|
|
HIF_STATS_INC(pci_scn, mhi_force_wake_failure, 1);
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|