summaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2017-12-29 12:46:27 +0000
committerDavid S. Miller <davem@davemloft.net>2018-01-02 15:00:49 -0500
commitea4efe25ec937a7bc1108e26261c9dd4082375af (patch)
treebc643aee953a577f4350a928a7ddc404d8bd765d /include/linux/phy.h
parent05ca1b327eed2b9abb48cbd013ca451032bd86b0 (diff)
downloadlinux-0-day-ea4efe25ec937a7bc1108e26261c9dd4082375af.tar.gz
linux-0-day-ea4efe25ec937a7bc1108e26261c9dd4082375af.tar.xz
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>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index c4b4715caa213..bc379a408c4ff 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -901,6 +901,7 @@ int genphy_c45_read_lpa(struct phy_device *phydev);
int genphy_c45_read_pma(struct phy_device *phydev);
int genphy_c45_pma_setup_forced(struct phy_device *phydev);
int genphy_c45_an_disable_aneg(struct phy_device *phydev);
+int genphy_c45_read_mdix(struct phy_device *phydev);
static inline int phy_read_status(struct phy_device *phydev)
{