]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: host: renesas_sdhi: Fix the actual clock
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 29 Jun 2025 20:38:56 +0000 (21:38 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 19 Aug 2025 12:34:14 +0000 (14:34 +0200)
commit9c174e4dacee9fb2014a4ffc953d79a5707b77e4
tree208ef478201783597e678d0b2ea3387b1274c2fc
parentfef12d9f5bcf7e2b19a7cf1295c6abd5642dd241
mmc: host: renesas_sdhi: Fix the actual clock

Wrong actual clock reported, if the SD clock division ratio is other
than 1:1(bits DIV[7:0] in SD_CLK_CTRL are set to 11111111).

On high speed mode, cat /sys/kernel/debug/mmc1/ios
Without the patch:
clock:          50000000 Hz
actual clock:   200000000 Hz

After the fix:
clock:          50000000 Hz
actual clock:   50000000 Hz

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20250629203859.170850-1-biju.das.jz@bp.renesas.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c