]> git.ipfire.org Git - people/arne_f/kernel.git/commit
bus: ti-sysc: Fix reset status check for modules with quirks
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:51:52 +0000 (08:51 +0100)
commite79c3d983c3e81474c0a718908224e60749d5c42
treed3e310c2b7dbf4a5fcef66f24706e509e385f2a9
parent9b1f3abe41cff596959702e9648cd6f3372d6a22
bus: ti-sysc: Fix reset status check for modules with quirks

[ Upstream commit e275d2109cdaea8b4554b9eb8a828bdb8f8ba068 ]

Commit d46f9fbec719 ("bus: ti-sysc: Use optional clocks on for enable and
wait for softreset bit") started showing a "OCP softreset timed out"
warning on enable if the interconnect target module is not out of reset.
This caused the warning to be often triggered for i2c and hdq while the
devices are working properly.

Turns out that some interconnect target modules seem to have an unusable
reset status bits unless the module specific reset quirks are activated.

Let's just skip the reset status check for those modules as we only want
to activate the reset quirks when doing a reset, and not on enable. This
way we don't see the bogus "OCP softreset timed out" warnings during boot.

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