File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 47
47
48
48
#define PCIE_RC_CFG_PRIV1_LINK_CAPABILITY 0x04dc
49
49
#define PCIE_RC_CFG_PRIV1_LINK_CAPABILITY_ASPM_SUPPORT_MASK 0xc00
50
- #define PCIE_RC_CFG_PRIV1_LINK_CAPABILITY_ASPM_SUPPORT_L0S 0x1
51
- #define PCIE_RC_CFG_PRIV1_LINK_CAPABILITY_ASPM_SUPPORT_L1 0x2
52
- #define PCIE_RC_CFG_PRIV1_LINK_CAPABILITY_MAX_LINK_SPEED_MASK 0xf
53
50
54
51
#define PCIE_RC_CFG_PRIV1_ROOT_CAP 0x4f8
55
52
#define PCIE_RC_CFG_PRIV1_ROOT_CAP_L1SS_MODE_MASK 0xf8
@@ -1336,11 +1333,10 @@ static int brcm_pcie_setup(struct brcm_pcie *pcie)
1336
1333
pcie -> msi_target_addr = BRCM_MSI_TARGET_ADDR_GT_4GB ;
1337
1334
1338
1335
1339
- /* Always advertise L1 capability */
1340
- aspm_support = PCIE_RC_CFG_PRIV1_LINK_CAPABILITY_ASPM_SUPPORT_L1 ;
1341
- /* Advertise L0s capability unless 'aspm-no-l0s' is set */
1336
+ /* Don't advertise L0s capability if 'aspm-no-l0s' */
1337
+ aspm_support = PCIE_LINK_STATE_L1 ;
1342
1338
if (!of_property_read_bool (pcie -> np , "aspm-no-l0s" ))
1343
- aspm_support |= PCIE_RC_CFG_PRIV1_LINK_CAPABILITY_ASPM_SUPPORT_L0S ;
1339
+ aspm_support |= PCIE_LINK_STATE_L0S ;
1344
1340
tmp = readl (base + PCIE_RC_CFG_PRIV1_LINK_CAPABILITY );
1345
1341
u32p_replace_bits (& tmp , aspm_support ,
1346
1342
PCIE_RC_CFG_PRIV1_LINK_CAPABILITY_ASPM_SUPPORT_MASK );
You can’t perform that action at this time.
0 commit comments