From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/6] ARM: dts: hix5hd2: add gmac node
Date: Wed, 27 Aug 2014 16:04:09 +0100 [thread overview]
Message-ID: <20140827150409.GC9737@leverpostej> (raw)
In-Reply-To: <53FDF2CC.8080302@linaro.org>
On Wed, Aug 27, 2014 at 04:01:32PM +0100, zhangfei wrote:
>
>
> On 08/27/2014 10:54 PM, Mark Rutland wrote:
> > On Wed, Aug 27, 2014 at 01:38:29PM +0100, Zhangfei Gao wrote:
> >> Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
> >> ---
> >> arch/arm/boot/dts/hisi-x5hd2-dkb.dts | 26 ++++++++++++++++++++++++++
> >> arch/arm/boot/dts/hisi-x5hd2.dtsi | 16 ++++++++++++++++
> >> 2 files changed, 42 insertions(+)
> >>
> >> diff --git a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts
> >> index 05b44c2..0344de0 100644
> >> --- a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts
> >> +++ b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts
> >> @@ -51,3 +51,29 @@
> >> &uart0 {
> >> status = "okay";
> >> };
> >> +
> >> +&gmac0 {
> >> + #address-cells = <1>;
> >> + #size-cells = <0>;
> >> + phy-handle = <&phy2>;
> >> + phy-mode = "mii";
> >> + mac-address = [00 00 00 00 00 00];
> >
> > If this is just so space is pre-allocated for the bootloader to patch
> > this, please place a comment to that effect.
> >
> > Otherwise that doesn't look right.
>
> Yes, it is placeholder, bootloader will overwrite field.
>
> Also net driver will use random address if if not valid addr.
> if (!is_valid_ether_addr(ndev->dev_addr))
> eth_hw_addr_random(ndev);
Sure. All I'm asking for is to have something like:
/* Placeholder, overwritten by bootloader */
mac-address = [00 00 00 00 00 00];
Cheers,
Mark.
WARNING: multiple messages have this Message-ID (diff)
From: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
To: zhangfei <zhangfei.gao-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: "haojian.zhuang-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org"
<haojian.zhuang-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
"haifeng.yan-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org"
<haifeng.yan-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
"jchxue-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<jchxue-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"xuwei5-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org"
<xuwei5-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 1/6] ARM: dts: hix5hd2: add gmac node
Date: Wed, 27 Aug 2014 16:04:09 +0100 [thread overview]
Message-ID: <20140827150409.GC9737@leverpostej> (raw)
In-Reply-To: <53FDF2CC.8080302-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
On Wed, Aug 27, 2014 at 04:01:32PM +0100, zhangfei wrote:
>
>
> On 08/27/2014 10:54 PM, Mark Rutland wrote:
> > On Wed, Aug 27, 2014 at 01:38:29PM +0100, Zhangfei Gao wrote:
> >> Signed-off-by: Zhangfei Gao <zhangfei.gao-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> >> ---
> >> arch/arm/boot/dts/hisi-x5hd2-dkb.dts | 26 ++++++++++++++++++++++++++
> >> arch/arm/boot/dts/hisi-x5hd2.dtsi | 16 ++++++++++++++++
> >> 2 files changed, 42 insertions(+)
> >>
> >> diff --git a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts
> >> index 05b44c2..0344de0 100644
> >> --- a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts
> >> +++ b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts
> >> @@ -51,3 +51,29 @@
> >> &uart0 {
> >> status = "okay";
> >> };
> >> +
> >> +&gmac0 {
> >> + #address-cells = <1>;
> >> + #size-cells = <0>;
> >> + phy-handle = <&phy2>;
> >> + phy-mode = "mii";
> >> + mac-address = [00 00 00 00 00 00];
> >
> > If this is just so space is pre-allocated for the bootloader to patch
> > this, please place a comment to that effect.
> >
> > Otherwise that doesn't look right.
>
> Yes, it is placeholder, bootloader will overwrite field.
>
> Also net driver will use random address if if not valid addr.
> if (!is_valid_ether_addr(ndev->dev_addr))
> eth_hw_addr_random(ndev);
Sure. All I'm asking for is to have something like:
/* Placeholder, overwritten by bootloader */
mac-address = [00 00 00 00 00 00];
Cheers,
Mark.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-08-27 15:04 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 12:38 [PATCH 0/6] hix5hd2 add some nodes Zhangfei Gao
2014-08-27 12:38 ` Zhangfei Gao
2014-08-27 12:38 ` [PATCH 1/6] ARM: dts: hix5hd2: add gmac node Zhangfei Gao
2014-08-27 12:38 ` Zhangfei Gao
2014-08-27 14:54 ` Mark Rutland
2014-08-27 14:54 ` Mark Rutland
2014-08-27 15:01 ` zhangfei
2014-08-27 15:01 ` zhangfei
2014-08-27 15:04 ` Mark Rutland [this message]
2014-08-27 15:04 ` Mark Rutland
2014-08-27 15:08 ` zhangfei
2014-08-27 15:08 ` zhangfei
2014-08-27 12:38 ` [PATCH 2/6] ARM: dts: hix5hd2: add mmc node Zhangfei Gao
2014-08-27 12:38 ` Zhangfei Gao
2014-08-27 12:38 ` [PATCH 3/6] ARM: dts: hix5hd2: add usb node Zhangfei Gao
2014-08-27 12:38 ` Zhangfei Gao
2014-08-27 12:38 ` [PATCH 4/6] ARM: dts: hix5hd2: add sata node Zhangfei Gao
2014-08-27 12:38 ` Zhangfei Gao
2014-08-27 12:38 ` [PATCH 5/6] ARM: dts: hix5hd2: add gpio node Zhangfei Gao
2014-08-27 12:38 ` Zhangfei Gao
2014-08-27 12:38 ` [PATCH 6/6] ARM: dts: hix5hd2: add wdg node Zhangfei Gao
2014-08-27 12:38 ` Zhangfei Gao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140827150409.GC9737@leverpostej \
--to=mark.rutland@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.