@@ -984,7 +984,7 @@ static inline int pcie_hotplug_depth(struct pci_dev *dev)
984
984
struct controller * pcie_init (struct pcie_device * dev )
985
985
{
986
986
struct controller * ctrl ;
987
- u32 slot_cap , slot_cap2 , link_cap ;
987
+ u32 slot_cap , slot_cap2 ;
988
988
u8 poweron ;
989
989
struct pci_dev * pdev = dev -> port ;
990
990
struct pci_bus * subordinate = pdev -> subordinate ;
@@ -1030,9 +1030,6 @@ struct controller *pcie_init(struct pcie_device *dev)
1030
1030
if (dmi_first_match (inband_presence_disabled_dmi_table ))
1031
1031
ctrl -> inband_presence_disabled = 1 ;
1032
1032
1033
- /* Check if Data Link Layer Link Active Reporting is implemented */
1034
- pcie_capability_read_dword (pdev , PCI_EXP_LNKCAP , & link_cap );
1035
-
1036
1033
/* Clear all remaining event bits in Slot Status register. */
1037
1034
pcie_capability_write_word (pdev , PCI_EXP_SLTSTA ,
1038
1035
PCI_EXP_SLTSTA_ABP | PCI_EXP_SLTSTA_PFD |
@@ -1051,7 +1048,7 @@ struct controller *pcie_init(struct pcie_device *dev)
1051
1048
FLAG (slot_cap , PCI_EXP_SLTCAP_EIP ),
1052
1049
FLAG (slot_cap , PCI_EXP_SLTCAP_NCCS ),
1053
1050
FLAG (slot_cap2 , PCI_EXP_SLTCAP2_IBPD ),
1054
- FLAG (link_cap , PCI_EXP_LNKCAP_DLLLARC ),
1051
+ FLAG (pdev -> link_active_reporting , true ),
1055
1052
pdev -> broken_cmd_compl ? " (with Cmd Compl erratum)" : "" );
1056
1053
1057
1054
/*
0 commit comments