clk: at91: keep slow clk enabled to prevent system hang
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 13 Jan 2015 14:44:06 +0000 (15:44 +0100)
committerMichael Turquette <mturquette@linaro.org>
Tue, 13 Jan 2015 18:54:01 +0000 (10:54 -0800)
commitdca1a4b5ff6e2c25adeff366eb06270dadeab3db
treefd13bbae56ec37b25b968ed7f49b2002cd7f72ae
parent98f87a7ba278e6b9064b8022728c9c14ed467ebe
clk: at91: keep slow clk enabled to prevent system hang

All slow clk users are not properly claiming it (get + prepare + enable)
before using it.
If all users properly claiming this clock release it, the clock is
disabled, but faulty users still depends on it, and the system hangs.

This fix prevents the slow clock from being disabled, and should solve the
hanging issue, but offending drivers should be patched to properly claim
this clock.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Bo Shen <voice.shen@atmel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/at91/clk-slow.c