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>
Fri, 26 Nov 2021 09:39:08 +0000 (10:39 +0100)
commit5eca1c8412f40dd798c28549cd4c032217ad2faf
tree87a9352c9295872de71eeb5f29b6d65800ddef8a
parentdcd6eefceeb0e464237d27340053c6f2f15217b5
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