diff options
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 732369c80644..9864bcd3d317 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -639,7 +639,7 @@ static int dsa_slave_set_eee(struct net_device *dev, struct ethtool_eee *e) | |||
639 | int ret; | 639 | int ret; |
640 | 640 | ||
641 | /* Port's PHY and MAC both need to be EEE capable */ | 641 | /* Port's PHY and MAC both need to be EEE capable */ |
642 | if (!dev->phydev) | 642 | if (!dev->phydev && !dp->pl) |
643 | return -ENODEV; | 643 | return -ENODEV; |
644 | 644 | ||
645 | if (!ds->ops->set_mac_eee) | 645 | if (!ds->ops->set_mac_eee) |
@@ -659,7 +659,7 @@ static int dsa_slave_get_eee(struct net_device *dev, struct ethtool_eee *e) | |||
659 | int ret; | 659 | int ret; |
660 | 660 | ||
661 | /* Port's PHY and MAC both need to be EEE capable */ | 661 | /* Port's PHY and MAC both need to be EEE capable */ |
662 | if (!dev->phydev) | 662 | if (!dev->phydev && !dp->pl) |
663 | return -ENODEV; | 663 | return -ENODEV; |
664 | 664 | ||
665 | if (!ds->ops->get_mac_eee) | 665 | if (!ds->ops->get_mac_eee) |