bus: ti-sysc: re-order reset and main clock controls
authorTero Kristo <t-kristo@ti.com>
Mon, 7 Oct 2019 12:29:29 +0000 (15:29 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 8 Oct 2019 14:08:46 +0000 (07:08 -0700)
commitbf59ebbeac1fdd7d398d5f808f2cf239c8e61947
tree567b1aa4ea8dd292f197bc4260bd25090d38b3b7
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
bus: ti-sysc: re-order reset and main clock controls

The main clocks and reset controls have a hardware level dependency,
where one can't transition state without the other one transitioning.
Because we don't have the dependency implemented in software, we must
ensure the ordering of these two is done properly; they way this is
handled is that clocks transition on software level without delay,
and the status is only polled on reset side. Because of this, we must
re-order the main clock and reset handling on the ti-sysc driver.

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