android_kernel_xiaomi_sm8350/drivers/clk/at91
Codrin Ciubotariu d672eee9e4 clk: at91: generated: consider range when calculating best rate
[ Upstream commit d0031e6fbed955ff8d5f5bbc8fe7382482559cec ]

clk_generated_best_diff() helps in finding the parent and the divisor to
compute a rate closest to the required one. However, it doesn't take into
account the request's range for the new rate. Make sure the new rate
is within the required range.

Fixes: 8a8f4bf0c4 ("clk: at91: clk-generated: create function to find best_diff")
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20220413071318.244912-1-codrin.ciubotariu@microchip.com
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-25 09:14:36 +02:00
..
at91sam9rl.c
at91sam9x5.c
at91sam9260.c
clk-audio-pll.c
clk-generated.c clk: at91: generated: consider range when calculating best rate 2022-05-25 09:14:36 +02:00
clk-h32mx.c
clk-i2s-mux.c
clk-main.c
clk-master.c
clk-peripheral.c
clk-pll.c
clk-plldiv.c
clk-programmable.c
clk-sam9x60-pll.c
clk-slow.c
clk-smd.c
clk-system.c
clk-usb.c
clk-utmi.c
dt-compat.c
Makefile
pmc.c clk: at91: check pmc node status before registering syscore ops 2021-11-17 09:48:42 +01:00
pmc.h
sam9x60.c
sama5d2.c
sama5d4.c
sckc.c