]> Gentwo Git Trees - linux/.git/commit
mmc: dw_mmc-rockchip: Fix wrong internal phase calculate
authorShawn Lin <shawn.lin@rock-chips.com>
Tue, 4 Nov 2025 03:51:23 +0000 (11:51 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 11 Nov 2025 16:47:47 +0000 (17:47 +0100)
commit739f04f4a46237536aff07ff223c231da53ed8ce
tree332156a9e8a5e721e9a45d66a5a6dce3a671782c
parent9e805625218b70d865fcee2105dbf835d473c074
mmc: dw_mmc-rockchip: Fix wrong internal phase calculate

ciu clock is 2 times of io clock, but the sample clk used is
derived from io clock provided to the card. So we should use
io clock to calculate the phase.

Fixes: 59903441f5e4 ("mmc: dw_mmc-rockchip: Add internal phase support")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-rockchip.c