]> asedeno.scripts.mit.edu Git - linux.git/commit
bus: ti-sysc: avoid toggling power state of module during probe
authorTero Kristo <t-kristo@ti.com>
Mon, 7 Oct 2019 12:29:31 +0000 (15:29 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 8 Oct 2019 14:08:59 +0000 (07:08 -0700)
commitcdc56c112932a058f86e6ed9e2cd696ffafac8c2
tree4062bfb66dafffb1f9e5311c11e3f4eeae903e06
parentdf4f3459c7e2d2c573e38757c2d2e7b57cb49717
bus: ti-sysc: avoid toggling power state of module during probe

Current implementation for ti-sysc powers down the module once module
init is complete. However, right after power is disabled, it is enabled
via runtime PM. This is unnecessary so avoid it by re-ordering the
events a bit; move powering down of the module post runtime PM enable
which makes sure the use counts are maintained properly and there is
no extra power down/up sequence for the module.

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