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)
committerMichael Turquette <mturquette@linaro.org>
Mon, 13 Apr 2015 04:08:51 +0000 (21:08 -0700)
commit4591243102faa8de92da320edea47219901461e9
tree896a83de022e746750b31953b2fef4b78fffa537
parent3a9e9cb65be84d6c64fbe9c69a73c15d59f29454
clk: at91: usb: propagate rate modification to the parent clk

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>
drivers/clk/at91/clk-usb.c