Skip to contentSkip to conversation

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

PATCH Applied Heiner Kallweit 5 participants 9 messages Jan 10, 2019 – Jan 16, 2019

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 net: phy: micrel: set soft_reset callback to genphy_soft_reset for KSZ9031

So far genphy_soft_reset was used automatically if the PHY driver didn't implement the soft_reset callback. This changed with the mentioned commit and broke KSZ9031. To fix this configure the KSZ9031 PHY driver to use genphy_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 c33384710..7828d17f0 100644
@@ -1070,6 +1070,7 @@ static struct phy_driver ksphy_driver[] = {
 	.driver_data	= &ksz9021_type,
 	.probe		= kszphy_probe,
 	.config_init	= ksz9031_config_init,
+	.soft_reset	= genphy_soft_reset,
 	.read_status	= ksz9031_read_status,
 	.ack_interrupt	= kszphy_ack_interrupt,
 	.config_intr	= kszphy_config_intr,
Signature · 1 line
2.20.1
#1 lore raw
Quoted 8 lines · Heiner Kallweit

So far genphy_soft_reset was used automatically if the PHY driver didn't implement the soft_reset callback. This changed with the mentioned commit and broke KSZ9031. To fix this configure the KSZ9031 PHY driver to use genphy_soft_reset.

Fixes 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")

Thanks a lot for following up with the people at TI on this. We should really get a better understanding of what the issue is, and whether there is a possibly better workaround that could be developed which is not just as hard as a big hammer software reset. Maybe we can get some people/contacts at Micrel to help here.

Quoted 17 lines
---
 drivers/net/phy/micrel.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/micrel.c +1 -0
index c33384710..7828d17f0 100644
@@ -1070,6 +1070,7 @@ static struct phy_driver ksphy_driver[] = {
 	.driver_data	= &ksz9021_type,
 	.probe		= kszphy_probe,
 	.config_init	= ksz9031_config_init,
+	.soft_reset	= genphy_soft_reset,
 	.read_status	= ksz9031_read_status,
 	.ack_interrupt	= kszphy_ack_interrupt,
 	.config_intr	= kszphy_config_intr,
Signature · 1 line
Florian
author maintainer
#2 lore raw
Quoted 10 lines · Florian Fainelli
Quoted 8 lines · Heiner Kallweit

So far genphy_soft_reset was used automatically if the PHY driver didn't implement the soft_reset callback. This changed with the mentioned commit and broke KSZ9031. To fix this configure the KSZ9031 PHY driver to use genphy_soft_reset.

Fixes 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")
Quoted 6 lines

Thanks a lot for following up with the people at TI on this. We should really get a better understanding of what the issue is, and whether there is a possibly better workaround that could be developed which is not just as hard as a big hammer software reset. Maybe we can get some people/contacts at Micrel to help here.

In ksz9031_config_init() quite some settings are done and IMO it's not that unusual that it takes a soft reset for such settings to become effective. But I agree it would be nice if somebody from the PHY vendor could comment on whether a soft reset is actually needed. Not sure who has a contact to Microchip.

If the feedback takes time it may be better to apply the soft reset as fix and replace it later in case we have a less intrusive option.

Quoted 19 lines
Quoted 17 lines
---
 drivers/net/phy/micrel.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/micrel.c +1 -0
index c33384710..7828d17f0 100644
@@ -1070,6 +1070,7 @@ static struct phy_driver ksphy_driver[] = {
 	.driver_data	= &ksz9021_type,
 	.probe		= kszphy_probe,
 	.config_init	= ksz9031_config_init,
+	.soft_reset	= genphy_soft_reset,
 	.read_status	= ksz9031_read_status,
 	.ack_interrupt	= kszphy_ack_interrupt,
 	.config_intr	= kszphy_config_intr,
#3 lore raw
Quoted 17 lines · Heiner Kallweit
Quoted 10 lines · Florian Fainelli
Quoted 8 lines · Heiner Kallweit

So far genphy_soft_reset was used automatically if the PHY driver didn't implement the soft_reset callback. This changed with the mentioned commit and broke KSZ9031. To fix this configure the KSZ9031 PHY driver to use genphy_soft_reset.

Fixes 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")
Quoted 6 lines

Thanks a lot for following up with the people at TI on this. We should really get a better understanding of what the issue is, and whether there is a possibly better workaround that could be developed which is not just as hard as a big hammer software reset. Maybe we can get some people/contacts at Micrel to help here.

Quoted 5 lines

In ksz9031_config_init() quite some settings are done and IMO it's not that unusual that it takes a soft reset for such settings to become effective. But I agree it would be nice if somebody from the PHY vendor could comment on whether a soft reset is actually needed. Not sure who has a contact to Microchip.

Adding Sekhar to Cc, maybe he has some contacts to ask.

Quoted 2 lines

If the feedback takes time it may be better to apply the soft reset as fix and replace it later in case we have a less intrusive option.

Yes please let's fix the regression first and then patch more later as needed.

Regards,

Tony

Quoted 20 lines
Quoted 19 lines
Quoted 17 lines
---
 drivers/net/phy/micrel.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/micrel.c +1 -0
index c33384710..7828d17f0 100644
@@ -1070,6 +1070,7 @@ static struct phy_driver ksphy_driver[] = {
 	.driver_data	= &ksz9021_type,
 	.probe		= kszphy_probe,
 	.config_init	= ksz9031_config_init,
+	.soft_reset	= genphy_soft_reset,
 	.read_status	= ksz9031_read_status,
 	.ack_interrupt	= kszphy_ack_interrupt,
 	.config_intr	= kszphy_config_intr,
#4 lore raw
Quoted 18 lines · Tony Lindgren
Quoted 17 lines · Heiner Kallweit
Quoted 16 lines · Florian Fainelli
Quoted 8 lines · Heiner Kallweit

So far genphy_soft_reset was used automatically if the PHY driver didn't implement the soft_reset callback. This changed with the mentioned commit and broke KSZ9031. To fix this configure the KSZ9031 PHY driver to use genphy_soft_reset.

Fixes 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")

Thanks a lot for following up with the people at TI on this. We should really get a better understanding of what the issue is, and whether there is a possibly better workaround that could be developed which is not just as hard as a big hammer software reset. Maybe we can get some people/contacts at Micrel to help here.

Quoted 7 lines
Quoted 5 lines

In ksz9031_config_init() quite some settings are done and IMO it's not that unusual that it takes a soft reset for such settings to become effective. But I agree it would be nice if somebody from the PHY vendor could comment on whether a soft reset is actually needed. Not sure who has a contact to Microchip.

Adding Sekhar to Cc, maybe he has some contacts to ask.

Oops.. Second attempt of adding Sekhar to Cc.

Quoted 30 lines
Quoted 2 lines

If the feedback takes time it may be better to apply the soft reset as fix and replace it later in case we have a less intrusive option.

Yes please let's fix the regression first and then patch more later as needed.

Regards,

Tony

Quoted 20 lines
Quoted 19 lines
Quoted 17 lines
---
 drivers/net/phy/micrel.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/micrel.c +1 -0
index c33384710..7828d17f0 100644
@@ -1070,6 +1070,7 @@ static struct phy_driver ksphy_driver[] = {
 	.driver_data	= &ksz9021_type,
 	.probe		= kszphy_probe,
 	.config_init	= ksz9031_config_init,
+	.soft_reset	= genphy_soft_reset,
 	.read_status	= ksz9031_read_status,
 	.ack_interrupt	= kszphy_ack_interrupt,
 	.config_intr	= kszphy_config_intr,
Tested-by
#5 lore raw
In reply to Tony Lindgren
Quoted 18 lines · Tony Lindgren
Quoted 17 lines · Heiner Kallweit
Quoted 16 lines · Florian Fainelli
Quoted 8 lines · Heiner Kallweit

So far genphy_soft_reset was used automatically if the PHY driver didn't implement the soft_reset callback. This changed with the mentioned commit and broke KSZ9031. To fix this configure the KSZ9031 PHY driver to use genphy_soft_reset.

Fixes 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")

Thanks a lot for following up with the people at TI on this. We should really get a better understanding of what the issue is, and whether there is a possibly better workaround that could be developed which is not just as hard as a big hammer software reset. Maybe we can get some people/contacts at Micrel to help here.

Quoted 7 lines
Quoted 5 lines

In ksz9031_config_init() quite some settings are done and IMO it's not that unusual that it takes a soft reset for such settings to become effective. But I agree it would be nice if somebody from the PHY vendor could comment on whether a soft reset is actually needed. Not sure who has a contact to Microchip.

Adding Sekhar to Cc, maybe he has some contacts to ask.

I dont have any direct contacts, but I will ask internally.

Quoted 6 lines
Quoted 3 lines

If the feedback takes time it may be better to apply the soft reset as fix and replace it later in case we have a less intrusive option.

Yes please let's fix the regression first and then patch more later as needed.

+1

I justed tested AM437x GP EVM with 10 times cable plug-unplug and this fixes the regression.

Thanks,
Sekhar

Tested-by on v1 1/1
#6 lore raw
In reply to Heiner Kallweit
Quoted 8 lines · Heiner Kallweit

So far genphy_soft_reset was used automatically if the PHY driver didn't implement the soft_reset callback. This changed with the mentioned commit and broke KSZ9031. To fix this configure the KSZ9031 PHY driver to use genphy_soft_reset.

Fixes 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")

Thanks this fixes the regression for me:

Quoted 19 lines
---
 drivers/net/phy/micrel.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/micrel.c +1 -0
index c33384710..7828d17f0 100644
@@ -1070,6 +1070,7 @@ static struct phy_driver ksphy_driver[] = {
 	.driver_data	= &ksz9021_type,
 	.probe		= kszphy_probe,
 	.config_init	= ksz9031_config_init,
+	.soft_reset	= genphy_soft_reset,
 	.read_status	= ksz9031_read_status,
 	.ack_interrupt	= kszphy_ack_interrupt,
 	.config_intr	= kszphy_config_intr,
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#7 lore raw
In reply to Heiner Kallweit
Quoted 8 lines · Heiner Kallweit

So far genphy_soft_reset was used automatically if the PHY driver didn't implement the soft_reset callback. This changed with the mentioned commit and broke KSZ9031. To fix this configure the KSZ9031 PHY driver to use genphy_soft_reset.

Fixes 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")
Signature · 1 line
Florian
maintainer Applied
#8 lore raw
In reply to Heiner Kallweit

From: Heiner Kallweit <[email protected]>
Date: Thu, 10 Jan 2019 20:22:26 +0100

Quoted 8 lines

So far genphy_soft_reset was used automatically if the PHY driver didn't implement the soft_reset callback. This changed with the mentioned commit and broke KSZ9031. To fix this configure the KSZ9031 PHY driver to use genphy_soft_reset.

Fixes 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")

Applied.