OpenCloudOS-Kernel/drivers/clk/at91
Claudiu Beznea 08d13bcb9c clk: at91: sama7g5: Allocate only the needed amount of memory for PLLs
[ Upstream commit 2d6e9ee7cb3e79b1713783c633b13af9aeffc90c ]

The maximum number of PLL components on SAMA7G5 is 3 (one fractional
part and 2 dividers). Allocate the needed amount of memory for
sama7g5_plls 2d array. Previous code used to allocate 7 array entries for
each PLL. While at it, replace 3 with PLL_COMPID_MAX in the loop which
parses the sama7g5_plls 2d array.

Fixes: cb783bbbcf ("clk: at91: sama7g5: add clock support for sama7g5")
Acked-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240714141315.19480-1-claudiu.beznea@tuxon.dev
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-04 16:29:30 +02:00
..
Makefile clk: at91: do not compile dt-compat.c for sama7g5 and sam9x60 2023-01-09 14:05:41 +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: clk-master: add support for parent_hw 2023-06-21 10:42:45 +03:00
clk-peripheral.c clk: at91: clk-peripheral: add support for parent_hw 2023-06-21 10:42:46 +03: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: clk-sam9x60-pll: add support for parent_hw 2023-06-21 10:42:48 +03: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: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
dt-compat.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
pmc.c clk: at91: pmc: add sama7g5 to the list of available pmcs 2021-10-26 18:27:42 -07:00
pmc.h clk: at91: clk-sam9x60-pll: add support for parent_hw 2023-06-21 10:42:48 +03:00
sam9x60.c clk: at91: clk-sam9x60-pll: add support for parent_hw 2023-06-21 10:42:48 +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
sama7g5.c clk: at91: sama7g5: Allocate only the needed amount of memory for PLLs 2024-10-04 16:29:30 +02:00
sckc.c Merge branches 'clk-qcom' and 'clk-microchip' into clk-next 2023-06-26 16:36:14 -07:00