From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3] Program net device MAC addresses after initializing
Date: Mon, 26 Apr 2010 09:39:16 -0700 [thread overview]
Message-ID: <4BD5C1B4.5060405@gmail.com> (raw)
In-Reply-To: <F766E4F80769BD478052FB6533FA745D19A2221B47@SC-VEXCH4.marvell.com>
Hi Prafulla,
On 4/26/2010 3:09 AM, Prafulla Wadaskar wrote:
>
>
>
>> -----Original Message-----
>> From: u-boot-bounces at lists.denx.de
>> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Ben Warren
>> Sent: Monday, April 26, 2010 11:26 AM
>> To: u-boot at lists.denx.de
>> Cc: biggerbadderben at gmail.com
>> Subject: [U-Boot] [PATCH v3] Program net device MAC addresses
>> after initializing
>>
>> Add a new function to the eth_device struct for programming a network
>> controller's hardware address.
>>
>> After all network devices have been initialized and the
>> proper MAC address for
>> each has been determined, make a device driver call to
>> program the address
>> into the device. Only device instances with valid unicast
>> addresses will be
>> programmed.
>>
>> Signed-off-by: Ben Warren<biggerbadderben@gmail.com>
>> Acked-by: Heiko Schocher<hs@denx.de>
>> Acked-by: Prafulla Wadaskar<prafulla@marvell.com>
>> Acked-by: Detlev Zundel<dzu@denx.de>
>> ---
>> v2->v3 Made the sprintf in new function actually work :(
>> v1->v2 Add documentation& environment variable for
>> overriding new behavior
>> ACKs mentioned above are for v1
>>
>> README | 5 +++++
>> doc/README.drivers.eth | 7 ++++++-
>> doc/README.enetaddr | 10 ++++++----
>> include/net.h | 1 +
>> net/eth.c | 13 +++++++++++++
>> 5 files changed, 31 insertions(+), 5 deletions(-)
>>
>>
> ..snip..
>
>> diff --git a/net/eth.c b/net/eth.c
>> index aff6987..1653ea9 100644
>> --- a/net/eth.c
>> +++ b/net/eth.c
>> @@ -60,6 +60,14 @@ int eth_getenv_enetaddr_by_index(int
>> index, uchar *enetaddr)
>> return eth_getenv_enetaddr(enetvar, enetaddr);
>> }
>>
>> +static int eth_mac_skip(int index)
>> +{
>> + char enetvar[15];
>> + char *skip_state;
>> + sprintf(enetvar, "eth%dmacskip", index);
>> + return ((skip_state = getenv(enetvar)) != NULL);
>> +}
>> +
>>
> Hi Ben
> Pls remove the white space in the above line,
> I have tested the patch on guruplug platform and found functional properly
>
>
Will do. I'll change your line to "Tested-by" if you don't mind.
> Regards..
> Prafulla . .
>
Thanks a lot,
Ben
next prev parent reply other threads:[~2010-04-26 16:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-26 5:56 [U-Boot] [PATCH v3] Program net device MAC addresses after initializing Ben Warren
2010-04-26 10:09 ` Prafulla Wadaskar
2010-04-26 16:39 ` Ben Warren [this message]
2010-04-27 1:34 ` Prafulla Wadaskar
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=4BD5C1B4.5060405@gmail.com \
--to=biggerbadderben@gmail.com \
--cc=u-boot@lists.denx.de \
/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.