]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: slave: eee: Allow ports to use phylink
authorAndrew Lunn <andrew@lunn.ch>
Wed, 8 Aug 2018 18:56:40 +0000 (20:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 02:19:03 +0000 (19:19 -0700)
commite484cc6ffd9301c33fc51a0d99b75826592a6a9c
tree30bdaf9599df7f1f7deec4ae369010bf7cd584b5
parentb21c1abe9c6faa3f13eba474afab69cf23dc599e
dsa: slave: eee: Allow ports to use phylink

For a port to be able to use EEE, both the MAC and the PHY must
support EEE. A phy can be provided by both a phydev or phylink. Verify
at least one of these exist, not just phydev.

Fixes: ec15f293ff9e ("net: dsa: Plug in PHYLINK support")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c