diff options
author | 2021-03-24 00:46:41 +0800 | |
---|---|---|
committer | 2021-03-24 15:20:08 -0700 | |
commit | d137c70d0e7a3db91ed0c674acb561c115911100 (patch) | |
tree | 54b881ec352d82016e1931597b9a6ad97a0a69ec | |
parent | net: phy: add genphy_c45_loopback (diff) | |
download | linux-d137c70d0e7a3db91ed0c674acb561c115911100.tar.gz linux-d137c70d0e7a3db91ed0c674acb561c115911100.tar.bz2 linux-d137c70d0e7a3db91ed0c674acb561c115911100.zip |
net: phy: marvell10g: Add PHY loopback support
Add support for PHY loopback for Marvell 88x2110 and Marvell 88x3310.
This allow user to perform PHY loopback test using ethtool selftest.
Signed-off-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/phy/marvell10g.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index b1bb9b8e1e4e..74b64e52ffa2 100644 --- a/drivers/net/phy/marvell10g.c +++ b/drivers/net/phy/marvell10g.c @@ -781,6 +781,7 @@ static struct phy_driver mv3310_drivers[] = { .get_tunable = mv3310_get_tunable, .set_tunable = mv3310_set_tunable, .remove = mv3310_remove, + .set_loopback = genphy_c45_loopback, }, { .phy_id = MARVELL_PHY_ID_88E2110, @@ -796,6 +797,7 @@ static struct phy_driver mv3310_drivers[] = { .get_tunable = mv3310_get_tunable, .set_tunable = mv3310_set_tunable, .remove = mv3310_remove, + .set_loopback = genphy_c45_loopback, }, }; |