Skip to content

Commit 7a839db

Browse files
Klaus Dothgregkh
authored andcommitted
misc: rtsx: Add short delay after exit from ASPM
DMA transfers to and from the SD card stall for 10 seconds and run into timeout on RTS5260 card readers after ASPM was enabled. Adding a short msleep after disabling ASPM fixes the issue on several Dell Precision 7530/7540 systems I tested. This function is only called when waking up after the chip went into power-save after not transferring data for a few seconds. The added msleep does therefore not change anything in data transfer speed or induce any excessive waiting while data transfers are running, or the chip is sleeping. Only the transition from sleep to active is affected. Signed-off-by: Klaus Doth <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1ea34b2 commit 7a839db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/misc/cardreader/rtsx_pcr.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ static void rtsx_comm_pm_full_on(struct rtsx_pcr *pcr)
142142

143143
rtsx_disable_aspm(pcr);
144144

145+
/* Fixes DMA transfer timout issue after disabling ASPM on RTS5260 */
146+
msleep(1);
147+
145148
if (option->ltr_enabled)
146149
rtsx_set_ltr_latency(pcr, option->ltr_active_latency);
147150

0 commit comments

Comments
 (0)