aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorRajan Vaja <[email protected]>2019-12-04 22:35:58 -0800
committerStephen Boyd <[email protected]>2020-01-23 13:25:37 -0800
commit4ebd92d2e228ceb33bafa273fd9cb2b16615cdd4 (patch)
tree5f326342b3ded35c7dda9c30118641219c157eeb /drivers/usb/cdns3/cdns3-imx.c
parente942171bbb762977afaa1eb24a312c3bd56386a5 (diff)
clk: zynqmp: Fix divider calculation
zynqmp_clk_divider_round_rate() returns actual divider value after calculating from parent rate and desired rate, even though that rate is not supported by single divider of hardware. It is also possible that such divisor value can be achieved through 2 different dividers. As, Linux tries to set such divisor value(out of range) in single divider set divider is getting failed. Fix the same by computing best possible combination of two divisors which provides more accurate clock rate. Signed-off-by: Michal Simek <[email protected]> Signed-off-by: Tejas Patel <[email protected]> Signed-off-by: Rajan Vaja <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions