linux/drivers/clk/samsung
Marek Szyprowski aacb99de10 clk: samsung: Revert "clk: Use device_get_match_data()"
device_get_match_data() function should not be used on the device other
than the one matched to the given driver, because it always returns the
match_data of the matched driver. In case of exynos-clkout driver, the
original code matches the OF IDs on the PARENT device, so replacing it
with of_device_get_match_data() broke the driver.

This has been already pointed once in commit 2bc5febd05 ("clk: samsung:
Revert "clk: samsung: exynos-clkout: Use of_device_get_match_data()"").
To avoid further confusion, add a comment about this special case, which
requires direct of_match_device() call to pass custom IDs array.

This partially reverts commit 409c39ec92.

Cc: <stable@vger.kernel.org>
Fixes: 409c39ec92 ("clk: Use device_get_match_data()")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20240425075628.838497-1-m.szyprowski@samsung.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240430184656.357805-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2024-04-30 14:24:27 -07:00
..
clk-cpu.c clk: samsung: Add CPU clock support for Exynos850 2024-02-25 17:07:34 +01:00
clk-cpu.h clk: samsung: Add CPU clock support for Exynos850 2024-02-25 17:07:34 +01:00
clk-exynos4.c clk: samsung: Pass register layout type explicitly to CLK_CPU() 2024-02-25 16:58:03 +01:00
clk-exynos5-subcmu.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
clk-exynos5-subcmu.h clk: samsung: Change signature of exynos5_subcmus_init() function 2019-08-08 13:53:42 -07:00
clk-exynos7.c clk: exynos7: Mark aclk_fsys1_200 as critical 2021-04-07 11:37:17 +02:00
clk-exynos850.c clk: samsung: exynos850: Propagate SPI IPCLK rate change 2024-02-01 11:24:09 +01:00
clk-exynos3250.c clk: samsung: Pass register layout type explicitly to CLK_CPU() 2024-02-25 16:58:03 +01:00
clk-exynos4412-isp.c clk: samsung: exynos4: do not define number of clocks in bindings 2023-08-15 07:48:51 +02:00
clk-exynos5250.c clk: samsung: Pass register layout type explicitly to CLK_CPU() 2024-02-25 16:58:03 +01:00
clk-exynos5260.c clk: samsung: exynos5260: do not define number of clocks in bindings 2023-08-15 07:49:12 +02:00
clk-exynos5260.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-exynos5410.c clk: samsung: exynos5410: do not define number of clocks in bindings 2023-08-15 07:49:19 +02:00
clk-exynos5420.c clk: samsung: Pass register layout type explicitly to CLK_CPU() 2024-02-25 16:58:03 +01:00
clk-exynos5433.c clk: samsung: Pass register layout type explicitly to CLK_CPU() 2024-02-25 16:58:03 +01:00
clk-exynos7885.c Merge branches 'clk-imx', 'clk-samsung', 'clk-annotate', 'clk-marvell' and 'clk-lmk' into clk-next 2023-08-30 14:39:19 -07:00
clk-exynos-arm64.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
clk-exynos-arm64.h clk: samsung: exynos5433: Extract PM support to common ARM64 layer 2023-03-07 08:38:54 +01:00
clk-exynos-audss.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
clk-exynos-clkout.c clk: samsung: Revert "clk: Use device_get_match_data()" 2024-04-30 14:24:27 -07:00
clk-exynosautov9.c Merge branches 'clk-imx', 'clk-samsung', 'clk-annotate', 'clk-marvell' and 'clk-lmk' into clk-next 2023-08-30 14:39:19 -07:00
clk-fsd.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
clk-gs101.c clk: samsung: gs101: add support for cmu_peric1 2024-02-07 16:33:16 +01:00
clk-pll.c clk: samsung: clk-pll: Add support for pll_{0516,0517,518} 2023-12-12 20:28:12 +01:00
clk-pll.h clk: samsung: clk-pll: Add support for pll_{0516,0517,518} 2023-12-12 20:28:12 +01:00
clk-s3c64xx.c clk: samsung: Set dev in samsung_clk_init() 2023-03-06 16:55:26 +01:00
clk-s5pv210-audss.c clk: samsung: s5pv210-audss: Make use of devm_platform_ioremap_resource() 2021-09-13 18:01:09 +02:00
clk-s5pv210.c clk: samsung: Set dev in samsung_clk_init() 2023-03-06 16:55:26 +01:00
clk.c clk: samsung: Extract clocks registration to common function 2023-03-07 08:38:54 +01:00
clk.h clk: samsung: Pass register layout type explicitly to CLK_CPU() 2024-02-25 16:58:03 +01:00
Kconfig clk: samsung: add CONFIG_OF dependency 2023-06-12 11:45:20 +02:00
Makefile clk: samsung: clk-gs101: Add cmu_top, cmu_misc and cmu_apm support 2023-12-12 20:29:03 +01:00