]> git.baikalelectronics.ru Git - kernel.git/commit
bus: ti-sysc: Fix gpt12 system timer issue with reserved status
authorTony Lindgren <tony@atomide.com>
Fri, 11 Jun 2021 05:42:50 +0000 (08:42 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 11 Jun 2021 05:42:50 +0000 (08:42 +0300)
commit87b14929b87687f154157acfa6f46a5b25f8191c
tree80f108c7ea4ea23ee8514db7bf145394df0fd915
parentc64d042e9073b99b11fba048e45cf0cea23802ba
bus: ti-sysc: Fix gpt12 system timer issue with reserved status

Jarkko Nikula <jarkko.nikula@bitmer.com> reported that Beagleboard
revision c2 stopped booting. Jarkko bisected the issue down to
commit 36a468c88f3b ("clocksource/drivers/timer-ti-dm: Fix suspend
and resume for am3 and am4").

Let's fix the issue by tagging system timers as reserved rather than
ignoring them. And let's not probe any interconnect target module child
devices for reserved modules.

This allows PM runtime to keep track of clocks and clockdomains for
the interconnect target module, and prevent the system timer from idling
as we already have SYSC_QUIRK_NO_IDLE and SYSC_QUIRK_NO_IDLE_ON_INIT
flags set for system timers.

Fixes: 36a468c88f3b ("clocksource/drivers/timer-ti-dm: Fix suspend and resume for am3 and am4")
Reported-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Tested-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c