]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: sunxi-ng: a100: enable MMC clock reparenting
authorCody Eksal <masterr3c0rd@epochal.quest>
Sat, 9 Nov 2024 00:37:37 +0000 (20:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:25 +0000 (12:50 +0100)
commit45d563356db645f33ff94f4a76d5e62b076bcbe4
tree1b03cf3d31f02a670b4e1785986c9ac028e9b575
parentf26831839566613ad1e359a1b9550122c93d81bd
clk: sunxi-ng: a100: enable MMC clock reparenting

commit 16414720045de30945b8d14b7907e0cbf81a4b49 upstream.

While testing the MMC nodes proposed in [1], it was noted that mmc0/1
would fail to initialize, with "mmc: fatal err update clk timeout" in
the kernel logs. A closer look at the clock definitions showed that the MMC
MPs had the "CLK_SET_RATE_NO_REPARENT" flag set. No reason was given for
adding this flag in the first place, and its original purpose is unknown,
but it doesn't seem to make sense and results in severe limitations to MMC
speeds. Thus, remove this flag from the 3 MMC MPs.

[1] https://msgid.link/20241024170540.2721307-10-masterr3c0rd@epochal.quest

Fixes: fb038ce4db55 ("clk: sunxi-ng: add support for the Allwinner A100 CCU")
Cc: stable@vger.kernel.org
Signed-off-by: Cody Eksal <masterr3c0rd@epochal.quest>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://patch.msgid.link/20241109003739.3440904-1-masterr3c0rd@epochal.quest
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/sunxi-ng/ccu-sun50i-a100.c