ARM: dts: pfla02: increase phy reset duration [Linux 3.16.72]

This Linux kernel change "ARM: dts: pfla02: increase phy reset duration" is included in the Linux 3.16.72 release. This change is authored by Marco Felsch <m.felsch [at] pengutronix.de> on Mon Mar 4 11:49:40 2019 +0100. The commit for this change in Linux stable tree is 919f489 (patch) which is from upstream commit 032f85c. The same Linux upstream change may have been applied to various maintained Linux releases and you can find all Linux releases containing changes from upstream 032f85c.

ARM: dts: pfla02: increase phy reset duration

commit 032f85c9360fb1a08385c584c2c4ed114b33c260 upstream.

Increase the reset duration to ensure correct phy functionality. The
reset duration is taken from barebox commit 52fdd510de ("ARM: dts:
pfla02: use long enough reset for ethernet phy"):

  Use a longer reset time for ethernet phy Micrel KSZ9031RNX. Otherwise a
  small percentage of modules have 'transmission timeouts' errors like

  [email protected] phyFLEX-i.MX6 Quad Carrier-Board:/ ifup eth0
  warning: No MAC address set. Using random address 7e:94:4d:02:f8:f3
  eth0: 1000Mbps full duplex link detected
  eth0: transmission timeout
  T eth0: transmission timeout
  T eth0: transmission timeout
  T eth0: transmission timeout
  T eth0: transmission timeout

Cc: Stefan Christ <[email protected]>
Cc: Christian Hemp <[email protected]>
Signed-off-by: Marco Felsch <[email protected]>
Fixes: 3180f956668e ("ARM: dts: Phytec imx6q pfla02 and pbab01 support")
Signed-off-by: Shawn Guo <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

There is one line of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi b/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
index 50c7718..0214e119 100644
--- a/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
@@ -302,6 +302,7 @@
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_enet>;
    phy-mode = "rgmii";
+   phy-reset-duration = <10>; /* in msecs */
    phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
    status = "disabled";
 };

Leave a Reply

Your email address will not be published. Required fields are marked *