]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: LAN87xx: remove genphy_softreset in config_aneg
authorArun Ramadoss <arun.ramadoss@microchip.com>
Thu, 7 Apr 2022 04:46:10 +0000 (10:16 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2022 09:32:58 +0000 (10:32 +0100)
commit4798e8caa9f757cd82dda43541140dd8f2a81df8
tree5cf16f2f1f4842083110f6a3d0a90ae620fe6fff
parentf89d7ff60cb63ca8ce6e0e95e0a3ba63108e84f6
net: phy: LAN87xx: remove genphy_softreset in config_aneg

When the T1 phy master/slave state is changed, at the end of config_aneg
function genphy_softreset is called. After the reset all the registers
configured during the config_init are restored to default value.
To avoid this, removed the genphy_softreset call.

v1->v2
------
Added the author in cc

Fixes: 18399cf5c3f9 ("net: phy: added ethtool master-slave configuration support")
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/microchip_t1.c