All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 17/30] lan91c96/smc91111/smc911x: get mac address from environment
Date: Thu, 16 Jul 2009 10:41:30 -0700	[thread overview]
Message-ID: <4A5F664A.8000701@gmail.com> (raw)
In-Reply-To: <200907152036.40158.vapier@gentoo.org>

Hi Mike,

Mike Frysinger wrote:
> <snip>
>>> not specific to either of these drivers, so if we did choose to make this
>>> behavior optional via some define, it would make more sense to do it in
>>> the common eth code rather than copying & pasting it everywhere.
>>>       
>> Agreed.  Do you think you have time and resources to craft such a patch?
>>     
>
> net/eth.c:eth_initialize() already has the logic to handle this, but that only 
> applies to NET_MULTI drivers.  and most do not take advantage of it.  i think 
> the documentation should be updated like so:
> 	in the driver function that calls eth_register(), the driver should
> 	initialize dev->enetaddr to the MAC found in the hardware (if possible)
> and then applicable drivers should be fixed.  if we agree on this route, i can 
> do a quick scan of the net drivers and post relevant patches.
>
>   
That'd be great.  You've done good work bringing consistency to the code. 
> in the case of a mismatch, we would see from the common eth code:
> Warning: Blackfin EMAC MAC addresses don't match:
> Address in SROM is         0a:0a:0a:0a:0a:0a
> Address in environment is  00:e0:22:fe:44:ec
>
>   
> the smsc drivers however are not in the NET_MULTI category -- they dont use 
> any of the common ethernet stack.  so once they are converted to NET_MULTI, 
> they'll get this functionality for free (when exactly were we adding #warning 
> about non-NET_MULTI usage ?).  so rather than expend effort on restoring 
> duplicate code, how about interested parties convert the driver ;).
> -mike
>   
The #warning patch is done but not submitted.  Pretty lame, I know, but 
it's been a crazy summer.  I have the SMSC driver mostly ported but 
don't have any hardware to test on.  I guess there are 3 days left in 
this merge window to get the ball rolling...  If anybody else has 
already done this, please submit.

regards,
Ben

  reply	other threads:[~2009-07-16 17:41 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-17  5:10 [U-Boot] [PATCH 00/30] standardize mac address handling in u-boot (v2) Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 01/30] vsprintf: pull updates from Linux kernel Mike Frysinger
2009-02-18 15:18   ` Jean-Christophe PLAGNIOL-VILLARD
2009-02-18 16:40     ` Mike Frysinger
2009-02-18 16:55       ` Jean-Christophe PLAGNIOL-VILLARD
2009-02-18 17:05         ` Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 02/30] convert print_IPaddr() to %pI4 Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 03/30] net: new utility functions for working with enetaddr's Mike Frysinger
2009-02-17 21:53   ` Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 04/30] doc/README.enetaddr: document proper MAC usage Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 05/30] Blackfin: bfin_mac: force boards to setup the MAC themselves Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 06/30] net: get mac address from environment and use eth util funcs Mike Frysinger
2009-02-17 16:21   ` Peter Tyser
2009-02-17 16:54     ` Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 07/30] bdinfo: get mac address from environment Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 08/30] bootvx: " Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 09/30] lynxkdi: " Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 10/30] nvedit: do not update global bi_enetaddr and do not call eth_set_enetaddr() Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 11/30] AmigaOneG3SE/enet: get mac address from environment Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 12/30] boards: " Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 13/30] drivers/net/: " Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 14/30] bcm570x: " Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 15/30] cs8900: " Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 16/30] sh_eth: " Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 17/30] lan91c96/smc91111/smc911x: " Mike Frysinger
2009-06-09 11:53   ` Wolfgang Denk
2009-06-10  0:30     ` Mike Frysinger
2009-07-13 21:58       ` Wolfgang Denk
2009-07-16  0:36         ` Mike Frysinger
2009-07-16 17:41           ` Ben Warren [this message]
2009-07-16 18:30             ` Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 18/30] cpu/: " Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 19/30] npe: " Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 20/30] lib_*/board.c: do not initialize bi_enet*addr in global data Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 21/30] nx823: get mac address from environment Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 22/30] arm: " Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 23/30] boards: move board_get_enetaddr() into board-specific init Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 24/30] cmc_pu2: get mac address from environment Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 25/30] pcs440ep: get mac address from environment and move load_sernum_ethaddr() to board init Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 26/30] kup4k/kup4x: rename load_sernum_ethaddr() to kup_load_sernum_ethaddr() Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 27/30] tqm8xx: rename load_sernum_ethaddr() to tqc_load_sernum_ethaddr() Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 28/30] ppc: mark global bi_enet*addr as legacy Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 29/30] drop now unused load_sernum_ethaddr() function Mike Frysinger
2009-02-17  5:10 ` [U-Boot] [PATCH 30/30] remove bi_enet*addr from global data for all arches Mike Frysinger

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=4A5F664A.8000701@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.