]> git.itanic.dy.fi Git - linux-stable/commit
mmc: core: sdio: hold retuning if sdio in 1-bit mode
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 30 Aug 2023 09:39:22 +0000 (17:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:54:24 +0000 (11:54 +0200)
commitf4771efb068359f0437cf57838ec4d5fdb404aba
tree6253b381ddb3a1b594231ab301338c3db1fb08d5
parent2312fb7f3b20fe58768f0020eb8c094d15f85c2c
mmc: core: sdio: hold retuning if sdio in 1-bit mode

commit 32a9cdb8869dc111a0c96cf8e1762be9684af15b upstream.

tuning only support in 4-bit mode or 8 bit mode, so in 1-bit mode,
need to hold retuning.

Find this issue when use manual tuning method on imx93. When system
resume back, SDIO WIFI try to switch back to 4 bit mode, first will
trigger retuning, and all tuning command failed.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Fixes: dfa13ebbe334 ("mmc: host: Add facility to support re-tuning")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230830093922.3095850-1-haibo.chen@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/sdio.c