summaryrefslogtreecommitdiff
path: root/include/uapi/linux/mii.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2018-07-21 15:48:47 +0200
committerDavid S. Miller <davem@davemloft.net>2018-07-24 14:41:08 -0700
commitb8f8c8eb408b36ad55dd41a616b3f51998880fb6 (patch)
tree53949ff2a01904ec6b05ab9a4e00b2450cf3af1b /include/uapi/linux/mii.h
parent7836899c34a514a741bd8e471fede61df798345b (diff)
net: phy: add GBit master / slave error detection
Certain PHY's have issues when operating in GBit slave mode and can be forced to master mode. Examples are RTL8211C, also the Micrel PHY driver has a DT setting to force master mode. If two such chips are link partners the autonegotiation will fail. Standard defines a self-clearing on read, latched-high bit to indicate this error. Check this bit to inform the user. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/mii.h')
-rw-r--r--include/uapi/linux/mii.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/mii.h b/include/uapi/linux/mii.h
index b5c2fdcf23fd..a506216591d6 100644
--- a/include/uapi/linux/mii.h
+++ b/include/uapi/linux/mii.h
@@ -136,6 +136,7 @@
#define CTL1000_ENABLE_MASTER 0x1000
/* 1000BASE-T Status register */
+#define LPA_1000MSFAIL 0x8000 /* Master/Slave resolution failure */
#define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */
#define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */
#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */