summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorJose Abreu <Jose.Abreu@synopsys.com>2020-03-20 10:53:35 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-23 21:01:58 -0700
commitaaf99e8d560c9cdeb6b1aa29257835216b58e746 (patch)
tree1c6cb002a00b6579e111522e9741b25958517036 /drivers/net/phy
parentf84752d0803a6b3a9b42ecdce3e814762debb2fe (diff)
downloadlinux-aaf99e8d560c9cdeb6b1aa29257835216b58e746.tar.bz2
net: phy: xpcs: Reset XPCS upon probe
Reset the XPCS upon probe stage so that we start it from well known state. Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/mdio-xpcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio-xpcs.c b/drivers/net/phy/mdio-xpcs.c
index c04e9bf40180..54976047dcb9 100644
--- a/drivers/net/phy/mdio-xpcs.c
+++ b/drivers/net/phy/mdio-xpcs.c
@@ -688,7 +688,7 @@ static int xpcs_probe(struct mdio_xpcs_args *xpcs, phy_interface_t interface)
match = entry;
if (xpcs_check_features(xpcs, match, interface))
- return 0;
+ return xpcs_soft_reset(xpcs, MDIO_MMD_PCS);
}
}