]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: at91: usb: propagate rate modification to the parent clk
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Sun, 29 Mar 2015 01:45:33 +0000 (03:45 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:12:03 +0000 (19:12 -0400)
commitae74ea64ccdb8b99ee2618b58020263d5b1d9b22
tree29b8263216eac8300545105e12036c671becc12c
parente04bccabf7fb9c1315bf8932558f58288a5e84d9
clk: at91: usb: propagate rate modification to the parent clk

[ Upstream commit 4591243102faa8de92da320edea47219901461e9 ]

The at91sam9n12 and at91sam9x5 usb clocks do not propagate rate
modification requests to their parents.
This causes a bug when the PLLB is left uninitialized by the bootloader
(PLL multiplier set to 0, or in other words, PLL rate = 0 Hz).

Implement the determinate_rate method and propagate the change rate
request to the parent clk.

Cc: <stable@vger.kernel.org> # v3.14+
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Bo Shen <voice.shen@atmel.com>
Tested-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/clk/at91/clk-usb.c