gpio: mvebu: Add clk support to prevent lockup
authorAndrew Lunn <andrew@lunn.ch>
Sun, 3 Feb 2013 10:34:26 +0000 (11:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:26:36 +0000 (11:26 -0700)
commitd10d54ce540f6c68acc547442ba629abbd410dd6
tree4723eb833b0cf4cba6e8ba3fed98c46dd572080d
parent728bcbfa3be6770d56ca9a22202b80939940fd83
gpio: mvebu: Add clk support to prevent lockup

commit de88747f514a4e0cca416a8871de2302f4f77790 upstream.

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@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Simon Baatz <gmbnomis@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/kirkwood.dtsi
drivers/gpio/gpio-mvebu.c