Skip to content

Commit 26ac2df

Browse files
Ricky Wugregkh
authored andcommitted
misc: rtsx: Fix rts5264 driver status incorrect when card removed
rts5264 driver not clean express link error and set EXTRA_CAPS_SD_EXPRESS capability back when card removed Fixes: 6a511c9 ("misc: rtsx: add to support new card reader rts5264") Cc: stable <[email protected]> Signed-off-by: Ricky Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0dc0411 commit 26ac2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/cardreader/rtsx_pcr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ static irqreturn_t rtsx_pci_isr(int irq, void *dev_id)
10021002
} else {
10031003
pcr->card_removed |= SD_EXIST;
10041004
pcr->card_inserted &= ~SD_EXIST;
1005-
if (PCI_PID(pcr) == PID_5261) {
1005+
if ((PCI_PID(pcr) == PID_5261) || (PCI_PID(pcr) == PID_5264)) {
10061006
rtsx_pci_write_register(pcr, RTS5261_FW_STATUS,
10071007
RTS5261_EXPRESS_LINK_FAIL_MASK, 0);
10081008
pcr->extra_caps |= EXTRA_CAPS_SD_EXPRESS;

0 commit comments

Comments
 (0)