Re: [PATCH v2] net: phy: dp83867: perform soft reset and retain established link

From: Andrew Lunn
Date: Thu Jun 10 2021 - 00:07:47 EST


On Wed, Jun 09, 2021 at 07:43:42PM -0500, praneeth@xxxxxx wrote:
> From: Praneeth Bajjuri <praneeth@xxxxxx>
>
> 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@xxxxxx>
> Signed-off-by: Geet Modi <geet.modi@xxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew