]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mvebu: Add clk support to prevent lockup
authorAndrew Lunn <andrew@lunn.ch>
Sun, 3 Feb 2013 10:34:26 +0000 (11:34 +0100)
committerJason Cooper <jason@lakedaemon.net>
Fri, 8 Mar 2013 21:34:34 +0000 (21:34 +0000)
commitdb48868736b7ae7163169a4df1edaf073dc62d47
treea0a44be0a4ca5f16784bed1ee835b9ec85ddda5a
parentc00f6204993b0c0142108a1168368a47c008c9fe
gpio: mvebu: Add clk support to prevent lockup

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/kirkwood.dtsi
drivers/gpio/gpio-mvebu.c