[PATCH] ARM: Kirkwood: Fix crash when neither NAND nor SPI

Simon Baatz simon2012 at baatz.info
Sun Jun 10 14:09:34 EDT 2012


Hi Andrew,

Am 08.06.2012 16:09, schrieb Andrew Lunn:
> Both NAND and SPI make use of the RUNIT clk. However, if neither NAND
> nor SPI is used in the system, RUNIT clock gets turned off, and the
> SoC hard locks. It appears something else in the SoC, which is not
> documented, is also using RUNIT. So prepare and enable RUNIT clock in
> kirkwood_clk_init().
>
> +
> +	/* Something other than SPI and NAND needs runit, so make sure
> +	   it never gets turned off. */
> +	clk_prepare_enable(runit);
>

I am experiencing another type of crash caused by the GE0 clock (on a
IB-NAS 6210). I am compiling mv643xx_eth as a module. Thus, GE0 and GE1
get turned off first since they are unused.

When the module loads and it should enable GE0, the box hangs. I haven't
had time to find out why; my guess would be that the clock might already
be needed somewhere in mv643xx_eth_shared_probe(). The box boots again
after I add

clk_prepare_enable(ge0);

to the code above as a quick hack.

- Simon




More information about the linux-arm-kernel mailing list