]> Gentwo Git Trees - linux/.git/commit
mmc: sdhci-esdhc-imx: reset async FIFO before sending manual tuning command
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 9 Apr 2025 07:55:46 +0000 (15:55 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 May 2025 14:59:17 +0000 (16:59 +0200)
commitd0aac7d811775a2e98a02c7f172e0a9e97d9e004
treeacd3825173517b64439140625c3b0ba134f6fb0b
parent0d7831f04d66e6107e9215c7d5f9f166c16d6f46
mmc: sdhci-esdhc-imx: reset async FIFO before sending manual tuning command

During manual tuning, residual data in the async FIFO from previous
commands may impact with the tuning process. To ensure a clean state:

1. Set the RST_FIFO bit (SYS_CTRL[22]) to reset the async FIFO.
2. Poll the bit until self-cleared, confirming reset completion.

This hardening ensures the tuning command starts with a clean FIFO state,
improving the reliability of the manual tuning procedure.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20250409075550.3413032-3-ziniu.wang_1@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c