]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers: sh: late disabling of clocks V2
authorMagnus Damm <damm@opensource.se>
Tue, 21 Jun 2011 07:55:12 +0000 (07:55 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 24 Jun 2011 07:27:07 +0000 (16:27 +0900)
commit794d78fea51504bad3880d14f354a9847f318f25
tree8515152063b174deb5af666f2ade0c4b61fec04f
parentbccaeafd7c117acee36e90d37c7e05c19be9e7bf
drivers: sh: late disabling of clocks V2

This V2 patch changes the clock disabling behavior during boot.
Two different changes are made:

1) Delay disabling of clocks until late in the boot process.
   This fixes an existing issue where in-use clocks without
   software reference are disabled by mistake during boot.
   One example of this is the handling of the Mackerel serial
   console output that shares clock with the I2C controller.

2) Write out the "disabled" state to the hardware for clocks
   that not have been used by the kernel. In other words,
   make sure so far unused clocks actually get turned off.

Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/clk/core.c