mmc: dw_mmc: do not skip dwmci_setup_bus() for same non-zero clock frequency
authorKaustabh Chakraborty <kauschluss@disroot.org>
Fri, 17 Oct 2025 15:24:07 +0000 (20:54 +0530)
committerPeng Fan <peng.fan@nxp.com>
Thu, 30 Oct 2025 02:11:17 +0000 (10:11 +0800)
commit3a5b187b5c03eff681d4e41823313dfa28dfe845
tree786223aaf458ec32d87f90d0c73cd8303f262922
parent02d7aa88214e73aef81474f8b7d85272d94239a0
mmc: dw_mmc: do not skip dwmci_setup_bus() for same non-zero clock frequency

In dwmci_setup_bus(), if the requested frequency is equal to the current
frequency, the function is returned, assuming no changes are required in
associated registers.

On certain SD cards, skipping in such situations may result in a timeout
errors during MMC initialization. Due to the lack of documentation, the
cause is unknown, but removing said check seems to fix the issue.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/dw_mmc.c