summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Schwartz <matthew.schwartz@linux.dev>2026-01-05 09:02:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-16 18:36:50 +0300
commitaced969e9bf3701dc75cfca57c78c031b7875b9d (patch)
tree9d4ae542500273748779d1fd22c80aa3ce777b1e
parenteac85fbd0867c25ac517f58fae401d65c627edff (diff)
downloadlinux-aced969e9bf3701dc75cfca57c78c031b7875b9d.tar.xz
mmc: rtsx_pci_sdmmc: increase power-on settling delay to 5ms
The existing 1ms delay in sd_power_on is insufficient and causes resume errors around 4% of the time. Increasing the delay to 5ms resolves this issue after testing 300 s2idle cycles. Fixes: 1f311c94aabd ("mmc: rtsx: add 74 Clocks in power on flow") Signed-off-by: Matthew Schwartz <matthew.schwartz@linux.dev> Link: https://patch.msgid.link/20260105060236.400366-3-matthew.schwartz@linux.dev Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/mmc/host/rtsx_pci_sdmmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.c b/drivers/mmc/host/rtsx_pci_sdmmc.c
index b847d79d4d8c..767816c09491 100644
--- a/drivers/mmc/host/rtsx_pci_sdmmc.c
+++ b/drivers/mmc/host/rtsx_pci_sdmmc.c
@@ -947,7 +947,7 @@ static int sd_power_on(struct realtek_pci_sdmmc *host, unsigned char power_mode)
if (err < 0)
return err;
- mdelay(1);
+ mdelay(5);
err = rtsx_pci_write_register(pcr, CARD_OE, SD_OUTPUT_EN, SD_OUTPUT_EN);
if (err < 0)