Skip to contentSkip to conversation

ARM: dts: keystone-k2g-evm: fix rgmii phy-mode for ksz9031 phy

PATCH RESEND In review Grygorii Strashko 3 participants 4 messages Jul 24, 2020 – Jul 25, 2020

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

PATCH RESEND 1/1 ARM: dts: keystone-k2g-evm: fix rgmii phy-mode for ksz9031 phy

Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on keystone-k2g-evm board.

The above board have phy-mode = "rgmii-id" and it is worked before because KSZ9031 PHY started with default RGMII internal delays configuration (TX off, RX on 1.2 ns) and MAC provided TX delay by default.
After above commit, the KSZ9031 PHY starts handling phy mode properly and enables both RX and TX delays, as result networking is become broken.

Fix it by switching to phy-mode = "rgmii-rxid" to reflect previous behavior.

Cc Oleksij Rempel <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Philippe Schenker <[email protected]>
Fixes bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY")

---
Fix for one more broken TI board with KSZ9031 PHY.

 arch/arm/boot/dts/keystone-k2g-evm.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/keystone-k2g-evm.dts +1 -1
index db640bab8c1d..8b3d64c913d8 100644
@@ -402,7 +402,7 @@
 
 &gbe0 {
 	phy-handle = <&ethphy0>;
-	phy-mode = "rgmii-id";
+	phy-mode = "rgmii-rxid";
 	status = "okay";
 };
 
Signature · 1 line
2.17.1
#1 lore raw

Hi Arnd, Olof,

Quoted 12 lines · Grygorii Strashko

Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on keystone-k2g-evm board.

The above board have phy-mode = "rgmii-id" and it is worked before because KSZ9031 PHY started with default RGMII internal delays configuration (TX off, RX on 1.2 ns) and MAC provided TX delay by default.
After above commit, the KSZ9031 PHY starts handling phy mode properly and enables both RX and TX delays, as result networking is become broken.

Fix it by switching to phy-mode = "rgmii-rxid" to reflect previous behavior.

Quoted 7 lines
Cc Oleksij Rempel <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Philippe Schenker <[email protected]>
Fixes bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY")

---
Fix for one more broken TI board with KSZ9031 PHY.

Can you please apply this patch to your v5.8 fixes branch and send it upstream ? Without the fix K2G EVM board is broken with v5.8.

Am hoping you can pick this up with pull request since it just one patch.

Regards,
Santosh

#2 lore raw
Quoted 20 lines · On Fri, Jul 24, 2020 at 11:57 PM [email protected]…
Quoted 12 lines · Grygorii Strashko

Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on keystone-k2g-evm board.

The above board have phy-mode = "rgmii-id" and it is worked before because KSZ9031 PHY started with default RGMII internal delays configuration (TX off, RX on 1.2 ns) and MAC provided TX delay by default.
After above commit, the KSZ9031 PHY starts handling phy mode properly and enables both RX and TX delays, as result networking is become broken.

Fix it by switching to phy-mode = "rgmii-rxid" to reflect previous behavior.

Quoted 7 lines
Cc Oleksij Rempel <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Philippe Schenker <[email protected]>
Fixes bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY")

---
Fix for one more broken TI board with KSZ9031 PHY.

Quoted 5 lines

Can you please apply this patch to your v5.8 fixes branch and send it upstream ? Without the fix K2G EVM board is broken with v5.8.

Am hoping you can pick this up with pull request since it just one patch.

I've applied it now, but would point out that it's generally better if you could forward the patch to [email protected] with your Signed-off-by if you come across a similar patch again. That way it ends up in patchwork, and we are more likely to pick it up quickly.

Arnd

#3 lore raw
Quoted 25 lines · Arnd Bergmann
Quoted 23 lines · On Fri, Jul 24, 2020 at 11:57 PM [email protected]…
Quoted 12 lines · Grygorii Strashko

Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on keystone-k2g-evm board.

The above board have phy-mode = "rgmii-id" and it is worked before because KSZ9031 PHY started with default RGMII internal delays configuration (TX off, RX on 1.2 ns) and MAC provided TX delay by default.
After above commit, the KSZ9031 PHY starts handling phy mode properly and enables both RX and TX delays, as result networking is become broken.

Fix it by switching to phy-mode = "rgmii-rxid" to reflect previous behavior.

Quoted 7 lines
Cc Oleksij Rempel <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Philippe Schenker <[email protected]>
Fixes bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY")

---
Fix for one more broken TI board with KSZ9031 PHY.

Can you please apply this patch to your v5.8 fixes branch and send it upstream ? Without the fix K2G EVM board is broken with v5.8.

Quoted 8 lines
Quoted 2 lines

Am hoping you can pick this up with pull request since it just one patch.

I've applied it now, but would point out that it's generally better if you could forward the patch to [email protected] with your Signed-off-by if you come across a similar patch again. That way it ends up in patchwork, and we are more likely to pick it up quickly.

Will do next time. Thanks for picking it up.
Regards,
Santosh