Codrin Ciubotariu e46ce5a8ab clk: at91: clk-generated: Limit the requested rate to our range
[ Upstream commit af7651e67b9d5f7e63ea23b118e3672ac662244a ]

On clk_generated_determine_rate(), the requested rate could be outside
of clk's range. Limit the rate to the clock's range to not return an
error.

Fixes: df70aeef6083 ("clk: at91: add generated clock driver")
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20210707131213.3283509-1-codrin.ciubotariu@microchip.com
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-22 12:26:25 +02:00
..
2020-01-12 12:21:34 +01:00
2020-01-12 12:21:34 +01:00
2020-01-12 12:21:34 +01:00
2019-04-25 14:15:53 -07:00
2020-01-12 12:21:34 +01:00
2020-01-12 12:21:34 +01:00
2019-10-28 07:55:01 -07:00