[PATCH v2] gpio: mvebu: Add clk support to prevent lockup

Simon Baatz gmbnomis at gmail.com
Sun Feb 3 14:48:26 EST 2013


On Sun, Feb 03, 2013 at 11:34:26AM +0100, Andrew Lunn wrote:
> The kirkwood SoC GPIO cores use the runit clock. Add code to
> clk_prepare_enable() runit, otherwise there is a danger of locking up
> the SoC by accessing the GPIO registers when runit clock is not
> ticking.
> 
> Reported-by: Simon Baatz <gmbnomis at gmail.com>
> Signed-off-by: Andrew Lunn <andrew at lunn.ch>

Tested-by: Simon Baatz <gmbnomis at gmail.com>

After boot (GPIO is the only driver enabling runit at this point in
time):

# cat /sys/kernel/debug/clk/tclk/runit/clk_enable_count
2


- Simon



More information about the linux-arm-kernel mailing list