diff mbox series

ARM: dts: colibri-imx6ull: fix mac address passing

Message ID 20210923075521.553577-1-francesco.dolcini@toradex.com
State Accepted
Commit 182887735c16aaa2139517b60c1b8dbc62cedef1
Delegated to: Tom Rini
Headers show
Series ARM: dts: colibri-imx6ull: fix mac address passing | expand

Commit Message

Francesco Dolcini Sept. 23, 2021, 7:55 a.m. UTC
colibri-imx6ull ethernet device is fec2, while the optional secondary
ethernet is fec1, update the ethernet aliases in the .dts file so that
ethaddr is set to fec2 and eth1addr to fec1.

Without this change the ethernet interfaces have a different
mac address between Linux and U-Boot.

Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>

---

 arch/arm/dts/imx6ull-colibri.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Tom Rini Sept. 23, 2021, 11:36 a.m. UTC | #1
On Thu, Sep 23, 2021 at 09:55:21AM +0200, Francesco Dolcini wrote:

> colibri-imx6ull ethernet device is fec2, while the optional secondary
> ethernet is fec1, update the ethernet aliases in the .dts file so that
> ethaddr is set to fec2 and eth1addr to fec1.
> 
> Without this change the ethernet interfaces have a different
> mac address between Linux and U-Boot.
> 
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> 
> ---
> 
>  arch/arm/dts/imx6ull-colibri.dtsi | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/dts/imx6ull-colibri.dtsi b/arch/arm/dts/imx6ull-colibri.dtsi
> index b7bf79f28c..104207be97 100644
> --- a/arch/arm/dts/imx6ull-colibri.dtsi
> +++ b/arch/arm/dts/imx6ull-colibri.dtsi
> @@ -8,6 +8,12 @@
>  #include "imx6ull.dtsi"
>  
>  / {
> +	/* Ethernet aliases to ensure correct MAC addresses */
> +	aliases {
> +		ethernet0 = &fec2;
> +		ethernet1 = &fec1;
> +	};
> +
>  	chosen {
>  		stdout-path = &uart1;
>  	};

The main dts* files aren't supposed to change between U-Boot and Linux.
Is this re-syncing the file with current upstream then?  Thanks.
Francesco Dolcini Sept. 23, 2021, 11:50 a.m. UTC | #2
On Thu, Sep 23, 2021 at 07:36:34AM -0400, Tom Rini wrote:
> On Thu, Sep 23, 2021 at 09:55:21AM +0200, Francesco Dolcini wrote:
> 
> > colibri-imx6ull ethernet device is fec2, while the optional secondary
> > ethernet is fec1, update the ethernet aliases in the .dts file so that
> > ethaddr is set to fec2 and eth1addr to fec1.
> > 
> > Without this change the ethernet interfaces have a different
> > mac address between Linux and U-Boot.
> > 
> > Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> > 
> > ---
> > 
> >  arch/arm/dts/imx6ull-colibri.dtsi | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/arch/arm/dts/imx6ull-colibri.dtsi b/arch/arm/dts/imx6ull-colibri.dtsi
> > index b7bf79f28c..104207be97 100644
> > --- a/arch/arm/dts/imx6ull-colibri.dtsi
> > +++ b/arch/arm/dts/imx6ull-colibri.dtsi
> > @@ -8,6 +8,12 @@
> >  #include "imx6ull.dtsi"
> >  
> >  / {
> > +	/* Ethernet aliases to ensure correct MAC addresses */
> > +	aliases {
> > +		ethernet0 = &fec2;
> > +		ethernet1 = &fec1;
> > +	};
> > +
> >  	chosen {
> >  		stdout-path = &uart1;
> >  	};
> 
> The main dts* files aren't supposed to change between U-Boot and Linux.
> Is this re-syncing the file with current upstream then?  Thanks.

Currently they are out of sync, correct, and because of this difference on the
ethernet aliases we have the situation in which the MAC address assigned to the
ethernet interfaces is different between Linux an U-Boot.

There are other differences that this patchset is not trying to address and
that are not causing any known issues.

Francesco
Tom Rini Sept. 23, 2021, 11:57 a.m. UTC | #3
On Thu, Sep 23, 2021 at 01:50:41PM +0200, Francesco Dolcini wrote:
> On Thu, Sep 23, 2021 at 07:36:34AM -0400, Tom Rini wrote:
> > On Thu, Sep 23, 2021 at 09:55:21AM +0200, Francesco Dolcini wrote:
> > 
> > > colibri-imx6ull ethernet device is fec2, while the optional secondary
> > > ethernet is fec1, update the ethernet aliases in the .dts file so that
> > > ethaddr is set to fec2 and eth1addr to fec1.
> > > 
> > > Without this change the ethernet interfaces have a different
> > > mac address between Linux and U-Boot.
> > > 
> > > Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> > > 
> > > ---
> > > 
> > >  arch/arm/dts/imx6ull-colibri.dtsi | 6 ++++++
> > >  1 file changed, 6 insertions(+)
> > > 
> > > diff --git a/arch/arm/dts/imx6ull-colibri.dtsi b/arch/arm/dts/imx6ull-colibri.dtsi
> > > index b7bf79f28c..104207be97 100644
> > > --- a/arch/arm/dts/imx6ull-colibri.dtsi
> > > +++ b/arch/arm/dts/imx6ull-colibri.dtsi
> > > @@ -8,6 +8,12 @@
> > >  #include "imx6ull.dtsi"
> > >  
> > >  / {
> > > +	/* Ethernet aliases to ensure correct MAC addresses */
> > > +	aliases {
> > > +		ethernet0 = &fec2;
> > > +		ethernet1 = &fec1;
> > > +	};
> > > +
> > >  	chosen {
> > >  		stdout-path = &uart1;
> > >  	};
> > 
> > The main dts* files aren't supposed to change between U-Boot and Linux.
> > Is this re-syncing the file with current upstream then?  Thanks.
> 
> Currently they are out of sync, correct, and because of this difference on the
> ethernet aliases we have the situation in which the MAC address assigned to the
> ethernet interfaces is different between Linux an U-Boot.

OK, we can take this now as an important bugfix.

> There are other differences that this patchset is not trying to address and
> that are not causing any known issues.

Please plan to sync the trees up for the next merge window, they are not
supposed to stay out of sync.  Thanks.
Marcel Ziswiler Feb. 4, 2022, 5:41 p.m. UTC | #4
Hi guys

On Thu, 2021-09-23 at 07:57 -0400, Tom Rini wrote:
> On Thu, Sep 23, 2021 at 01:50:41PM +0200, Francesco Dolcini wrote:
> > On Thu, Sep 23, 2021 at 07:36:34AM -0400, Tom Rini wrote:
> > > On Thu, Sep 23, 2021 at 09:55:21AM +0200, Francesco Dolcini wrote:
> > > 
> > > > colibri-imx6ull ethernet device is fec2, while the optional secondary
> > > > ethernet is fec1, update the ethernet aliases in the .dts file so that
> > > > ethaddr is set to fec2 and eth1addr to fec1.
> > > > 
> > > > Without this change the ethernet interfaces have a different
> > > > mac address between Linux and U-Boot.
> > > > 
> > > > Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> > > > 
> > > > ---
> > > > 
> > > >  arch/arm/dts/imx6ull-colibri.dtsi | 6 ++++++
> > > >  1 file changed, 6 insertions(+)
> > > > 
> > > > diff --git a/arch/arm/dts/imx6ull-colibri.dtsi b/arch/arm/dts/imx6ull-colibri.dtsi
> > > > index b7bf79f28c..104207be97 100644
> > > > --- a/arch/arm/dts/imx6ull-colibri.dtsi
> > > > +++ b/arch/arm/dts/imx6ull-colibri.dtsi
> > > > @@ -8,6 +8,12 @@
> > > >  #include "imx6ull.dtsi"
> > > >  
> > > >  / {
> > > > +       /* Ethernet aliases to ensure correct MAC addresses */
> > > > +       aliases {
> > > > +               ethernet0 = &fec2;
> > > > +               ethernet1 = &fec1;
> > > > +       };
> > > > +
> > > >         chosen {
> > > >                 stdout-path = &uart1;
> > > >         };
> > > 
> > > The main dts* files aren't supposed to change between U-Boot and Linux.
> > > Is this re-syncing the file with current upstream then?  Thanks.
> > 
> > Currently they are out of sync, correct, and because of this difference on the
> > ethernet aliases we have the situation in which the MAC address assigned to the
> > ethernet interfaces is different between Linux an U-Boot.
> 
> OK, we can take this now as an important bugfix.

Any progress in applying this patch?

I just applied it again on today's master and it still cleanly applies.

> > There are other differences that this patchset is not trying to address and
> > that are not causing any known issues.
> 
> Please plan to sync the trees up for the next merge window, they are not
> supposed to stay out of sync.  Thanks.

Yes, we are in the process of doing that. Thanks!

Cheers

Marcel
Fabio Estevam Feb. 4, 2022, 5:55 p.m. UTC | #5
On Thu, Sep 23, 2021 at 4:55 AM Francesco Dolcini
<francesco.dolcini@toradex.com> wrote:
>
> colibri-imx6ull ethernet device is fec2, while the optional secondary
> ethernet is fec1, update the ethernet aliases in the .dts file so that
> ethaddr is set to fec2 and eth1addr to fec1.
>
> Without this change the ethernet interfaces have a different
> mac address between Linux and U-Boot.
>
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Marcel Ziswiler April 1, 2022, 12:57 p.m. UTC | #6
May I inquire about the status of this one? Thanks!

On Fri, 2022-02-04 at 14:55 -0300, Fabio Estevam wrote:
> On Thu, Sep 23, 2021 at 4:55 AM Francesco Dolcini
> <francesco.dolcini@toradex.com> wrote:
> > 
> > colibri-imx6ull ethernet device is fec2, while the optional secondary
> > ethernet is fec1, update the ethernet aliases in the .dts file so that
> > ethaddr is set to fec2 and eth1addr to fec1.
> > 
> > Without this change the ethernet interfaces have a different
> > mac address between Linux and U-Boot.
> > 
> > Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> 
> Reviewed-by: Fabio Estevam <festevam@gmail.com>
Tom Rini April 1, 2022, 1:43 p.m. UTC | #7
On Fri, Apr 01, 2022 at 12:57:40PM +0000, Marcel Ziswiler wrote:

> May I inquire about the status of this one? Thanks!

Should I take it for this release?

> 
> On Fri, 2022-02-04 at 14:55 -0300, Fabio Estevam wrote:
> > On Thu, Sep 23, 2021 at 4:55 AM Francesco Dolcini
> > <francesco.dolcini@toradex.com> wrote:
> > > 
> > > colibri-imx6ull ethernet device is fec2, while the optional secondary
> > > ethernet is fec1, update the ethernet aliases in the .dts file so that
> > > ethaddr is set to fec2 and eth1addr to fec1.
> > > 
> > > Without this change the ethernet interfaces have a different
> > > mac address between Linux and U-Boot.
> > > 
> > > Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> > 
> > Reviewed-by: Fabio Estevam <festevam@gmail.com>
Marcel Ziswiler April 1, 2022, 2:01 p.m. UTC | #8
On Fri, 2022-04-01 at 09:43 -0400, Tom Rini wrote:
> On Fri, Apr 01, 2022 at 12:57:40PM +0000, Marcel Ziswiler wrote:
> 
> > May I inquire about the status of this one? Thanks!
> 
> Should I take it for this release?

Yes, please. Thanks!

> > On Fri, 2022-02-04 at 14:55 -0300, Fabio Estevam wrote:
> > > On Thu, Sep 23, 2021 at 4:55 AM Francesco Dolcini
> > > <francesco.dolcini@toradex.com> wrote:
> > > > 
> > > > colibri-imx6ull ethernet device is fec2, while the optional secondary
> > > > ethernet is fec1, update the ethernet aliases in the .dts file so that
> > > > ethaddr is set to fec2 and eth1addr to fec1.
> > > > 
> > > > Without this change the ethernet interfaces have a different
> > > > mac address between Linux and U-Boot.
> > > > 
> > > > Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> > > 
> > > Reviewed-by: Fabio Estevam <festevam@gmail.com>
Tom Rini April 1, 2022, 2:02 p.m. UTC | #9
On Fri, Apr 01, 2022 at 02:01:25PM +0000, Marcel Ziswiler wrote:
> On Fri, 2022-04-01 at 09:43 -0400, Tom Rini wrote:
> > On Fri, Apr 01, 2022 at 12:57:40PM +0000, Marcel Ziswiler wrote:
> > 
> > > May I inquire about the status of this one? Thanks!
> > 
> > Should I take it for this release?
> 
> Yes, please. Thanks!

Will do.  Any other toradex platform fixes?

> 
> > > On Fri, 2022-02-04 at 14:55 -0300, Fabio Estevam wrote:
> > > > On Thu, Sep 23, 2021 at 4:55 AM Francesco Dolcini
> > > > <francesco.dolcini@toradex.com> wrote:
> > > > > 
> > > > > colibri-imx6ull ethernet device is fec2, while the optional secondary
> > > > > ethernet is fec1, update the ethernet aliases in the .dts file so that
> > > > > ethaddr is set to fec2 and eth1addr to fec1.
> > > > > 
> > > > > Without this change the ethernet interfaces have a different
> > > > > mac address between Linux and U-Boot.
> > > > > 
> > > > > Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> > > > 
> > > > Reviewed-by: Fabio Estevam <festevam@gmail.com>
Tom Rini April 1, 2022, 2:04 p.m. UTC | #10
On Fri, Apr 01, 2022 at 02:01:25PM +0000, Marcel Ziswiler wrote:
> On Fri, 2022-04-01 at 09:43 -0400, Tom Rini wrote:
> > On Fri, Apr 01, 2022 at 12:57:40PM +0000, Marcel Ziswiler wrote:
> > 
> > > May I inquire about the status of this one? Thanks!
> > 
> > Should I take it for this release?
> 
> Yes, please. Thanks!

And, re-reading the whole thread in patchwork, I'm going to assume /
hope for a full dts resync for the next merge window.
Francesco Dolcini April 1, 2022, 2:05 p.m. UTC | #11
On Fri, Apr 01, 2022 at 10:04:04AM -0400, Tom Rini wrote:
> On Fri, Apr 01, 2022 at 02:01:25PM +0000, Marcel Ziswiler wrote:
> > On Fri, 2022-04-01 at 09:43 -0400, Tom Rini wrote:
> > > On Fri, Apr 01, 2022 at 12:57:40PM +0000, Marcel Ziswiler wrote:
> > > 
> > > > May I inquire about the status of this one? Thanks!
> > > 
> > > Should I take it for this release?
> > 
> > Yes, please. Thanks!
> 
> And, re-reading the whole thread in patchwork, I'm going to assume /
> hope for a full dts resync for the next merge window.

We are in process to update the Linux kernel DTS files now, as soon as
this is done we will do the sync. Doing it now would not make sense.

Francesco
Tom Rini April 1, 2022, 2:28 p.m. UTC | #12
On Thu, Sep 23, 2021 at 09:55:21AM +0200, Francesco Dolcini wrote:

> colibri-imx6ull ethernet device is fec2, while the optional secondary
> ethernet is fec1, update the ethernet aliases in the .dts file so that
> ethaddr is set to fec2 and eth1addr to fec1.
> 
> Without this change the ethernet interfaces have a different
> mac address between Linux and U-Boot.
> 
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> Reviewed-by: Fabio Estevam <festevam@gmail.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/arm/dts/imx6ull-colibri.dtsi b/arch/arm/dts/imx6ull-colibri.dtsi
index b7bf79f28c..104207be97 100644
--- a/arch/arm/dts/imx6ull-colibri.dtsi
+++ b/arch/arm/dts/imx6ull-colibri.dtsi
@@ -8,6 +8,12 @@ 
 #include "imx6ull.dtsi"
 
 / {
+	/* Ethernet aliases to ensure correct MAC addresses */
+	aliases {
+		ethernet0 = &fec2;
+		ethernet1 = &fec1;
+	};
+
 	chosen {
 		stdout-path = &uart1;
 	};