Commit 98ece19f authored by Tero Kristo's avatar Tero Kristo Committed by Tony Lindgren

soc: ti: omap-prm: use atomic iopoll instead of sleeping one

The reset handling APIs for omap-prm can be invoked PM runtime which
runs in atomic context. For this to work properly, switch to atomic
iopoll version instead of the current which can sleep. Otherwise,
this throws a "BUG: scheduling while atomic" warning. Issue is seen
rather easily when CONFIG_PREEMPT is enabled.
Signed-off-by: default avatarTero Kristo <t-kristo@ti.com>
Acked-by: default avatarSantosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent fb6823a6
...@@ -256,7 +256,7 @@ static int omap_reset_deassert(struct reset_controller_dev *rcdev, ...@@ -256,7 +256,7 @@ static int omap_reset_deassert(struct reset_controller_dev *rcdev,
goto exit; goto exit;
/* wait for the status to be set */ /* wait for the status to be set */
ret = readl_relaxed_poll_timeout(reset->prm->base + ret = readl_relaxed_poll_timeout_atomic(reset->prm->base +
reset->prm->data->rstst, reset->prm->data->rstst,
v, v & BIT(st_bit), 1, v, v & BIT(st_bit), 1,
OMAP_RESET_MAX_WAIT); OMAP_RESET_MAX_WAIT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment