Skip to contentSkip to conversation

net: phy: micrel: set soft_reset callback to genphy_soft_reset for KSZ8061

PATCH Applied Mathieu Othacehe 5 participants 5 messages May 21, 2024 – May 24, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/net/phy/micrel.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/micrel.c +1 -0
index 13e30ea7eec5..1d769322b059 100644
@@ -5327,6 +5327,7 @@ static struct phy_driver ksphy_driver[] = {
 	/* PHY_BASIC_FEATURES */
 	.probe		= kszphy_probe,
 	.config_init	= ksz8061_config_init,
+	.soft_reset	= genphy_soft_reset,
 	.config_intr	= kszphy_config_intr,
 	.handle_interrupt = kszphy_handle_interrupt,
 	.suspend	= kszphy_suspend,
Signature · 1 line
2.41.0
maintainer
#1 lore raw
Quoted 5 lines · Mathieu Othacehe

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.

Quoted 8 lines

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")

LGTM, but waiting a little longer for anyone from phy crew to ack it.

Thanks,

Paolo

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Mathieu Othacehe
Quoted 5 lines · Mathieu Othacehe

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.

Quoted 8 lines

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")

Andrew

Reviewed-by on v1 1/1
#3 lore raw
In reply to Mathieu Othacehe
Quoted 5 lines · Mathieu Othacehe

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.

Quoted 8 lines

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")
Signature · 1 line
Florian
#4 lore raw
In reply to Mathieu Othacehe
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <[email protected]>:

Quoted 11 lines · On Tue, 21 May 2024 08:54:06 +0200 you wrote:

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.

[...]

Here is the summary with links:
- net: phy: micrel: set soft_reset callback to genphy_soft_reset for KSZ8061

    https://git.kernel.org/netdev/net/c/128d54fbcb14

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html