linux/drivers/clk/at91
Brian Masney 62fc9ae12e clk: at91: peripheral: fix return value
[ Upstream commit 47b13635da ]

determine_rate() is expected to return an error code, or 0 on success.
clk_sam9x5_peripheral_determine_rate() has a branch that returns the
parent rate on a certain case. This is the behavior of round_rate(),
so let's go ahead and fix this by setting req->rate.

Fixes: b4c115c761 ("clk: at91: clk-peripheral: add support for changeable parent rate")
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-19 16:37:03 +02:00
..
at91rm9200.c clk: at91: clk-system: add support for parent_hw 2023-06-21 10:42:48 +03:00
at91sam9g45.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
at91sam9n12.c clk: at91: clk-system: add support for parent_hw 2023-06-21 10:42:48 +03:00
at91sam9rl.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
at91sam9x5.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
at91sam9260.c clk: at91: clk-system: add support for parent_hw 2023-06-21 10:42:48 +03:00
clk-audio-pll.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-generated.c clk: at91: clk-generated: add support for parent_hw 2023-06-21 10:42:45 +03:00
clk-h32mx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-i2s-mux.c clk: at91: move DT compatibility code to its own file 2018-10-17 10:45:39 -07:00
clk-main.c Merge branches 'clk-qcom' and 'clk-microchip' into clk-next 2023-06-26 16:36:14 -07:00
clk-master.c clk: at91: sama7d65: add sama7d65 pmc driver 2024-12-29 14:17:55 +02:00
clk-peripheral.c clk: at91: peripheral: fix return value 2025-10-19 16:37:03 +02:00
clk-pll.c clk: at91: re-factor clocks suspend/resume 2021-10-26 18:27:41 -07:00
clk-plldiv.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-programmable.c clk: at91: clk-programmable: add support for parent_hw 2023-06-21 10:42:47 +03:00
clk-sam9x60-pll.c clk: at91: sama7d65: add sama7d65 pmc driver 2024-12-29 14:17:55 +02:00
clk-slow.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-smd.c clk: at91: smd: Switch to determine_rate 2023-06-08 18:39:32 -07:00
clk-system.c clk: at91: clk-system: add support for parent_hw 2023-06-21 10:42:48 +03:00
clk-usb.c clk: at91: re-factor clocks suspend/resume 2021-10-26 18:27:41 -07:00
clk-utmi.c clk: at91: remove unnecessary conditions 2023-10-18 17:56:13 -07:00
dt-compat.c clk: at91: Use of_property_count_u32_elems() to get property length 2024-08-02 16:53:00 -07:00
Makefile clk: at91: sama7d65: add sama7d65 pmc driver 2024-12-29 14:17:55 +02:00
pmc.c clk: at91: sama7d65: add sama7d65 pmc driver 2024-12-29 14:17:55 +02:00
pmc.h clk: at91: sama7g5: move mux table macros to header file 2024-08-07 19:16:47 +03:00
sam9x7.c clk: at91: sam9x7: update pll clk ranges 2025-07-18 09:31:33 +03:00
sam9x60.c clk: at91: clk-sam9x60-pll: re-factor to support individual core freq outputs 2024-08-07 19:16:46 +03:00
sama5d2.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
sama5d3.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
sama5d4.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
sama7d65.c clk: at91: sama7d65: add sama7d65 pmc driver 2024-12-29 14:17:55 +02:00
sama7g5.c clk: at91: sama7g5: Allocate only the needed amount of memory for PLLs 2024-08-24 17:44:11 +03:00
sckc.c clk: at91: sckc: Use SCKC_{TD, MD}_SLCK IDs for clk32k clocks 2024-12-08 17:55:26 +02:00