public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Michael Walle <michael@walle.cc>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mvgbe: fix network device indices
Date: Sun, 16 Oct 2011 20:28:52 +0200	[thread overview]
Message-ID: <201110162028.52318.michael@walle.cc> (raw)
In-Reply-To: <0badf8ccc31cf6d53e6a8b2572e03a38.squirrel@ssl.serverraum.org>

Am Freitag 07 Oktober 2011, 12:48:40 schrieb Michael Walle:
> Am Fr, 7.10.2011, 10:26 schrieb Prafulla Wadaskar:
> >> -----Original Message-----
> >> From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de]
> >> On Behalf Of Michael Walle
> >> Sent: Friday, October 07, 2011 3:53 AM
> >> To: u-boot at lists.denx.de
> >> Subject: [U-Boot] [PATCH] mvgbe: fix network device indices
> >> 
> >> Don't assume that the MAC address of egiga0 rsp. egiga1 is ethaddr rsp.
> >> eth1addr. If there is only a egiga1 device, u-boot will enumerate it as
> >> device 0 and therefore the MAC address is set with the environmen
> >> varibale
> >> ethaddr.
> > 
> > So if there is only one eth port available, the associated environment
> > variable should be ethaddr, this is understood.
> > Is there any issue with this?
> 
> Are you asking me or the list? (if the question was for me, remember that
> there might be _only_ the egiga1 device.)
> 
> > Then I have anther question in my mind-
> > Why not we name eth0addr for environment variable associated with egiga0
> > to maintain consistency with naming and used ports?
> 
> If i get it right, there is another problem with setting the environment
> variable from the driver itself.
> 
> eth_register() and eth_init() using an own index to enumerate the devices.
> Eg. if an e1000 is registered before the the associated environment
> variable would be eth1addr for the first mvgbe device and eth2addr for the
> second.
> 
> This patch only fixes the case where no other network device is
> registered. (The current behaviour just works with egiga0 being the only
> or the first and egiga1 being the second device).

ping :)

-- 
Michael

  reply	other threads:[~2011-10-16 18:28 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-06 22:23 [U-Boot] [PATCH] mvgbe: fix network device indices Michael Walle
2011-10-07  8:26 ` Prafulla Wadaskar
2011-10-07 10:48   ` Michael Walle
2011-10-16 18:28     ` Michael Walle [this message]
2011-10-07 17:16 ` Mike Frysinger
2011-10-21  8:09 ` Prafulla Wadaskar
2011-10-25 21:10   ` Michael Walle
2011-10-27  9:12     ` Prafulla Wadaskar
2011-10-27 10:22       ` Michael Walle
2011-10-27 21:31     ` [U-Boot] [PATCH 0/2] improve ethernet device index handling Michael Walle
2011-10-27 21:31     ` [U-Boot] [PATCH 1/2] net: introduce per device index Michael Walle
2011-10-27 21:36       ` Michael Walle
2011-11-03 11:23       ` Michael Walle
2011-11-03 11:39         ` Prafulla Wadaskar
2011-11-03 17:58           ` Wolfgang Denk
2011-11-03 18:09       ` Mike Frysinger
2011-10-27 21:31     ` [U-Boot] [PATCH 2/2] mvgbe: fix network device indices Michael Walle
2011-11-03 18:10       ` Mike Frysinger
2011-11-03 23:02         ` Michael Walle
2011-11-03 23:11           ` Mike Frysinger
2011-11-04  6:29             ` Prafulla Wadaskar
2011-11-04 23:06               ` Mike Frysinger
2011-11-05  9:53                 ` Albert ARIBAUD
2011-11-05 13:21                   ` Wolfgang Denk
2011-11-05 14:34                     ` Albert ARIBAUD
2011-11-05 15:06                       ` Wolfgang Denk
2011-11-08  7:44                   ` Prafulla Wadaskar
2011-11-08  7:32                 ` Prafulla Wadaskar
2011-11-08 13:56                   ` 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=201110162028.52318.michael@walle.cc \
    --to=michael@walle.cc \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox