Skip to contentSkip to conversation

net/phy: micrel: Disable asymmetric pause for KSZ9031

PATCH Superseded Mike Looijmans 3 participants 9 messages Sep 11, 2014 – Sep 15, 2014

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

PATCH 1/1 net/phy: micrel: Disable asymmetric pause for KSZ9031

Our KSZ9031 appears to suffer from the same hardware bug as described for the KSZ9021 in commit 32fcafbcd1c9f6c7013016a22a5369b4acb93577, you have to unplug the cable and plug it back to get it to work.

Remove the SUPPORTED_Asym_Pause flag for the KSZ9031 to fix this.

---
 drivers/net/phy/micrel.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/phy/micrel.c +1 -2
index 5a8993b..a932a35 100644
@@ -425,8 +425,7 @@ static struct phy_driver ksphy_driver[] = {
 	.phy_id		= PHY_ID_KSZ9031,
 	.phy_id_mask	= 0x00fffff0,
 	.name		= "Micrel KSZ9031 Gigabit PHY",
-	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause
-				| SUPPORTED_Asym_Pause),
+	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause),
 	.flags		= PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT,
 	.config_init	= kszphy_config_init,
 	.config_aneg	= genphy_config_aneg,
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Mike Looijmans

Our KSZ9031 appears to suffer from the same hardware bug as described for the KSZ9021 in commit 32fcafbcd1c9f6c7013016a22a5369b4acb93577, you have to unplug the cable and plug it back to get it to work.

Remove the SUPPORTED_Asym_Pause flag for the KSZ9031 to fix this.

Can you resend this patch specifying the commit subject in parenthesis like this:

commit 32fcafbcd1c9f6c7013016a22a5369b4acb93577 ("net/phy: micrel:
Disable asymmetric pause for KSZ9021")

since this is a bugfix, it should probably be targeting the 'net' tree, rather than the 'net-next' tree, though the patch applies to both cleanly.

Other than that:

Quoted 21 lines
---
 drivers/net/phy/micrel.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/phy/micrel.c +1 -2
index 5a8993b..a932a35 100644
@@ -425,8 +425,7 @@ static struct phy_driver ksphy_driver[] = {
 	.phy_id		= PHY_ID_KSZ9031,
 	.phy_id_mask	= 0x00fffff0,
 	.name		= "Micrel KSZ9031 Gigabit PHY",
-	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause
-				| SUPPORTED_Asym_Pause),
+	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause),
 	.flags		= PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT,
 	.config_init	= kszphy_config_init,
 	.config_aneg	= genphy_config_aneg,
#2 lore raw
Quoted 5 lines · Florian Fainelli
Quoted 4 lines · Mike Looijmans

Our KSZ9031 appears to suffer from the same hardware bug as described for the KSZ9021 in commit 32fcafbcd1c9f6c7013016a22a5369b4acb93577, you have to unplug the cable and plug it back to get it to work.

Quoted 7 lines
Quoted 1 line

Remove the SUPPORTED_Asym_Pause flag for the KSZ9031 to fix this.

Can you resend this patch specifying the commit subject in parenthesis like this:

commit 32fcafbcd1c9f6c7013016a22a5369b4acb93577 ("net/phy: micrel:
Disable asymmetric pause for KSZ9021")

I'll amend the text body and resend the patch.

Quoted 2 lines

since this is a bugfix, it should probably be targeting the 'net' tree, rather than the 'net-next' tree, though the patch applies to both cleanly.

I assume this does not require any action on my side? I actually based this patch on a 3.14 kernel.

Quoted 26 lines

Other than that:

Quoted 21 lines
---
  drivers/net/phy/micrel.c |    3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/phy/micrel.c +1 -2
index 5a8993b..a932a35 100644
@@ -425,8 +425,7 @@ static struct phy_driver ksphy_driver[] = {
  	.phy_id		= PHY_ID_KSZ9031,
  	.phy_id_mask	= 0x00fffff0,
  	.name		= "Micrel KSZ9031 Gigabit PHY",
-	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause
-				| SUPPORTED_Asym_Pause),
+	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause),
  	.flags		= PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT,
  	.config_init	= kszphy_config_init,
  	.config_aneg	= genphy_config_aneg,
Signature · 1 line
Mike Looijmans
#3 lore raw

PATCH v2 1/1 net/phy: micrel: Disable asymmetric pause for KSZ9031

In reply to Florian Fainelli

The KSZ9031 appears to suffer from the same hardware bug as described for the KSZ9021 in commit 32fcafbcd1c9f6c7013016a22a5369b4acb93577 ("net/phy: micrel: Disable asymmetric pause for KSZ9021") you have to unplug the cable and plug it back to get it to work.

Remove the SUPPORTED_Asym_Pause flag for the KSZ9031 to fix this.

---
 drivers/net/phy/micrel.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/phy/micrel.c +1 -2
index 5a8993b..a932a35 100644
@@ -425,8 +425,7 @@ static struct phy_driver ksphy_driver[] = {
 	.phy_id		= PHY_ID_KSZ9031,
 	.phy_id_mask	= 0x00fffff0,
 	.name		= "Micrel KSZ9031 Gigabit PHY",
-	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause
-				| SUPPORTED_Asym_Pause),
+	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause),
 	.flags		= PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT,
 	.config_init	= kszphy_config_init,
 	.config_aneg	= genphy_config_aneg,
Signature · 1 line
1.7.9.5
maintainer
#4 lore raw

From: Mike Looijmans <[email protected]>
Date: Fri, 12 Sep 2014 14:40:37 +0200

Quoted 8 lines

The KSZ9031 appears to suffer from the same hardware bug as described for the KSZ9021 in commit 32fcafbcd1c9f6c7013016a22a5369b4acb93577 ("net/phy: micrel: Disable asymmetric pause for KSZ9021") you have to unplug the cable and plug it back to get it to work.

Remove the SUPPORTED_Asym_Pause flag for the KSZ9031 to fix this.

This patch does not apply cleanly to the net tree, please respin.

#5 lore raw
Quoted 8 lines · David Miller

From: Mike Looijmans <[email protected]>
Date: Fri, 12 Sep 2014 14:40:37 +0200

Quoted 5 lines

The KSZ9031 appears to suffer from the same hardware bug as described for the KSZ9021 in commit 32fcafbcd1c9f6c7013016a22a5369b4acb93577 ("net/phy: micrel: Disable asymmetric pause for KSZ9021") you have to unplug the cable and plug it back to get it to work.

Quoted 6 lines
Quoted 3 lines

Remove the SUPPORTED_Asym_Pause flag for the KSZ9031 to fix this.

This patch does not apply cleanly to the net tree, please respin.

Okay, just tell me where to find this branch?

Mike.

Met vriendelijke groet / kind regards,

Mike Looijmans

TOPIC Embedded Systems Eindhovenseweg 32-C, NL-5683 KH Best Postbus 440, NL-5680 AK Best
Telefoon: (+31) (0) 499 33 69 79
Telefax: (+31) (0) 499 33 69 70
E-mail: [email protected]
Website: www.topic.nl

Please consider the environment before printing this e-mail

Topic zoekt gedreven (embedded) software specialisten!
http://topic.nl/vacatures/topic-zoekt-software-engineers/

#6 lore raw

PATCH v3 1/1 net/phy: micrel: Disable asymmetric pause for KSZ9031

In reply to David Miller

The KSZ9031 appears to suffer from the same hardware bug as described for the KSZ9021 in commit 32fcafbcd1c9f6c7013016a22a5369b4acb93577 ("net/phy: micrel: Disable asymmetric pause for KSZ9021") you have to unplug the cable and plug it back to get it to work.

Remove the SUPPORTED_Asym_Pause flag for the KSZ9031 to fix this.

---
 drivers/net/phy/micrel.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/phy/micrel.c +1 -2
index fd0ea7c..011dbda 100644
@@ -592,8 +592,7 @@ static struct phy_driver ksphy_driver[] = {
 	.phy_id		= PHY_ID_KSZ9031,
 	.phy_id_mask	= 0x00fffff0,
 	.name		= "Micrel KSZ9031 Gigabit PHY",
-	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause
-				| SUPPORTED_Asym_Pause),
+	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause),
 	.flags		= PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT,
 	.config_init	= ksz9031_config_init,
 	.config_aneg	= genphy_config_aneg,
Signature · 1 line
1.7.9.5
#7 lore raw

I based this patch on the 3.17rc5 state. Hope this applies cleanly now?

Quoted 18 lines · Mike Looijmans

The KSZ9031 appears to suffer from the same hardware bug as described for the KSZ9021 in commit 32fcafbcd1c9f6c7013016a22a5369b4acb93577 ("net/phy: micrel: Disable asymmetric pause for KSZ9021") you have to unplug the cable and plug it back to get it to work.

Remove the SUPPORTED_Asym_Pause flag for the KSZ9031 to fix this.

---
  drivers/net/phy/micrel.c |    3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/phy/micrel.c +0 -0
index fd0ea7c..011dbda 100644

drivers/net/phy/micrel.c static struct phy_driver ksphy_driver[] = { · line 598

Quoted 9 lines
drivers/net/phy/micrel.c +1 -2
@@ -592,8 +592,7 @@ static struct phy_driver ksphy_driver[] = {
  	.phy_id		= PHY_ID_KSZ9031,
  	.phy_id_mask	= 0x00fffff0,
  	.name		= "Micrel KSZ9031 Gigabit PHY",
-	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause
-				| SUPPORTED_Asym_Pause),
+	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause),
  	.flags		= PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT,
  	.config_init	= ksz9031_config_init,
  	.config_aneg	= genphy_config_aneg,

Met vriendelijke groet / kind regards,

Mike Looijmans

TOPIC Embedded Systems Eindhovenseweg 32-C, NL-5683 KH Best Postbus 440, NL-5680 AK Best
Telefoon: (+31) (0) 499 33 69 79
Telefax: (+31) (0) 499 33 69 70
E-mail: [email protected]
Website: www.topic.nl

Please consider the environment before printing this e-mail

Topic zoekt gedreven (embedded) software specialisten!
http://topic.nl/vacatures/topic-zoekt-software-engineers/

maintainer Applied
#8 lore raw
In reply to Mike Looijmans

From: Mike Looijmans <[email protected]>
Date: Mon, 15 Sep 2014 12:06:33 +0200

Quoted 8 lines

The KSZ9031 appears to suffer from the same hardware bug as described for the KSZ9021 in commit 32fcafbcd1c9f6c7013016a22a5369b4acb93577 ("net/phy: micrel: Disable asymmetric pause for KSZ9021") you have to unplug the cable and plug it back to get it to work.

Remove the SUPPORTED_Asym_Pause flag for the KSZ9031 to fix this.

Applied, thanks.