File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2123,14 +2123,14 @@ static int tg3_phy_init(struct tg3 *tp)
2123
2123
case PHY_INTERFACE_MODE_RGMII :
2124
2124
if (!(tp -> phy_flags & TG3_PHYFLG_10_100_ONLY )) {
2125
2125
phy_set_max_speed (phydev , SPEED_1000 );
2126
- phydev -> supported & = (SUPPORTED_Pause |
2126
+ phydev -> supported | = (SUPPORTED_Pause |
2127
2127
SUPPORTED_Asym_Pause );
2128
2128
break ;
2129
2129
}
2130
2130
/* fallthru */
2131
2131
case PHY_INTERFACE_MODE_MII :
2132
2132
phy_set_max_speed (phydev , SPEED_100 );
2133
- phydev -> supported & = (SUPPORTED_Pause |
2133
+ phydev -> supported | = (SUPPORTED_Pause |
2134
2134
SUPPORTED_Asym_Pause );
2135
2135
break ;
2136
2136
default :
Original file line number Diff line number Diff line change 10
10
11
11
#define HCLGE_PHY_SUPPORTED_FEATURES (SUPPORTED_Autoneg | \
12
12
SUPPORTED_TP | \
13
- SUPPORTED_Pause | \
14
- SUPPORTED_Asym_Pause | \
15
13
PHY_10BT_FEATURES | \
16
14
PHY_100BT_FEATURES | \
17
15
PHY_1000BT_FEATURES)
@@ -213,6 +211,8 @@ int hclge_mac_connect_phy(struct hclge_dev *hdev)
213
211
}
214
212
215
213
phydev -> supported &= HCLGE_PHY_SUPPORTED_FEATURES ;
214
+ phydev -> supported |= SUPPORTED_Pause | SUPPORTED_Asym_Pause ;
215
+
216
216
phydev -> advertising = phydev -> supported ;
217
217
218
218
return 0 ;
Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ static int mtk_phy_connect(struct net_device *dev)
360
360
SUPPORTED_Pause | SUPPORTED_Asym_Pause ;
361
361
362
362
phy_set_max_speed (dev -> phydev , SPEED_1000 );
363
- dev -> phydev -> supported & = SUPPORTED_Pause | SUPPORTED_Asym_Pause ;
363
+ dev -> phydev -> supported | = SUPPORTED_Pause | SUPPORTED_Asym_Pause ;
364
364
dev -> phydev -> advertising = dev -> phydev -> supported |
365
365
ADVERTISED_Autoneg ;
366
366
phy_start_aneg (dev -> phydev );
Original file line number Diff line number Diff line change @@ -1051,7 +1051,7 @@ static int smsc911x_mii_probe(struct net_device *dev)
1051
1051
phy_set_max_speed (phydev , SPEED_100 );
1052
1052
1053
1053
/* mask with MAC supported features */
1054
- phydev -> supported & = (SUPPORTED_Pause | SUPPORTED_Asym_Pause );
1054
+ phydev -> supported | = (SUPPORTED_Pause | SUPPORTED_Asym_Pause );
1055
1055
phydev -> advertising = phydev -> supported ;
1056
1056
1057
1057
pdata -> last_duplex = -1 ;
Original file line number Diff line number Diff line change @@ -1138,7 +1138,7 @@ static int smsc9420_mii_probe(struct net_device *dev)
1138
1138
phy_set_max_speed (phydev , SPEED_100 );
1139
1139
1140
1140
/* mask with MAC supported features */
1141
- phydev -> supported & = (SUPPORTED_Pause | SUPPORTED_Asym_Pause );
1141
+ phydev -> supported | = (SUPPORTED_Pause | SUPPORTED_Asym_Pause );
1142
1142
phydev -> advertising = phydev -> supported ;
1143
1143
1144
1144
phy_attached_info (phydev );
You can’t perform that action at this time.
0 commit comments