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

Skip to content
Commit 389d1d3f authored by Jun Li's avatar Jun Li
Browse files

mmc: Change locking for clk scaling from bh to irqsave



Commit 3e825f9bed299
("mmc: clk-scaling: change locking from irq_save to bh") from msm-3.18
changes the spinlock used by clock scaling logic to use the bh flavor
instead of irqsave in order to avoid the unnecessary irq disable.
Unlike the previous kernel versions, in current mmc driver, tasklet is
removed and mmc_clk_scaling_stop_busy can be invoked from IRQ context.
So, change bh back to irqsave to avoid dead lock.

Change-Id: I5c3674273e81bc89dcffd7dd6a6a4170a58bd6bd
Signed-off-by: default avatarJun Li <liju@codeaurora.org>
parent 0ea391ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment