net: phy: marvell10g: add MDI swap reporting
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 29 Dec 2017 12:46:27 +0000 (12:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 20:00:49 +0000 (15:00 -0500)
commitea4efe25ec937a7bc1108e26261c9dd4082375af
treebc643aee953a577f4350a928a7ddc404d8bd765d
parent05ca1b327eed2b9abb48cbd013ca451032bd86b0
net: phy: marvell10g: add MDI swap reporting

Add reporting of the MDI swap to the Marvell 10G PHY driver by providing
a generic implementation for the standard 10GBASE-T pair swap register
and polarity register.  We also support reading the MDI swap status for
1G and below from a PCS register.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c
drivers/net/phy/phy-c45.c
include/linux/phy.h