clk: at91: pmc: Wait for clocks when resuming
authorRomain Izard <romain.izard.pro@gmail.com>
Mon, 11 Dec 2017 16:55:33 +0000 (17:55 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 22 Dec 2017 00:34:03 +0000 (16:34 -0800)
commit960e1c4d93be86d3b118fe22d4edc69e401b28b5
tree5c6ec5df809fc52f291c93394b8fd899868997ea
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
clk: at91: pmc: Wait for clocks when resuming

Wait for the syncronization of all clocks when resuming, not only the
UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG()
when interrupts are masked, which is the case in here.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/at91/pmc.c