]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Add detection of 1000BaseX link mode support
authorRobert Hancock <hancock@sedsystems.ca>
Tue, 4 Jun 2019 22:15:01 +0000 (16:15 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2019 20:48:51 +0000 (13:48 -0700)
commit42155136bbbdfc959d21553c41af265c2f6aa22a
treebd4a906e29ca48574ef2ff978f3357efdb7bfe77
parentfbfc76d5df3dbf04d7075c6afad4d0a804789578
net: phy: Add detection of 1000BaseX link mode support

Add 1000BaseX to the link modes which are detected based on the
MII_ESTATUS register as per 802.3 Clause 22. This allows PHYs which
support 1000BaseX to work properly with drivers using phylink.

Previously 1000BaseX support was not detected, and if that was the only
mode the PHY indicated support for, phylink would refuse to attach it
due to the list of supported modes being empty.

Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
include/uapi/linux/mii.h