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

Commit f0ba8b55 authored by Ram Chandrasekar's avatar Ram Chandrasekar Committed by Matt Wagantall
Browse files

power: bcl_peripheral: Update the interrupt disable



Update the interrupt disable to be done as nosync.
This is to avoid any deadlock condition from a race
condition between the disable API and the interrupt
service routine.

CRs-Fixed: 821875
Change-Id: I45e4cd4607186cb6655cd24dfd36618a8f544739
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent 2befbe2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ static int bcl_access_monitor_enable(bool enable)
					? "Voltage Monitor to Inactive"
					: "Current Monitor to Inactive",
					0);
				disable_irq(perph_data->irq_num);
				disable_irq_nosync(perph_data->irq_num);
				/* Fall through to clear the poll work */
			case BCL_PARAM_INACTIVE:
			case BCL_PARAM_POLLING: