diff mbox series

ARM: dts: cygnus: add ethernet0 alias

Message ID 20180503095618.2312-1-peron.clem@gmail.com
State New
Headers show
Series ARM: dts: cygnus: add ethernet0 alias | expand

Commit Message

Clément Péron May 3, 2018, 9:56 a.m. UTC
In order to avoid Linux generating a random mac address on every boot,
add an ethernet0 alias that will allow u-boot to patch the dtb with
the MAC address.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
---
 arch/arm/boot/dts/bcm-cygnus.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Florian Fainelli May 3, 2018, 3:13 p.m. UTC | #1
+Ray, Scott, Eric, list

On 05/03/2018 02:56 AM, Clément Péron wrote:
> In order to avoid Linux generating a random mac address on every boot,
> add an ethernet0 alias that will allow u-boot to patch the dtb with
> the MAC address.
> 
> Signed-off-by: Clément Péron <peron.clem@gmail.com>
> ---
>  arch/arm/boot/dts/bcm-cygnus.dtsi | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi
> index 9fe4f5a6379e..1a05b8f48b54 100644
> --- a/arch/arm/boot/dts/bcm-cygnus.dtsi
> +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi
> @@ -41,6 +41,10 @@
>  	model = "Broadcom Cygnus SoC";
>  	interrupt-parent = <&gic>;
>  
> +	aliases {
> +		ethernet0 = &eth0;
> +	};
> +
>  	cpus {
>  		#address-cells = <1>;
>  		#size-cells = <0>;
>
Clément Péron May 28, 2018, 8:22 a.m. UTC | #2
Could you review it, please.
Thanks

On Thu, 3 May 2018 at 17:13, Florian Fainelli <f.fainelli@gmail.com> wrote:

> +Ray, Scott, Eric, list

> On 05/03/2018 02:56 AM, Clément Péron wrote:
> > In order to avoid Linux generating a random mac address on every boot,
> > add an ethernet0 alias that will allow u-boot to patch the dtb with
> > the MAC address.
> >
> > Signed-off-by: Clément Péron <peron.clem@gmail.com>
> > ---
> >  arch/arm/boot/dts/bcm-cygnus.dtsi | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi
b/arch/arm/boot/dts/bcm-cygnus.dtsi
> > index 9fe4f5a6379e..1a05b8f48b54 100644
> > --- a/arch/arm/boot/dts/bcm-cygnus.dtsi
> > +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi
> > @@ -41,6 +41,10 @@
> >       model = "Broadcom Cygnus SoC";
> >       interrupt-parent = <&gic>;
> >
> > +     aliases {
> > +             ethernet0 = &eth0;
> > +     };
> > +
> >       cpus {
> >               #address-cells = <1>;
> >               #size-cells = <0>;
> >

> --
> Florian

Clement
Scott Branden May 28, 2018, 7:22 p.m. UTC | #3
On 18-05-28 01:22 AM, Clément Péron wrote:
> Could you review it, please.
> Thanks
>
> On Thu, 3 May 2018 at 17:13, Florian Fainelli <f.fainelli@gmail.com> wrote:
>
>> +Ray, Scott, Eric, list
>> On 05/03/2018 02:56 AM, Clément Péron wrote:
>>> In order to avoid Linux generating a random mac address on every boot,
>>> add an ethernet0 alias that will allow u-boot to patch the dtb with
>>> the MAC address.
>>>
>>> Signed-off-by: Clément Péron <peron.clem@gmail.com>
Acked-by: Scott Branden <scott.branden@broadcom.com>
>>> ---
>>>   arch/arm/boot/dts/bcm-cygnus.dtsi | 4 ++++
>>>   1 file changed, 4 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi
> b/arch/arm/boot/dts/bcm-cygnus.dtsi
>>> index 9fe4f5a6379e..1a05b8f48b54 100644
>>> --- a/arch/arm/boot/dts/bcm-cygnus.dtsi
>>> +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi
>>> @@ -41,6 +41,10 @@
>>>        model = "Broadcom Cygnus SoC";
>>>        interrupt-parent = <&gic>;
>>>
>>> +     aliases {
>>> +             ethernet0 = &eth0;
>>> +     };
>>> +
>>>        cpus {
>>>                #address-cells = <1>;
>>>                #size-cells = <0>;
>>>
>> --
>> Florian
> Clement
Florian Fainelli June 4, 2018, 9:43 p.m. UTC | #4
On 05/03/2018 02:56 AM, Clément Péron wrote:
> In order to avoid Linux generating a random mac address on every boot,
> add an ethernet0 alias that will allow u-boot to patch the dtb with
> the MAC address.
> 
> Signed-off-by: Clément Péron <peron.clem@gmail.com>

Applied to devicetree/next, thanks. Next time, please do include the
proper mailing-lists, that way it does not escape my workflow involving
patchwork behind bcm-kernel-feedback-list@broadcom.com. Thank you
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi
index 9fe4f5a6379e..1a05b8f48b54 100644
--- a/arch/arm/boot/dts/bcm-cygnus.dtsi
+++ b/arch/arm/boot/dts/bcm-cygnus.dtsi
@@ -41,6 +41,10 @@ 
 	model = "Broadcom Cygnus SoC";
 	interrupt-parent = <&gic>;
 
+	aliases {
+		ethernet0 = &eth0;
+	};
+
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;