All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/2] net: Add a command to access the EEPROM from ethernet devices
Date: Thu, 9 Oct 2014 17:17:00 +0200	[thread overview]
Message-ID: <201410091717.00580.marex@denx.de> (raw)
In-Reply-To: <1412854970-14927-1-git-send-email-alban.bedel@avionic-design.de>

On Thursday, October 09, 2014 at 01:42:49 PM, Alban Bedel wrote:
> Many ethernet devices use an EEPROM to store various settings, most
> commonly the device MAC address. But on some devices it can contains
> a lot more, for example USB device might also have many USB related
> parameters.
> 
> This commit add a set of commands to read/write this EEPROM, write a
> default configuration and read/write the device MAC address. The
> defaults command allow priming the EEPROM for devices that need more
> than just a MAC address in the EEPROM.
> 
> Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>

I will not comment on the code yet, but would like to discuss the concept
instead. I wonder, can we not have a more generic command here? One which
can manage the ethernet device altogether, not just adjust it's eeprom?
Something like 'ethtool' in Linux ...

What do you think please ?

Best regards,
Marek Vasut

  parent reply	other threads:[~2014-10-09 15:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-09 11:42 [U-Boot] [PATCH v2 1/2] net: Add a command to access the EEPROM from ethernet devices Alban Bedel
2014-10-09 11:42 ` [U-Boot] [PATCH v2 2/2] usb: eth: smsc95xx: Add EEPROM access support for LAN9514 Alban Bedel
2014-10-09 21:00   ` Pavel Machek
2014-10-09 15:17 ` Marek Vasut [this message]
2014-10-13  8:56   ` [U-Boot] [PATCH v2 1/2] net: Add a command to access the EEPROM from ethernet devices Alban Bedel
2014-10-14  6:26     ` Joe Hershberger

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=201410091717.00580.marex@denx.de \
    --to=marex@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 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.