net: phy: micrel: set soft_reset callback to genphy_soft_reset for KSZ8061
authorMathieu Othacehe <othacehe@gnu.org>
Tue, 21 May 2024 06:54:06 +0000 (08:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2024 11:30:38 +0000 (12:30 +0100)
commit128d54fbcb14b8717ecf596d3dbded327b9980b3
treec06ce26072664fb47fd2ea9fa7e38637dabb68ac
parent06e785aeb9ea8a43d0a3967c1ba6e69d758e82d4
net: phy: micrel: set soft_reset callback to genphy_soft_reset for KSZ8061

Following a similar reinstate for the KSZ8081 and KSZ9031.

Older kernels would use the genphy_soft_reset if the PHY did not implement
a .soft_reset.

The KSZ8061 errata described here:
https://ww1.microchip.com/downloads/en/DeviceDoc/KSZ8061-Errata-DS80000688B.pdf
and worked around with 232ba3a51c ("net: phy: Micrel KSZ8061: link failure after cable connect")
is back again without this soft reset.

Fixes: 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")
Tested-by: Karim Ben Houcine <karim.benhoucine@landisgyr.com>
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c