[PATCH] clk: aspeed: Treat a gate in reset as disabled
Stephen Boyd
sboyd at kernel.org
Sat Jul 7 03:53:33 AEST 2018
Quoting Benjamin Herrenschmidt (2018-07-03 00:24:47)
> On some systems, we come out of the bootloader with some
> gates set with the clock "enabled" but the reset also
> asserted.
>
> Since 8a53fc511c5e "clk: aspeed: Prevent reset if clock is enabled"
> we check that enabled bit in aspeed_clk_enabled(), and do
> nothing if already set.
>
> This breaks when the above scenario occurs, as the clock
> is enabled, but the reset still needs to be lifted.
>
> This patch fixes it by also checking the reset bit (if any)
> and treating a gate in "reset" as being disabled.
>
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Fixes: 8a53fc511c5e "clk: aspeed: Prevent reset if clock is enabled"
> CC: Eddie James <eajames at linux.vnet.ibm.com>
> ---
Applied to clk-fixes
More information about the Linux-aspeed
mailing list