]> Gentwo Git Trees - linux/.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)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 25 Nov 2025 12:44:51 +0000 (13:44 +0100)
commit747528729c9b6733839f9c95f300d5bef95ee52c
tree4fe1206e70aee264f39e4185879b7adc9854bcbe
parent739f04f4a46237536aff07ff223c231da53ed8ce
mmc: sdhci-of-dwcmshc: Promote the th1520 reset handling to ip level

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>
drivers/mmc/host/sdhci-of-dwcmshc.c