]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bus: ti-sysc: Fix bogus resetdone warning on enable for cpsw
authorTony Lindgren <tony@atomide.com>
Mon, 26 Oct 2020 08:08:47 +0000 (10:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Dec 2020 07:49:49 +0000 (08:49 +0100)
commit6f87d79ef40dcd43d95bd2db3c600b5bc7680c2d
treed0c9304076e3da3c120db66f21ce6c9db1d5911d
parente8060ddddc9f739dff1c1ae4bae7ef3ac46da9ee
bus: ti-sysc: Fix bogus resetdone warning on enable for cpsw

[ Upstream commit e7ae08d398e094e1305dee823435b1f996d39106 ]

Bail out early from sysc_wait_softreset() just like we do in sysc_reset()
if there's no sysstatus srst_shift to fix a bogus resetdone warning on
enable as suggested by Grygorii Strashko <grygorii.strashko@ti.com>.

We do not currently handle resets for modules that need writing to the
sysstatus register. If we at some point add that, we also need to add
SYSS_QUIRK_RESETDONE_INVERTED flag for cpsw as the sysstatus bit is low
when reset is done as described in the am335x TRM "Table 14-202
SOFT_RESET Register Field Descriptions"

Fixes: d46f9fbec719 ("bus: ti-sysc: Use optional clocks on for enable and wait for softreset bit")
Suggested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bus/ti-sysc.c