|
@@ -1724,11 +1724,8 @@ EXPORT_SYMBOL(genphy_loopback);
|
|
|
|
|
|
|
|
static int __set_phy_supported(struct phy_device *phydev, u32 max_speed)
|
|
static int __set_phy_supported(struct phy_device *phydev, u32 max_speed)
|
|
|
{
|
|
{
|
|
|
- /* The default values for phydev->supported are provided by the PHY
|
|
|
|
|
- * driver "features" member, we want to reset to sane defaults first
|
|
|
|
|
- * before supporting higher speeds.
|
|
|
|
|
- */
|
|
|
|
|
- phydev->supported &= PHY_DEFAULT_FEATURES;
|
|
|
|
|
|
|
+ phydev->supported &= ~(PHY_1000BT_FEATURES | PHY_100BT_FEATURES |
|
|
|
|
|
+ PHY_10BT_FEATURES);
|
|
|
|
|
|
|
|
switch (max_speed) {
|
|
switch (max_speed) {
|
|
|
default:
|
|
default:
|