Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b0eee9c authored by Karthik Kantamneni's avatar Karthik Kantamneni Committed by Gerrit - the friendly Code Review server
Browse files

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
parent 40d81729
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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) {
		if (qdf_in_interrupt())
			qdf_mdelay(FORCE_WAKE_DELAY_MS);
		else
			qdf_sleep(FORCE_WAKE_DELAY_MS);

		timeout += FORCE_WAKE_DELAY_MS;
	}