public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/5] e1000: Restructure and streamline PCI device probing
Date: Fri, 28 Oct 2011 00:34:50 +0200	[thread overview]
Message-ID: <20111027223450.F2A461809853@gemini.denx.de> (raw)
In-Reply-To: <1318971929-1160-3-git-send-email-Kyle.D.Moffett@boeing.com>

Dear Kyle Moffett,

In message <1318971929-1160-3-git-send-email-Kyle.D.Moffett@boeing.com> you wrote:
> By allocating the e1000 device structures much earlier, we can easily
> generate better error messages and siginficantly clean things up.
> 
> The only user-visable change (aside from reworded error messages) is
> that a detected e1000 device which fails to initialize due to software
> or hardware error will still be allocated a device number.
> 
> As one example, consider a system with 2 e1000 PCI devices where the
> first controller has a corrupted EEPROM.  Using the old code the
> second controller would be "e1000#0", while with this change it would be
> "e1000#1".
> 
> This change should hopefully make such EEPROM errors much more
> straightforward to handle correctly in boot scripts and the like.
> 
> It is also necessary for a followup patch which allows SPI programming
> of an e1000 controller's EEPROM even if the checksum is invalid.
> 
> Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com>
> Cc: Ben Warren <biggerbadderben@gmail.com>
> 
> --
> 
> Changelog:
>   v2: Clean up error messages a bit more
> 
> NOTE: This patch generates 3 false positives from checkpatch because
> of the existing use of the ",##args" construct in the E1000 debug
> macros to get rid of the "," when no arguments are passed.
> 
> ---
>  drivers/net/e1000.c |  126 +++++++++++++++++++++++++--------------------------
>  drivers/net/e1000.h |   19 +++++---
>  2 files changed, 74 insertions(+), 71 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Lots of people drink from the wrong bottle sometimes.
	-- Edith Keeler, "The City on the Edge of Forever",
	   stardate unknown

  reply	other threads:[~2011-10-27 22:34 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-18 21:05 [U-Boot] [PATCH 0/5] HWW-1U-1A: e1000 driver cleanups and new features Kyle Moffett
2011-10-18 21:05 ` [U-Boot] [PATCH 1/5] e1000: Clean up handling of dual-port NICs and support 82571 Kyle Moffett
2011-10-27 22:34   ` Wolfgang Denk
2011-10-18 21:05 ` [U-Boot] [PATCH 2/5] e1000: Restructure and streamline PCI device probing Kyle Moffett
2011-10-27 22:34   ` Wolfgang Denk [this message]
2011-10-18 21:05 ` [U-Boot] [PATCH 3/5] e1000: Rewrite EEPROM checksum error to give more information Kyle Moffett
2011-10-27 22:35   ` Wolfgang Denk
2011-10-18 21:05 ` [U-Boot] [PATCH 4/5] e1000: Export core EEPROM access functions for SPI support Kyle Moffett
2011-10-27 22:35   ` Wolfgang Denk
2011-11-01 15:22   ` Tabi Timur-B04825
2011-11-01 15:30     ` Mike Frysinger
2011-10-18 21:05 ` [U-Boot] [PATCH 5/5] e1000: Allow direct access to the E1000 SPI EEPROM device Kyle Moffett
2011-10-27 22:37   ` Wolfgang Denk
2011-10-28  4:25 ` [U-Boot] [PATCH 0/5] HWW-1U-1A: e1000 driver cleanups and new features Wolfgang Denk
2011-10-28  5:49 ` [U-Boot] [PATCH] e1000: fix bugs from recent commits Wolfgang Denk
2011-10-28  6:28   ` Mike Frysinger
2011-10-28 20:19     ` Wolfgang Denk
2011-10-28 23:30       ` Mike Frysinger
2011-10-29 19:32         ` Wolfgang Denk
2011-10-28 17:24   ` Moffett, Kyle D
2011-10-28 20:40     ` Wolfgang Denk
2011-10-28 21:06   ` Marek Vasut
2011-10-29 19:33   ` [U-Boot] [PATCH v2] " Wolfgang Denk
2011-10-30 15:43     ` Mike Frysinger
2011-10-31 15:14     ` Moffett, Kyle D
  -- strict thread matches above, loose matches on Subject: below --
2011-02-11 23:37 [U-Boot] e1000: Driver additions for eXMeritus HWW-1U-1A Kyle Moffett
2011-02-11 23:37 ` [U-Boot] [PATCH 2/5] e1000: Restructure and streamline PCI device probing Kyle Moffett
2011-04-12 20:17   ` Wolfgang Denk
2011-04-12 22:56     ` Moffett, Kyle D
2011-04-13  5:13       ` Wolfgang Denk
2010-09-13 15:52 [U-Boot] [PATCH 1/5] e1000: Clean up handling of dual-port NICs and support 82571 Kyle Moffett
2010-09-13 15:52 ` [U-Boot] [PATCH 2/5] e1000: Restructure and streamline PCI device probing Kyle Moffett
2010-11-14 23:04   ` Wolfgang Denk

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=20111027223450.F2A461809853@gemini.denx.de \
    --to=wd@denx.de \
    --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