soc: ti: omap-prm: use atomic iopoll instead of sleeping one
authorTero Kristo <t-kristo@ti.com>
Thu, 14 May 2020 07:37:18 +0000 (10:37 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 19 May 2020 18:20:53 +0000 (11:20 -0700)
commit98ece19f247159a51003796ede7112fef2df5d7f
tree6e65d9fb0794dd328ae0b818cd9f3c3bf7b14c93
parentfb6823a6f9801dbe86b6551103f477dd3c5d115a
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: Tero Kristo <t-kristo@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/soc/ti/omap_prm.c