Re: [PATCH AUTOSEL 6.19-6.1] mmc: rtsx: reset power state on suspend
From: Sasha Levin
Date: Thu Feb 26 2026 - 08:30:32 EST
On Thu, Feb 19, 2026 at 11:27:35AM +0100, Ulf Hansson wrote:
On Thu, 19 Feb 2026 at 03:04, Sasha Levin <sashal@xxxxxxxxxx> wrote:
From: Matthew Schwartz <matthew.schwartz@xxxxxxxxx>
[ Upstream commit eac85fbd0867c25ac517f58fae401d65c627edff ]
When rtsx_pci suspends, the card reader hardware powers off but the sdmmc
driver's prev_power_state remains as MMC_POWER_ON. This causes sd_power_on
to skip reinitialization on the next I/O request, leading to DMA transfer
timeouts and errors on resume 20% of the time.
Add a power_off slot callback so the PCR can notify the sdmmc driver
during suspend. The sdmmc driver resets prev_power_state, and sd_request
checks this to reinitialize the card before the next I/O.
Signed-off-by: Matthew Schwartz <matthew.schwartz@xxxxxxxxx>
Link: https://patch.msgid.link/20260105060236.400366-2-matthew.schwartz@xxxxxxxxx
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
NAK.
This patch is reverted in mainline, as it's not the proper fix.
Dropped, thanks.
--
Thanks,
Sasha