phy: add phy_interface_mode_is_8023z() helper
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 1 Dec 2017 10:24:16 +0000 (10:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 16:16:17 +0000 (11:16 -0500)
commit365c1e64ad4831f3d1806ff3d7771839ec5eeb6b
tree16d4b6f3d90513ac500ab720df3ecb25750e5bb7
parentb0e9fe1ba7f8305dc1c640fbeb1b8c5c609e604c
phy: add phy_interface_mode_is_8023z() helper

Add and use phy_interface_mode_is_8023z() helper to identify the
interface modes that use 802.3z negotiation.  Use it in phylink's
phylink_mac_an_restart().

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c
include/linux/phy.h