Commit a8ce93fa authored by Praneeth Bajjuri's avatar Praneeth Bajjuri Committed by Zheng Zengkai
Browse files

net: phy: dp83867: perform soft reset and retain established link

stable inclusion
from stable-5.10.47
commit 47c07f919fabb6fc8b3c27ad985f24648f5fd6df
bugzilla: 172973 https://gitee.com/openeuler/kernel/issues/I4DAKB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=47c07f919fabb6fc8b3c27ad985f24648f5fd6df

--------------------------------

[ Upstream commit da9ef50f ]

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: default avatarPraneeth Bajjuri <praneeth@ti.com>
Signed-off-by: default avatarGeet Modi <geet.modi@ti.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent c3d78df9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment