]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: amlogic: g12a: fix mmc A peripheral clock
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 13 Dec 2024 10:03:23 +0000 (11:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:32:00 +0000 (14:32 +0200)
commit93c6fb0d18ad6818e919bbc5c9a3203408fe6054
tree36a85ec53c4911f2f17ab4204f3e2ad850323f4e
parentf95e0f36e592e17a24ba4f56c355946448f84291
clk: amlogic: g12a: fix mmc A peripheral clock

[ Upstream commit 0079e77c08de692cb20b38e408365c830a44b1ef ]

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: 085a4ea93d54 ("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>
drivers/clk/meson/g12a.c