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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:01:52 +0000 (22:01 +0200)
commitc67881fc890916206e723329e774391c6ed354ce
treea35136ff34dd37043b3d1339841ff5d6c3acdc86
parentd7f24470bf614ff986c9370f5704fa635b448918
clk: at91: usb: propagate rate modification to the parent clk

commit 4591243102faa8de92da320edea47219901461e9 upstream.

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.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/at91/clk-usb.c