net: phy: add GBit master / slave error detection
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 21 Jul 2018 13:48:47 +0000 (15:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jul 2018 21:41:08 +0000 (14:41 -0700)
commitb8f8c8eb408b36ad55dd41a616b3f51998880fb6
tree53949ff2a01904ec6b05ab9a4e00b2450cf3af1b
parent7836899c34a514a741bd8e471fede61df798345b
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>
drivers/net/phy/phy_device.c
include/uapi/linux/mii.h