File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1512,6 +1512,7 @@ static int rtsx_pci_probe(struct pci_dev *pcidev,
1512
1512
struct pcr_handle * handle ;
1513
1513
u32 base , len ;
1514
1514
int ret , i , bar = 0 ;
1515
+ u8 val ;
1515
1516
1516
1517
dev_dbg (& (pcidev -> dev ),
1517
1518
": Realtek PCI-E Card Reader found at %s [%04x:%04x] (rev %x)\n" ,
@@ -1577,7 +1578,11 @@ static int rtsx_pci_probe(struct pci_dev *pcidev,
1577
1578
pcr -> host_cmds_addr = pcr -> rtsx_resv_buf_addr ;
1578
1579
pcr -> host_sg_tbl_ptr = pcr -> rtsx_resv_buf + HOST_CMDS_BUF_LEN ;
1579
1580
pcr -> host_sg_tbl_addr = pcr -> rtsx_resv_buf_addr + HOST_CMDS_BUF_LEN ;
1580
-
1581
+ rtsx_pci_read_register (pcr , ASPM_FORCE_CTL , & val );
1582
+ if (val & FORCE_ASPM_CTL0 && val & FORCE_ASPM_CTL1 )
1583
+ pcr -> aspm_enabled = false;
1584
+ else
1585
+ pcr -> aspm_enabled = true;
1581
1586
pcr -> card_inserted = 0 ;
1582
1587
pcr -> card_removed = 0 ;
1583
1588
INIT_DELAYED_WORK (& pcr -> carddet_work , rtsx_pci_card_detect );
You can’t perform that action at this time.
0 commit comments