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

Commit bd16ec91 authored by Deepak Katragadda's avatar Deepak Katragadda Committed by Gerrit - the friendly Code Review server
Browse files

msm: pil: Replace disable_irq_nosync with disable_irq wherever required



Limit usage of disable_irq_nosync by using it only in interrupt
handler functions. Otherwise, use disable_irq. This could help
remove any race conditions which might occur due to _nosync.

Change-Id: Ie783830963fcb800bc50f74b0c29314fd9fa526a
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 2fba68d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -350,7 +350,7 @@ static int wcnss_shutdown(const struct subsys_desc *subsys, bool force_stop)
{
	struct pronto_data *drv = subsys_to_drv(subsys);

	disable_irq_nosync(drv->subsys_desc.wdog_bite_irq);
	disable_irq(drv->subsys_desc.wdog_bite_irq);
	pil_shutdown(&drv->desc);
	return 0;
}
+1 −1
Original line number Diff line number Diff line
@@ -338,7 +338,7 @@ static int adsp_shutdown(const struct subsys_desc *subsys, bool force_stop)
		mb();
	}
	pil_shutdown(&drv->q6->desc);
	disable_irq_nosync(drv->subsys_desc.wdog_bite_irq);
	disable_irq(drv->subsys_desc.wdog_bite_irq);

	pr_debug("ADSP is Down\n");
	adsp_set_state("OFFLINE");