net: phy: dp83867: perform soft reset and retain established link
authorPraneeth Bajjuri <praneeth@ti.com>
Thu, 10 Jun 2021 00:43:42 +0000 (19:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 17:13:03 +0000 (10:13 -0700)
commitda9ef50f545f86ffe6ff786174d26500c4db737a
tree1697db68f1d07e62998c9eeaa480e0846e6e179c
parent232e3683b4ee529a0643fa45b3f0f6c06590aca2
net: phy: dp83867: perform soft reset and retain established link

Current logic is performing hard reset and causing the programmed
registers to be wiped out.

as per datasheet: https://www.ti.com/lit/ds/symlink/dp83867cr.pdf
8.6.26 Control Register (CTRL)

do SW_RESTART to perform a reset not including the registers,
If performed when link is already present,
it will drop the link and trigger re-auto negotiation.

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Signed-off-by: Geet Modi <geet.modi@ti.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c