linux/drivers/clk/shmobile
Geert Uytterhoeven 7980a86190 clk: shmobile: div6: Avoid changing divisor in .disable()
While DIV6 clocks require the divisor field to be non-zero when stopping
the clock, some clocks (e.g. ZB on sh73a0) fail to be re-enabled later
if the divisor field is changed when stopping the clock.
The reason for this is unknown.

To fix this, do not touch the divisor field if it's already non-zero.

On kzm9g, the smsc911x Ethernet controller is connected to the sh73a0
Bus State Controller, which is clocked by the ZB clock. Without this
fix, if the ZB clock is disabled during system suspend, and re-enabled
during resume, the kernel locks up when the smsc911x driver tries to
access the Ethernet registers.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2015-01-08 16:13:19 +01:00
..
clk-div6.c clk: shmobile: div6: Avoid changing divisor in .disable() 2015-01-08 16:13:19 +01:00
clk-emev2.c clk: emev2: Add support for emev2 SMU clocks with DT 2013-12-14 13:17:55 +09:00
clk-mstp.c clk: shmobile: mstp: Fix the is_enabled() operation 2014-05-22 19:03:03 -07:00
clk-r8a7740.c clk: shmobile: Add R8A7740-specific clock support 2014-05-23 13:38:25 -07:00
clk-r8a7779.c clk: shmobile: r8a7779: Add clocks support 2014-05-12 23:07:40 -07:00
clk-rcar-gen2.c clk: shmobile: add missing 0x0100 for SDCKCR 2014-09-02 15:03:16 -07:00
clk-rz.c clk: shmobile: add CPG driver for rz-platforms 2014-03-20 18:22:36 -07:00
Makefile Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2014-10-14 09:22:26 +02:00