Commit c4bfea4b authored by Andre Przywara's avatar Andre Przywara Committed by Greg Kroah-Hartman
Browse files

clk: sunxi-ng: d1: Add missing divider for MMC mod clocks



[ Upstream commit 98e6da67 ]

The D1/R528/T113 SoCs have a hidden divider of 2 in the MMC mod clocks,
just as other recent SoCs. So far we did not describe that, which led
to the resulting MMC clock rate to be only half of its intended value.

Use a macro that allows to describe a fixed post-divider, to compensate
for that divisor.

This brings the MMC performance on those SoCs to its expected level,
so about 23 MB/s for SD cards, instead of the 11 MB/s measured so far.

Fixes: 35b97bb9 ("clk: sunxi-ng: Add support for the D1 SoC clocks")
Reported-by: default avatarKuba Szczodrzyński <kuba@szczodrzynski.pl>
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Link: https://patch.msgid.link/20250501120631.837186-1-andre.przywara@arm.com


Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8509fb9d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment