bus: ti-sysc: Add quirk handling for reinit on context lost
authorTony Lindgren <tony@atomide.com>
Tue, 21 Sep 2021 09:42:25 +0000 (12:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 08:48:24 +0000 (09:48 +0100)
commitc182fa00fcdd3f191d65b0d7fbe2b0a382e0f412
tree9fbf2c6acb32ca8f735653800e26b35e88e1ec6d
parent1e299b02bae806800c9559a71c559b26b28aed92
bus: ti-sysc: Add quirk handling for reinit on context lost

[ Upstream commit 9d881361206ebcf6285c2ec2ef275aff80875347 ]

Some interconnect target modules such as otg and gpmc on am335x need a
re-init after resume. As we also have PM runtime cases where the context
may be lost, let's handle these all with cpu_pm.

For the am335x resume path, we already have cpu_pm_resume() call
cpu_pm_cluster_exit().

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