bus: ti-sysc: Check for lost context in sysc_reinit_module()
authorTony Lindgren <tony@atomide.com>
Tue, 21 Sep 2021 09:42:25 +0000 (12:42 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 21 Sep 2021 09:42:26 +0000 (12:42 +0300)
commit95ec14faac6a44bd233c54666722ef75b2276512
treef071f606de9a263e8fe5c44e3848a9c5ef7234e4
parentb3e9431854e8f305385d5de225441c0477b936cb
bus: ti-sysc: Check for lost context in sysc_reinit_module()

There is no need to restore context if it was not lost. Let's add a new
function sysc_check_context() to check for lost context. To make use of it,
we need to save the sysconfig register status on enable and disable.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c