qcacmn: Use msleep instead of mdelay in hif_force_wake_request

When hif_force_wake_request is called from non interrupt context
use msleep to avoid mdelay since it is busy wait function.

Change-Id: Icda50e9d18b64369128a4f669ca1259931e5194a
CRs-Fixed: 2883178
This commit is contained in:
Karthik Kantamneni
2021-02-22 17:31:10 +05:30
committato da snandini
parent 6f28758c51
commit d4119f1507

Vedi File

@@ -713,7 +713,11 @@ int hif_force_wake_request(struct hif_opaque_softc *hif_handle)
HIF_STATS_INC(ipci_scn, mhi_force_wake_request_vote, 1);
while (!pld_is_device_awake(scn->qdf_dev->dev) &&
timeout <= FORCE_WAKE_DELAY_TIMEOUT_MS) {
qdf_mdelay(FORCE_WAKE_DELAY_MS);
if (qdf_in_interrupt())
qdf_mdelay(FORCE_WAKE_DELAY_MS);
else
qdf_sleep(FORCE_WAKE_DELAY_MS);
timeout += FORCE_WAKE_DELAY_MS;
}