diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-12-29 15:46:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-02 23:00:49 +0300 |
commit | ea4efe25ec937a7bc1108e26261c9dd4082375af (patch) | |
tree | bc643aee953a577f4350a928a7ddc404d8bd765d /include/linux/phy.h | |
parent | 05ca1b327eed2b9abb48cbd013ca451032bd86b0 (diff) | |
download | linux-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index c4b4715caa21..bc379a408c4f 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) { |