public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] smc911x: do net reset the chip if no EEPROM is connected
Date: Wed, 8 Apr 2009 23:57:37 -0400	[thread overview]
Message-ID: <200904082357.38602.vapier@gentoo.org> (raw)
In-Reply-To: <20090409000838.GA22458@buzzloop.caiaq.de>

On Wednesday 08 April 2009 20:08:38 Daniel Mack wrote:
> On Wed, Apr 08, 2009 at 06:00:40PM -0400, Mike Frysinger wrote:
> > On Wednesday 08 April 2009 07:23:39 Daniel Mack wrote:
> > > On boards without EEPROMs, don't reset the chip on U-Boot's exit so
> > > that the MAC set by environment settings can be used by the OS later.
> >
> > that isnt how the MAC is passed to the OS ... this change is incorrect
> >
> > the OS must be able to get the MAC address regardless of the state of the
> > network controller
>
> Not if the MAC is stored in the volatile smc911x registers. Issuing a
> soft reset flushes these values - if U-Boot does that, the OS has no
> change getting them.

then either your u-boot or your OS is misconfigured and you need to fix that.  
as clearly stated in docs/README.enetaddr, the environment is the place where 
mac addresses live when there is no dedicated storage (like an eeprom).

ignoring that, the mac address doesnt magically get programmed.  if no network 
operation was initiated, then the part wouldnt have been programmed anyways, 
so you're still left with an OS that cant get itself functional.

> That's what I saw here and it is also stated in the datasheet.

sounds like the driver and hardware is operating correctly then
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090408/5fb53054/attachment.pgp 

  reply	other threads:[~2009-04-09  3:57 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-08 11:23 [U-Boot] [PATCH 1/3] smc911x: write back the manually set MAC address Daniel Mack
2009-04-08 11:23 ` [U-Boot] [PATCH 2/3] smc911x: add support for LAN9220 Daniel Mack
2009-04-08 11:23   ` [U-Boot] [PATCH 3/3] smc911x: do net reset the chip if no EEPROM is connected Daniel Mack
2009-04-08 22:00     ` Mike Frysinger
2009-04-09  0:08       ` Daniel Mack
2009-04-09  3:57         ` Mike Frysinger [this message]
2009-04-21 11:13           ` Daniel Mack
2009-04-27  3:14             ` Mike Frysinger
2009-04-27 14:44               ` Daniel Mack
2009-04-27 15:56                 ` Mike Frysinger
2009-04-27 19:05                   ` Scott Wood
2009-04-23  5:36   ` [U-Boot] [PATCH 2/3] smc911x: add support for LAN9220 Ben Warren
2009-04-21 11:13 ` [U-Boot] [PATCH 1/3] smc911x: write back the manually set MAC address Daniel Mack
2009-04-21 11:38 ` Sascha Hauer
2009-04-21 11:44   ` Daniel Mack
2009-04-21 13:28     ` Ben Warren
2009-04-21 13:30       ` Daniel Mack
2009-04-23  5:36 ` Ben Warren
2009-05-21  5:03   ` Dirk Behme
2009-06-05 10:02     ` Wolfgang Denk
2009-05-05 20:01 ` 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=200904082357.38602.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --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