diff options
author | Robert Hancock <hancock@sedsystems.ca> | 2019-06-05 01:15:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-06 23:48:51 +0300 |
commit | ca72efb6bdc733006f335ca12ca615395077a873 (patch) | |
tree | bd4a906e29ca48574ef2ff978f3357efdb7bfe77 /include/uapi/linux/mii.h | |
parent | 39f82358485123cbc602ecb5040a95d6e4edaf27 (diff) | |
download | linux-ca72efb6bdc733006f335ca12ca615395077a873.tar.xz |
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>
Diffstat (limited to 'include/uapi/linux/mii.h')
-rw-r--r-- | include/uapi/linux/mii.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/mii.h b/include/uapi/linux/mii.h index a506216591d6..51b48e4be1f2 100644 --- a/include/uapi/linux/mii.h +++ b/include/uapi/linux/mii.h @@ -121,6 +121,8 @@ #define EXPANSION_MFAULTS 0x0010 /* Multiple faults detected */ #define EXPANSION_RESV 0xffe0 /* Unused... */ +#define ESTATUS_1000_XFULL 0x8000 /* Can do 1000BaseX Full */ +#define ESTATUS_1000_XHALF 0x4000 /* Can do 1000BaseX Half */ #define ESTATUS_1000_TFULL 0x2000 /* Can do 1000BT Full */ #define ESTATUS_1000_THALF 0x1000 /* Can do 1000BT Half */ |