linux/drivers/clk/meson
Jerome Brunet cd0e4789f8 clk: amlogic: g12a: fix mmc A peripheral clock
[ Upstream commit 0079e77c08 ]

The bit index of the peripheral clock for mmc A is wrong
This was probably not a problem for mmc A as the peripheral is likely left
enabled by the bootloader.

No issues has been reported so far but it could be a problem, most likely
some form of conflict between the ethernet and mmc A clock, breaking
ethernet on init.

Use the value provided by the documentation for mmc A before this
becomes an actual problem.

Fixes: 085a4ea93d ("clk: meson: g12a: add peripheral clock controller")
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20241213-amlogic-clk-g12a-mmca-fix-v1-1-5af421f58b64@baylibre.com
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-04-10 14:39:20 +02:00
..
a1-peripherals.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
a1-peripherals.h clk: meson: a1: move bindings include to main driver 2023-08-08 16:06:17 +02:00
a1-pll.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
a1-pll.h clk: meson: a1: move bindings include to main driver 2023-08-08 16:06:17 +02:00
axg-aoclk.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
axg-audio.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
axg-audio.h clk: meson: axg-audio: add sm1 earcrx clocks 2024-07-29 16:47:00 +02:00
axg.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
axg.h clk: meson: eeclk: move bindings include to main driver 2023-08-08 16:06:17 +02:00
c3-peripherals.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
c3-pll.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
clk-cpu-dyndiv.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
clk-cpu-dyndiv.h clk: meson: add g12a cpu dynamic divider driver 2019-08-09 12:10:03 +02:00
clk-dualdiv.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
clk-dualdiv.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00
clk-mpll.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
clk-mpll.h clk: meson: mpll: add init callback and regs 2019-05-20 12:19:29 +02:00
clk-phase.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
clk-phase.h clk: meson: add sclk-ws driver 2020-08-17 15:58:02 +02:00
clk-pll.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
clk-pll.h clk: meson: add 'NOINIT_ENABLED' flag to eliminate init for enabled PLL 2024-06-10 12:16:01 +02:00
clk-regmap.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
clk-regmap.h clk: define to_clk_regmap() as inline function 2020-10-28 16:34:44 -07:00
g12a-aoclk.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
g12a.c clk: amlogic: g12a: fix mmc A peripheral clock 2025-04-10 14:39:20 +02:00
g12a.h clk: meson: g12a: add MIPI ISP clocks 2023-11-24 18:08:48 +01:00
gxbb-aoclk.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
gxbb.c clk: amlogic: gxbb: drop non existing 32k clock parent 2025-04-10 14:39:20 +02:00
gxbb.h clk: meson: eeclk: move bindings include to main driver 2023-08-08 16:06:17 +02:00
Kconfig clk: meson: c3: add c3 clock peripherals controller driver 2024-06-04 10:38:32 +02:00
Makefile clk: meson: c3: add c3 clock peripherals controller driver 2024-06-04 10:38:32 +02:00
meson-aoclk.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
meson-aoclk.h clk: meson: migrate meson-aoclk out of hw_onecell_data to drop NR_CLKS 2023-08-08 16:06:16 +02:00
meson-clkc-utils.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
meson-clkc-utils.h clk: meson: introduce meson-clkc-utils 2023-08-08 16:06:16 +02:00
meson-eeclk.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
meson-eeclk.h clk: meson: migrate meson-eeclk out of hw_onecell_data to drop NR_CLKS 2023-08-08 16:06:16 +02:00
meson8-ddr.c clk: meson: add a driver for the Meson8/8b/8m2 DDR clock controller 2019-12-11 14:06:29 +01:00
meson8b.c clk: meson: meson8b: move bindings include to main driver 2023-08-08 16:06:17 +02:00
meson8b.h clk: meson: meson8b: move bindings include to main driver 2023-08-08 16:06:17 +02:00
parm.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00
s4-peripherals.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
s4-peripherals.h clk: meson: S4: add support for Amlogic S4 SoC peripheral clock controller 2023-09-27 11:01:03 +02:00
s4-pll.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
s4-pll.h clk: meson: S4: add support for Amlogic S4 SoC PLL clock driver 2023-09-27 10:54:24 +02:00
sclk-div.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
sclk-div.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00
vclk.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
vclk.h clk: meson: add vclk driver 2024-04-10 09:46:21 +02:00
vid-pll-div.c clk: meson: introduce symbol namespace for amlogic clocks 2024-07-29 16:47:33 +02:00
vid-pll-div.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00