clk: at91: pmc: Save SCSR during suspend
authorRomain Izard <romain.izard.pro@gmail.com>
Mon, 11 Dec 2017 16:55:34 +0000 (17:55 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 22 Dec 2017 00:34:05 +0000 (16:34 -0800)
commit3c6fad2593d75a1674c5c2b19c78552c48ef46b5
tree0d77dae829a9f26fbffd9a895a43364ccd402730
parent960e1c4d93be86d3b118fe22d4edc69e401b28b5
clk: at91: pmc: Save SCSR during suspend

The contents of the System Clock Status Register (SCSR) needs to be
restored into the System Clock Enable Register (SCER).

As the bootloader will restore some clocks by itself, the issue can be
missed as only the USB controller, the LCD controller, the Image Sensor
controller and the programmable clocks will be impacted.

Fix the obvious typo in the suspend/resume code, as the IMR register
does not need to be saved twice.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.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