|
|
@@ -639,7 +639,7 @@ static int dsa_slave_set_eee(struct net_device *dev, struct ethtool_eee *e)
|
|
|
int ret;
|
|
|
|
|
|
/* Port's PHY and MAC both need to be EEE capable */
|
|
|
- if (!dev->phydev && !dp->pl)
|
|
|
+ if (!dev->phydev || !dp->pl)
|
|
|
return -ENODEV;
|
|
|
|
|
|
if (!ds->ops->set_mac_eee)
|
|
|
@@ -659,7 +659,7 @@ static int dsa_slave_get_eee(struct net_device *dev, struct ethtool_eee *e)
|
|
|
int ret;
|
|
|
|
|
|
/* Port's PHY and MAC both need to be EEE capable */
|
|
|
- if (!dev->phydev && !dp->pl)
|
|
|
+ if (!dev->phydev || !dp->pl)
|
|
|
return -ENODEV;
|
|
|
|
|
|
if (!ds->ops->get_mac_eee)
|