OSDN Git Service

phylink: merge SGMII and 802.3z handling
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 1 Dec 2017 10:24:21 +0000 (10:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 16:16:17 +0000 (11:16 -0500)
commitcf4f267534e29c53cfdd92d8811168d5d34af80f
tree71bf5b741b0af2c5acd3b6630e0a9cf08367edd2
parent365c1e64ad4831f3d1806ff3d7771839ec5eeb6b
phylink: merge SGMII and 802.3z handling

The code handling SGMII and 802.3z is essentially the same, except that
we assume 802.3z has no PHY.  Re-organise the code such that these cases
are merged, and exclude 802.3z mode from having a PHY attached.  This
results in the same link handling behaviour as before.

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