bus: ti-sysc: Make omap3 gpt12 quirk handling SoC specific
authorTony Lindgren <tony@atomide.com>
Tue, 12 Apr 2022 09:26:51 +0000 (12:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:16:19 +0000 (09:16 +0200)
commit25bb9e3ea212f25287fb2943557006161bc864c0
tree39e1fa0efc2b010f3bdff26d9a0612e373e87e08
parentb3401d401635bb2d1590cd79500a595e01c0ddcc
bus: ti-sysc: Make omap3 gpt12 quirk handling SoC specific

[ Upstream commit a12315d6d27093392b6c634e1d35a59f1d1f7a59 ]

On beagleboard revisions A to B4 we need to use gpt12 as the system timer.
However, the quirk handling added for gpt12 caused a regression for system
suspend for am335x as the PM coprocessor needs the timers idled for
suspend.

Let's make the gpt12 quirk specific to omap34xx, other SoCs don't need
it. Beagleboard revisions C and later no longer need to use the gpt12
related quirk. Then at some point, if we decide to drop support for the old
beagleboard revisions A to B4, we can also drop the gpt12 related quirks
completely.

Fixes: 3ff340e24c9d ("bus: ti-sysc: Fix gpt12 system timer issue with reserved status")
Reported-by: Kevin Hilman <khilman@baylibre.com>
Suggested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bus/ti-sysc.c