OSDN Git Service

bus: ti-sysc: Enable all clocks directly during init to read revision
authorTony Lindgren <tony@atomide.com>
Thu, 21 Mar 2019 18:00:21 +0000 (11:00 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 3 Apr 2019 16:32:34 +0000 (09:32 -0700)
commit1a5cd7c23cc52445fcc4e82beb343ba43103ecdc
treedbbb78faf7e5fe19e48dde49053610b12fe30067
parentd878970f6ce127a0b5288e1ef20fbbbff7676792
bus: ti-sysc: Enable all clocks directly during init to read revision

The first thing we want to do is just read the module revision register to
be able to configure the module specific quirks and configure the module
registers.

As the interconnect target module may not yet be properly configured and
may need a reset first, we don't want to use pm_runtime_get() at this
point.

To read the revision register, let's just enable the all the clocks for
the interconnect target module during init even if the optional clocks
are not needed. That way we can read the revision register to configure
the quirks needed for PM runtime.

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