Skip to contentSkip to conversation

arm64: dts: freescale: imx93-phycore-som: Delay the phy reset by a gpio

PATCH Applied Christoph Stoidner 5 participants 19 messages May 24, 2025 – Aug 20, 2025

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

PATCH v3 1/1 arm64: dts: freescale: imx93-phycore-som: Delay the phy reset by a gpio

According to the datasheet the phy needs to be held in reset until the reference clock got stable. Even though no issue was observed, fix this as the software should always comply with the specification.

Use gpio4 23, which is connected to the phy reset pin. On the same pin RX_ER was used before, but this signal is optional and can be dropped.

Note: This comes into effect with the phyCOREs SOM hardware revision 4. In revisions before, this gpio is not connected, and the phy reset is managed with the global hardware reset circuit.

---
Changes in v3:
- use reset-gpios (from ethernet-phy.yaml) instead of phy-reset-gpios

Changes in v2:
- remove paragraph "Fix this in the bootloader..." from commit message
- fix checkpatch warning

 arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi +8 -3
index 88c2657b50e6..b481097f08a4 100644
@@ -68,6 +68,8 @@ mdio: mdio {
 		ethphy1: ethernet-phy@1 {
 			compatible = "ethernet-phy-ieee802.3-c22";
 			reg = <1>;
+			reset-gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
+			reset-assert-us = <30>;
 		};
 	};
 };
@@ -91,14 +93,17 @@ pinctrl_fec: fecgrp {
 		fsl,pins = <
 			MX93_PAD_ENET2_MDC__ENET1_MDC			0x50e
 			MX93_PAD_ENET2_MDIO__ENET1_MDIO			0x502
-			MX93_PAD_ENET2_RD0__ENET1_RGMII_RD0		0x57e
-			MX93_PAD_ENET2_RD1__ENET1_RGMII_RD1		0x57e
-			MX93_PAD_ENET2_RXC__ENET1_RX_ER			0x5fe
+			/* the three pins below are connected to PHYs straps,
+			 * that is what the pull-up/down setting is for.
+			 */
+			MX93_PAD_ENET2_RD0__ENET1_RGMII_RD0		0x37e
+			MX93_PAD_ENET2_RD1__ENET1_RGMII_RD1		0x37e
 			MX93_PAD_ENET2_RX_CTL__ENET1_RGMII_RX_CTL	0x57e
 			MX93_PAD_ENET2_TD0__ENET1_RGMII_TD0		0x50e
 			MX93_PAD_ENET2_TD1__ENET1_RGMII_TD1		0x50e
 			MX93_PAD_ENET2_TX_CTL__ENET1_RGMII_TX_CTL	0x50e
 			MX93_PAD_ENET2_TD2__ENET1_TX_CLK		0x4000050e
+			MX93_PAD_ENET2_RXC__GPIO4_IO23			0x51e
 		>;
 	};
 
Signature · 1 line
2.43.0
Reviewed-by on v3 1/1
#1 lore raw

arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi mdio: mdio { · line 72

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi +2 -0
index 88c2657b50e6..b481097f08a4 100644
@@ -68,6 +68,8 @@ mdio: mdio {
 		ethphy1: ethernet-phy@1 {
 			compatible = "ethernet-phy-ieee802.3-c22";
 			reg = <1>;
+			reset-gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
+			reset-assert-us = <30>;

Is there anything in the datasheet about needing a delay after the reset? There is a DT property for this:

reset-deassert-us:
description:
Delay after the reset was deasserted in microseconds. If this property is missing the delay will be skipped.

Anyway:

Andrew

#2 lore raw

Hi Andrew,

Quoted 16 lines · Andrew Lunn

arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi mdio: mdio { · line 72

Quoted 11 lines
arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi +2 -0
index 88c2657b50e6..b481097f08a4 100644
@@ -68,6 +68,8 @@ mdio: mdio {
              ethphy1: ethernet-phy@1 {
                      compatible = "ethernet-phy-ieee802.3-c22";
                      reg = <1>;
+                     reset-gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
+                     reset-assert-us = <30>;

Is there anything in the datasheet about needing a delay after the reset? There is a DT property for this:

Quoted 4 lines

reset-deassert-us:
description:
Delay after the reset was deasserted in microseconds. If this property is missing the delay will be skipped.

No, there is no need for a delay after the reset mentioned in the datasheet. There is only the delay after the assert (i.E. the pulse width), that I declared with the property reset-assert-us.

Quoted 4 lines

Anyway:

Thanks, and regards,
Christoph

Quoted 2 lines

Andrew

#3 lore raw
In reply to Andrew Lunn

Hi Andrew,
hi Christoph

Am 24.05.25 um 19:44 schrieb Andrew Lunn:

Quoted 13 lines

arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi mdio: mdio { · line 72

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi +2 -0
index 88c2657b50e6..b481097f08a4 100644
@@ -68,6 +68,8 @@ mdio: mdio {
  		ethphy1: ethernet-phy@1 {
  			compatible = "ethernet-phy-ieee802.3-c22";
  			reg = <1>;
+			reset-gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
+			reset-assert-us = <30>;

Is there anything in the datasheet about needing a delay after the reset? There is a DT property for this:

Quoted 4 lines

reset-deassert-us:
description:
Delay after the reset was deasserted in microseconds. If this property is missing the delay will be skipped.

is it the time until the PHY finished its post reset stabilization (datasheet to call it T2 "reset to SMI ready")?

Quoted 7 lines

Anyway:

Andrew

#4 lore raw

Hi Stefan,

Quoted 18 lines · Stefan Wahren

Hi Andrew,
hi Christoph

Am 24.05.25 um 19:44 schrieb Andrew Lunn:

Quoted 14 lines

arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi mdio: mdio { · line 72

Quoted 11 lines
arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi +2 -0
index 88c2657b50e6..b481097f08a4 100644
@@ -68,6 +68,8 @@ mdio: mdio {
    ethphy1: ethernet-phy@1 {
    compatible = "ethernet-phy-ieee802.3-c22";
    reg = <1>;
+ reset-gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
+ reset-assert-us = <30>;

Is there anything in the datasheet about needing a delay after the reset? There is a DT property for this:

Quoted 6 lines
Quoted 4 lines

   reset-deassert-us:
     description:
       Delay after the reset was deasserted in microseconds. If this property is missing the delay will be skipped.

is it the time until the PHY finished its post reset stabilization (datasheet to call it T2 "reset to SMI ready")?

The T2 ("Post reset stabilization time") in the datasheet is the time "prior to MDC preamble for register access", that is defined with 2ms. I did not use reset-deassert-us for it, because the first register access does anyway occur much later (I measured 4000ms).

And we have the same for T4, the "Post power-up stabilization time". It is defined with a time of 50ms as "prior to MDC preamble for register access". But also here we just know, the register access happens much later - and treated it as enough.

Formally, this may be valid to specify the 2ms as reset-deassert-us. But since the first register access is so much later, I thought we can save those 2ms.

Are you fine with that?

Regards,
Christoph

Quoted 8 lines
Quoted 7 lines

Anyway:

     Andrew

#5 lore raw

Am 26.05.25 um 11:09 schrieb Christoph Stoidner:

Quoted 37 lines

Hi Stefan,

Quoted 18 lines · Stefan Wahren

Hi Andrew,
hi Christoph

Am 24.05.25 um 19:44 schrieb Andrew Lunn:

Quoted 14 lines

arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi mdio: mdio { · line 72

Quoted 11 lines
arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi +2 -0
index 88c2657b50e6..b481097f08a4 100644
@@ -68,6 +68,8 @@ mdio: mdio {
    ethphy1: ethernet-phy@1 {
    compatible = "ethernet-phy-ieee802.3-c22";
    reg = <1>;
+ reset-gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
+ reset-assert-us = <30>;

Is there anything in the datasheet about needing a delay after the reset? There is a DT property for this:

Quoted 6 lines
Quoted 4 lines

   reset-deassert-us:
     description:
       Delay after the reset was deasserted in microseconds. If this property is missing the delay will be skipped.

is it the time until the PHY finished its post reset stabilization (datasheet to call it T2 "reset to SMI ready")?

The T2 ("Post reset stabilization time") in the datasheet is the time "prior to MDC preamble for register access", that is defined with 2ms. I did not use reset-deassert-us for it, because the first register access does anyway occur much later (I measured 4000ms).

And we have the same for T4, the "Post power-up stabilization time". It is defined with a time of 50ms as "prior to MDC preamble for register access". But also here we just know, the register access happens much later - and treated it as enough.

Quoted 5 lines

Formally, this may be valid to specify the 2ms as reset-deassert-us. But since the first register access is so much later, I thought we can save those 2ms.

Are you fine with that?

I don't insist on an additional "reset-deassert-us". The question was more about understanding.

Quoted 11 lines

Regards,
Christoph

Quoted 6 lines
Quoted 6 lines

Anyway:

     Andrew

#6 lore raw
Quoted 51 lines · Stefan Wahren

Am 26.05.25 um 11:09 schrieb Christoph Stoidner:

Quoted 50 lines

Hi Stefan,

Quoted 20 lines · Stefan Wahren

Hi Andrew,
hi Christoph

Am 24.05.25 um 19:44 schrieb Andrew Lunn:

Quoted 16 lines

arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi mdio: mdio { · line 72

Quoted 12 lines
(quoted diff) +0 -0

som.dtsi b/arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi index 88c2657b50e6..b481097f08a4 100644

arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi +2 -0
@@ -68,6 +68,8 @@ mdio: mdio {
     ethphy1: ethernet-phy@1 {
     compatible = "ethernet-phy-ieee802.3-c22";
     reg = <1>;
+ reset-gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
+ reset-assert-us = <30>;

Is there anything in the datasheet about needing a delay after the
reset? There is a DT property for this:

Quoted 8 lines
Quoted 5 lines

    reset-deassert-us:
      description:
        Delay after the reset was deasserted in microseconds. If
        this property is missing the delay will be skipped.

is it the time until the PHY finished its post reset stabilization
(datasheet to call it T2 "reset to SMI ready")?

The T2 ("Post reset stabilization time") in the datasheet is the time
"prior to MDC preamble for register access", that is defined with 2ms.
I did not use reset-deassert-us for it, because the first register access does anyway occur much later (I measured 4000ms).

And we have the same for T4, the "Post power-up stabilization time".
It is defined with a time of 50ms as "prior to MDC preamble for register access". But also here we just know, the register access happens much later - and treated it as enough.

Formally, this may be valid to specify the 2ms as reset-deassert- us.
But since the first register access is so much later, I thought we can
save those 2ms.

Quoted 3 lines
Quoted 1 line

Are you fine with that?

I don't insist on an additional "reset-deassert-us". The question was more about understanding.

Great, thanks for thr feedback.

Quoted 12 lines
Quoted 11 lines

Regards,
Christoph

Quoted 6 lines
Quoted 6 lines

Anyway:

      Andrew

#7 lore raw

Am 26.05.25 um 12:04 schrieb Christoph Stoidner:

Quoted 33 lines · Stefan Wahren
Quoted 32 lines

Am 26.05.25 um 11:09 schrieb Christoph Stoidner:

Quoted 31 lines

Hi Stefan,

Quoted 28 lines · Stefan Wahren

Hi Andrew,
hi Christoph

Am 24.05.25 um 19:44 schrieb Andrew Lunn:

Quoted 16 lines

arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi mdio: mdio { · line 72

Quoted 12 lines
(quoted diff) +0 -0

som.dtsi b/arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi index 88c2657b50e6..b481097f08a4 100644

arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi +2 -0
@@ -68,6 +68,8 @@ mdio: mdio {
     ethphy1: ethernet-phy@1 {
     compatible = "ethernet-phy-ieee802.3-c22";
     reg = <1>;
+ reset-gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
+ reset-assert-us = <30>;

Is there anything in the datasheet about needing a delay after the
reset? There is a DT property for this:

Quoted 5 lines

    reset-deassert-us:
      description:
        Delay after the reset was deasserted in microseconds.
If
        this property is missing the delay will be skipped.

is it the time until the PHY finished its post reset stabilization
(datasheet to call it T2 "reset to SMI ready")?

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

The T2 ("Post reset stabilization time") in the datasheet is the time
"prior to MDC preamble for register access", that is defined with 2ms.
I did not use reset-deassert-us for it, because the first register access does anyway occur much later (I measured 4000ms).

Just to be sure, do you really mean 4000 milliseconds ?

Quoted 28 lines
Quoted 13 lines
Quoted 13 lines

And we have the same for T4, the "Post power-up stabilization time".
It is defined with a time of 50ms as "prior to MDC preamble for register access". But also here we just know, the register access happens much later - and treated it as enough.

Formally, this may be valid to specify the 2ms as reset-deassert- us.
But since the first register access is so much later, I thought we can
save those 2ms.

Quoted 3 lines
Quoted 1 line

Are you fine with that?

I don't insist on an additional "reset-deassert-us". The question was more about understanding.

Great, thanks for thr feedback.

Quoted 10 lines
Quoted 10 lines

Regards,
Christoph

Quoted 6 lines
Quoted 6 lines

Anyway:

      Andrew

#8 lore raw
Quoted 48 lines · Stefan Wahren

Am 26.05.25 um 12:04 schrieb Christoph Stoidner:

Quoted 38 lines · Stefan Wahren
Quoted 37 lines

Am 26.05.25 um 11:09 schrieb Christoph Stoidner:

Quoted 36 lines

Hi Stefan,

Quoted 33 lines · Stefan Wahren

Hi Andrew,
hi Christoph

Am 24.05.25 um 19:44 schrieb Andrew Lunn:

Quoted 19 lines
Quoted 9 lines
(quoted diff) +0 -0

som.dtsi b/arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi index 88c2657b50e6..b481097f08a4 100644
--- a/arch/arm64/boot/dts/freescale/imx93-phycore- som.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93-phycore- som.dtsi

Review mdio: mdio { · line 72

Quoted 5 lines
(quoted diff) +2 -0
@@ -68,6 +68,8 @@ mdio: mdio {
      ethphy1: ethernet-phy@1 {
      compatible = "ethernet-phy-ieee802.3-c22";
      reg = <1>;
+ reset-gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
+ reset-assert-us = <30>;

Is there anything in the datasheet about needing a delay after
the
reset? There is a DT property for this:

Quoted 7 lines

     reset-deassert-us:
       description:
         Delay after the reset was deasserted in microseconds.
If
         this property is missing the delay will be skipped.

is it the time until the PHY finished its post reset stabilization
(datasheet to call it T2 "reset to SMI ready")?

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

The T2 ("Post reset stabilization time") in the datasheet is the
time
"prior to MDC preamble for register access", that is defined with
2ms.
I did not use reset-deassert-us for it, because the first register
access does anyway occur much later (I measured 4000ms).

Quoted 2 lines

Just to be sure, do you really mean 4000 milliseconds ?

Yes, that's what I measured. For analysis, I added some debug outputs to
the phy reset and the 1st phy register access. And as I can see, the phy register access happens when userland sets up the network:

       [   1.723298] DEB-PHY: mdio reset exeucted
       ...
       ...
       ...
       [  OK  ] Started Network Configuration.
       [   5.792705] DEB-PHY: register access

The calculated delta of 4,069407 seconds fits to what I measured with the oscilloscope (4040ms).

Regards,
Christoph

Quoted 33 lines
Quoted 32 lines
Quoted 16 lines
Quoted 16 lines

And we have the same for T4, the "Post power-up stabilization time".
It is defined with a time of 50ms as "prior to MDC preamble for register access". But also here we just know, the register access
happens much later - and treated it as enough.

Formally, this may be valid to specify the 2ms as reset- deassert-
us.
But since the first register access is so much later, I thought we
can
save those 2ms.

Quoted 4 lines
Quoted 1 line

Are you fine with that?

I don't insist on an additional "reset-deassert-us". The question was
more about understanding.

Great, thanks for thr feedback.

Quoted 10 lines
Quoted 10 lines

Regards,
Christoph

Quoted 6 lines
Quoted 6 lines

Anyway:

       Andrew

#9 lore raw
Quoted 4 lines

Yes, that's what I measured. For analysis, I added some debug outputs to
the phy reset and the 1st phy register access. And as I can see, the phy register access happens when userland sets up the network:

Please repeat the measurements with NFS root.

You will find that the kernel brings the interface up right have register_netdev() is called, and starts transmitting. It can happen before register_netdev() even returns.

Andrew

#10 lore raw
Quoted 7 lines · Andrew Lunn
Quoted 6 lines

Yes, that's what I measured. For analysis, I added some debug outputs
to
the phy reset and the 1st phy register access. And as I can see, the
phy register access happens when userland sets up the network:

Quoted 5 lines

Please repeat the measurements with NFS root.

You will find that the kernel brings the interface up right have register_netdev() is called, and starts transmitting. It can happen before register_netdev() even returns.

Thanks for that hint. As you said, with nfs root the register access happens much earlier. I measured:

       [   1.713185] DEB-PHY: mdio reset exeucted
       ...
       ...
       ...
       [   2.672892] DEB-PHY: register access

However, the delta time of 0.959707s (9597ms) still meets the T2 ("prior to MDC preamble for register access") that is defined in the PHY's datasheet with 2ms.

Seems to be fine from my point of view.

Regards,
Christoph

Quoted 2 lines

 Andrew

#11 lore raw
Quoted 25 lines · Christoph Stoidner
Quoted 7 lines · Andrew Lunn
Quoted 6 lines

Yes, that's what I measured. For analysis, I added some debug outputs
to
the phy reset and the 1st phy register access. And as I can see, the
phy register access happens when userland sets up the network:

Quoted 5 lines

Please repeat the measurements with NFS root.

You will find that the kernel brings the interface up right have register_netdev() is called, and starts transmitting. It can happen before register_netdev() even returns.

Thanks for that hint. As you said, with nfs root the register access happens much earlier. I measured:

       [   1.713185] DEB-PHY: mdio reset exeucted
       ...
       ...
       ...
       [   2.672892] DEB-PHY: register access
Quoted 3 lines

However, the delta time of 0.959707s (9597ms) still meets the T2 ("prior to MDC preamble for register access") that is defined in the PHY's datasheet with 2ms.

I agree it is long enough, but i'm also surprised how slow the kernel was. Are you using a fixed IP address, or dhcp?

Andrew

#12 lore raw

Hi Andrew,

Quoted 29 lines · Andrew Lunn
Quoted 28 lines · Christoph Stoidner
Quoted 8 lines · Andrew Lunn
Quoted 7 lines

Yes, that's what I measured. For analysis, I added some debug outputs
to
the phy reset and the 1st phy register access. And as I can see,
the
phy register access happens when userland sets up the network:

Quoted 6 lines

Please repeat the measurements with NFS root.

You will find that the kernel brings the interface up right have register_netdev() is called, and starts transmitting. It can happen
before register_netdev() even returns.

Thanks for that hint. As you said, with nfs root the register access
happens much earlier. I measured:

       [   1.713185] DEB-PHY: mdio reset exeucted
       ...
       ...
       ...
       [   2.672892] DEB-PHY: register access

Quoted 7 lines
Quoted 4 lines

However, the delta time of 0.959707s (9597ms) still meets the T2 ("prior to MDC preamble for register access") that is defined in the
PHY's datasheet with 2ms.

I agree it is long enough, but i'm also surprised how slow the kernel was. Are you using a fixed IP address, or dhcp?

I use a fixed IP address.

But isn't the bringup of ethernet+phy interface one of the last things that happens during the kernel boot-up?

When I boot my system from sd-card, I can see that mounting the rootfs on the sdcard occurs at about 2500ms after kernel start:

      [    0.000000] Booting Linux on physical CPU 0x0000000000 ...
                ...
                ...
                ...
      [    2.538013] EXT4-fs (mmcblk1p2): mounted filesystem a500e519-
d77b-471c-8215-e4f51236aaaa r/w with ordered data mode. Quota mode:
none.
      [    2.550189] VFS: Mounted root (ext4 filesystem) on device
179:98.
      [    2.556871] devtmpfs: mounted
      [    2.562733] Freeing unused kernel memory: 4032K

And thats very near to what I saw with NFS root (to remember: 2672ms from kernel start). So I feel that patch itself and its corresponding measured timings are valid.

However, what timing would you expect?

Thanks,
Christoph

Quoted 2 lines

 Andrew

#13 lore raw
Quoted 7 lines
Quoted 2 lines

I agree it is long enough, but i'm also surprised how slow the kernel was. Are you using a fixed IP address, or dhcp?

I use a fixed IP address.

But isn't the bringup of ethernet+phy interface one of the last things that happens during the kernel boot-up?

Mounting the rootfs is somewhat towards the end of the core kernel. But if you have an initramfs, there can be modules loaded both before and afterwards, and once the rootfs has been mounted, yet more modules can be loaded.

Quoted 1 line

However, what timing would you expect?

I've seen interfaces configured up from deep within register_netdev(). I don't remember the exact configuration, but i thought it was NFS root. It might be in combination with initramfs. If you have the Ethernet driver as a module in the initramfs, and are using the "rootwait" option, it could be that you are already past the point it would first mount the rootfs, and with every new device popping into existence it is trying to see if the just created device allows it to do the mount. At that point, register_netdev() is going to trigger actions.

Andrew

#14 lore raw

Hi all,

is there something holding up this patch?

BR,
Primoz

Quoted 29 lines · Andrew Lunn
Quoted 7 lines
Quoted 2 lines

I agree it is long enough, but i'm also surprised how slow the kernel was. Are you using a fixed IP address, or dhcp?

I use a fixed IP address.

But isn't the bringup of ethernet+phy interface one of the last things that happens during the kernel boot-up?

Mounting the rootfs is somewhat towards the end of the core kernel. But if you have an initramfs, there can be modules loaded both before and afterwards, and once the rootfs has been mounted, yet more modules can be loaded.

Quoted 1 line

However, what timing would you expect?

I've seen interfaces configured up from deep within register_netdev(). I don't remember the exact configuration, but i thought it was NFS root. It might be in combination with initramfs. If you have the Ethernet driver as a module in the initramfs, and are using the "rootwait" option, it could be that you are already past the point it would first mount the rootfs, and with every new device popping into existence it is trying to see if the just created device allows it to do the mount. At that point, register_netdev() is going to trigger actions.

Andrew
_______________________________________________
upstream mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Signature · 9 lines
Primoz Fiser
phone: +386-41-390-545
email: [email protected]
--
Norik systems d.o.o.
Your embedded software partner
Slovenia, EU
phone: +386-41-540-545
email: [email protected]
#15 lore raw
Quoted 3 lines · Primoz Fiser

Hi all,

is there something holding up this patch?

I dont see any blocker.
@Maintainers: If there is any missing/blocking point, could you please comment.

Thanks,
Christoph

Quoted 43 lines

BR,
Primoz

Quoted 37 lines · Andrew Lunn
Quoted 9 lines
Quoted 3 lines

I agree it is long enough, but i'm also surprised how slow the kernel
was. Are you using a fixed IP address, or dhcp?

I use a fixed IP address.

But isn't the bringup of ethernet+phy interface one of the last things
that happens during the kernel boot-up?

Mounting the rootfs is somewhat towards the end of the core kernel. But if you have an initramfs, there can be modules loaded both
before and afterwards, and once the rootfs has been mounted, yet more
modules can be loaded.

Quoted 1 line

However, what timing would you expect?

I've seen interfaces configured up from deep within register_netdev(). I don't remember the exact configuration, but i thought it was NFS root. It might be in combination with initramfs. If
you have the Ethernet driver as a module in the initramfs, and are using the "rootwait" option, it could be that you are already past the
point it would first mount the rootfs, and with every new device popping into existence it is trying to see if the just created device
allows it to do the mount. At that point, register_netdev() is going
to trigger actions.

 Andrew
_______________________________________________
upstream mailing list -- [email protected]
To unsubscribe send an email to [email protected]

#16 lore raw
Quoted 8 lines · Christoph Stoidner
Quoted 3 lines · Primoz Fiser

Hi all,

is there something holding up this patch?

I dont see any blocker.
@Maintainers: If there is any missing/blocking point, could you please comment.

This _might_ be broken for NFS root. But that can be fixed when somebody actually has a problem with it.

Andrew

#17 lore raw
In reply to Christoph Stoidner

Hello Shawn,

sorry for bothering.

Can you tell me if there's anything missing or wrong with this patch, or if there's anything else I can do so that it becomes applied?

Thanks and regards,
Christoph

Quoted 63 lines · Christoph Stoidner
Quoted 3 lines · Primoz Fiser

Hi all,

is there something holding up this patch?

I dont see any blocker.
@Maintainers: If there is any missing/blocking point, could you please comment.

Thanks,
Christoph

Quoted 48 lines

BR,
Primoz

Quoted 42 lines · Andrew Lunn
Quoted 10 lines
Quoted 4 lines

I agree it is long enough, but i'm also surprised how slow the
kernel
was. Are you using a fixed IP address, or dhcp?

I use a fixed IP address.

But isn't the bringup of ethernet+phy interface one of the last things
that happens during the kernel boot-up?

Mounting the rootfs is somewhat towards the end of the core kernel. But if you have an initramfs, there can be modules loaded both
before and afterwards, and once the rootfs has been mounted, yet more
modules can be loaded.

Quoted 1 line

However, what timing would you expect?

I've seen interfaces configured up from deep within register_netdev(). I don't remember the exact configuration, but i
thought it was NFS root. It might be in combination with initramfs.
If
you have the Ethernet driver as a module in the initramfs, and are
using the "rootwait" option, it could be that you are already past
the
point it would first mount the rootfs, and with every new device popping into existence it is trying to see if the just created device
allows it to do the mount. At that point, register_netdev() is going
to trigger actions.

 Andrew
_______________________________________________
upstream mailing list -- [email protected]
To unsubscribe send an email to [email protected]

_______________________________________________
upstream mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Applied
#18 lore raw
In reply to Christoph Stoidner
Quoted 4 lines · Christoph Stoidner

According to the datasheet the phy needs to be held in reset until the reference clock got stable. Even though no issue was observed, fix this as the software should always comply with the specification.

Quoted 8 lines

Use gpio4 23, which is connected to the phy reset pin. On the same pin RX_ER was used before, but this signal is optional and can be dropped.

Note: This comes into effect with the phyCOREs SOM hardware revision 4. In revisions before, this gpio is not connected, and the phy reset is managed with the global hardware reset circuit.

Applied, thanks!