]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sdhci-of-dwcmshc: Promote the th1520 reset handling to ip level
authorJisheng Zhang <jszhang@kernel.org>
Mon, 17 Nov 2025 00:01:32 +0000 (08:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2025 21:25:00 +0000 (06:25 +0900)
commitce3b8270392fd2048b8d5dd49ea8a200c618531c
tree857f0ad13da8d054936b38974a343d3cc7f6f461
parent50b4c1c28733a536d637d2f0401d60bcfef60ef2
mmc: sdhci-of-dwcmshc: Promote the th1520 reset handling to ip level

commit 747528729c9b6733839f9c95f300d5bef95ee52c upstream.

Commit 27e8fe0da3b7 ("mmc: sdhci-of-dwcmshc: Prevent stale command
interrupt handling") clears pending interrupts when resetting
host->pending_reset to ensure no pending stale interrupts after
sdhci_threaded_irq restores interrupts. But this fix is only added for
th1520 platforms, in fact per my test, this issue exists on all
dwcmshc users, such as cv1800b, sg2002, and synaptics platforms.

So promote the above reset handling from th1520 to ip level. And keep
reset handling on rk, sg2042 and bf3 as is, until it's confirmed that
the same issue exists on these platforms too.

Fixes: 017199c2849c ("mmc: sdhci-of-dwcmshc: Add support for Sophgo CV1800B and SG2002")
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-of-dwcmshc.c