Skip to contentSkip to conversation

arm64: dts: clearfog-gt-8k: set gigabit PHY reset deassert delay

PATCH In review Russell King 3 participants 3 messages Feb 25, 2020 – Mar 13, 2020

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

PATCH 1/1 arm64: dts: clearfog-gt-8k: set gigabit PHY reset deassert delay

If the mv88e6xxx DSA driver is built as a module, it causes the ethernet driver to re-probe when it's loaded. This in turn causes the gigabit PHY to be momentarily reset and reprogrammed. However, we attempt to reprogram the PHY immediately after deasserting reset, and the PHY ignores the writes.

This results in the PHY operating in the wrong mode, and the copper link states down.

Set a reset deassert delay of 10ms for the gigabit PHY to avoid this.

Fixes babc5544c293 ("arm64: dts: clearfog-gt-8k: 1G eth PHY reset signal")
---
 arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts +1 -0
index bd881497b872..dc531d136273 100644
@@ -367,6 +367,7 @@
 		pinctrl-0 = <&cp0_copper_eth_phy_reset>;
 		reset-gpios = <&cp0_gpio2 11 GPIO_ACTIVE_LOW>;
 		reset-assert-us = <10000>;
+		reset-deassert-us = <10000>;
 	};
 
 	switch0: switch0@4 {
Signature · 1 line
2.20.1
Acked-by on v1 1/1
#1 lore raw

Hi Russell,

Quoted 6 lines · Russell King

If the mv88e6xxx DSA driver is built as a module, it causes the ethernet driver to re-probe when it's loaded. This in turn causes the gigabit PHY to be momentarily reset and reprogrammed. However, we attempt to reprogram the PHY immediately after deasserting reset, and the PHY ignores the writes.

Quoted 7 lines

This results in the PHY operating in the wrong mode, and the copper link states down.

Set a reset deassert delay of 10ms for the gigabit PHY to avoid this.

Fixes babc5544c293 ("arm64: dts: clearfog-gt-8k: 1G eth PHY reset signal")

Thanks,
baruch

Quoted 16 lines
---
 arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts +1 -0
index bd881497b872..dc531d136273 100644
@@ -367,6 +367,7 @@
 		pinctrl-0 = <&cp0_copper_eth_phy_reset>;
 		reset-gpios = <&cp0_gpio2 11 GPIO_ACTIVE_LOW>;
 		reset-assert-us = <10000>;
+		reset-deassert-us = <10000>;
 	};
 
 	switch0: switch0@4 {
Signature · 8 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer
#2 lore raw
In reply to Russell King

Hi Russell,

Quoted 6 lines

If the mv88e6xxx DSA driver is built as a module, it causes the ethernet driver to re-probe when it's loaded. This in turn causes the gigabit PHY to be momentarily reset and reprogrammed. However, we attempt to reprogram the PHY immediately after deasserting reset, and the PHY ignores the writes.

Quoted 7 lines

This results in the PHY operating in the wrong mode, and the copper link states down.

Set a reset deassert delay of 10ms for the gigabit PHY to avoid this.

Fixes babc5544c293 ("arm64: dts: clearfog-gt-8k: 1G eth PHY reset signal")

Applied on mvebu/dt64

Thanks,

Gregory

Quoted 19 lines
---
 arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts +1 -0
index bd881497b872..dc531d136273 100644
@@ -367,6 +367,7 @@
 		pinctrl-0 = <&cp0_copper_eth_phy_reset>;
 		reset-gpios = <&cp0_gpio2 11 GPIO_ACTIVE_LOW>;
 		reset-assert-us = <10000>;
+		reset-deassert-us = <10000>;
 	};
 
 	switch0: switch0@4 {
Signature · 1 line
2.20.1
Signature · 3 lines
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com