]> git.baikalelectronics.ru Git - kernel.git/commit
misc: rtsx: Add short delay after exit from ASPM
authorKlaus Doth <kdlnx@doth.eu>
Fri, 22 May 2020 10:56:04 +0000 (12:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2020 11:27:38 +0000 (13:27 +0200)
commit0715ed476f665e1c8a2428647b7187384769602e
tree70e1058a613930d67ad5c5e10e480944dae9c15b
parentca954001d0d5a1fa0023fde7c10655f12a9c5188
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 <kdlnx@doth.eu>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/4434eaa7-2ee3-a560-faee-6cee63ebd6d4@doth.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cardreader/rtsx_pcr.c