soc: ti: omap-prm: Do not check rstst bit on deassert if already deasserted
authorTony Lindgren <tony@atomide.com>
Mon, 16 Nov 2020 10:57:13 +0000 (12:57 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 13 Nov 2020 07:59:01 +0000 (09:59 +0200)
commitc1995e5afaf6abf3922b5395ad1f4096951e3276
tree0694119b67eda848d7e45a378f6864097519301e
parente7ae08d398e094e1305dee823435b1f996d39106
soc: ti: omap-prm: Do not check rstst bit on deassert if already deasserted

If a rstctrl reset bit is already deasserted, we can just bail out early
not wait for rstst to clear. Otherwise we can have deassert fail for
already deasserted resets.

Fixes: c5117a78dd88 ("soc: ti: omap-prm: poll for reset complete during de-assert")
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/soc/ti/omap_prm.c