netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: s-jan@ti.com
Cc: netdev@vger.kernel.org, linux-omap@vger.kernel.org,
	x0066660@ti.com, ben-linux@fluff.org, Tristram.Ha@micrel.com
Subject: Re: [PATCH 4/4 v2] ks8851: read/write MAC address on companion eeprom through debugfs
Date: Thu, 06 May 2010 00:25:08 -0700 (PDT)	[thread overview]
Message-ID: <20100506.002508.241926083.davem@davemloft.net> (raw)
In-Reply-To: <1273085155-1260-5-git-send-email-s-jan@ti.com>

From: Sebastien Jan <s-jan@ti.com>
Date: Wed,  5 May 2010 20:45:55 +0200

> A more elegant alternative to ethtool for updating the ks8851
> MAC address stored on its companion eeprom.
> Using this debugfs interface does not require any knowledge on the
> ks8851 companion eeprom organization to update the MAC address.
> 
> Example to write 01:23:45:67:89:AB MAC address to the companion
> eeprom (assuming debugfs is mounted in /sys/kernel/debug):
> $ echo "01:23:45:67:89:AB" > /sys/kernel/debug/ks8851/mac_eeprom
> 
> Signed-off-by: Sebastien Jan <s-jan@ti.com>

Elegant?  This commit message is the biggest lie ever told.

What makes your ethernet driver so god-damn special that it deserves
to have a private, completely unique, and obscure interface for
setting the permanent ethernet address of a network device?

Tell me how damn elegant it is that users have to learn about this
special, unique, and common with no other driver, interface for
performing this task?

Tell me how damn elegant it is when another driver wants to provide
users with a way to do this too, and they (like you) come up with
their own unique and different interface for doing this.

No, this is the most inelegant patch ever conceived because it totally
ignores the way in which we handle issues like this.

There is no way in the world I'm applying this garbage patch, sorry.

We have an ETHTOOL_GPERMADDR, add a new ETHTOOL_SPERMADDR operation
and then any driver (not just your's) can portably provide this
facility and users will have one, and only one, way of performing this
task.

  reply	other threads:[~2010-05-06  7:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-05 18:45 [PATCH 0/4 v2] ks8851: support for read/write MAC address from eeprom Sebastien Jan
2010-05-05 18:45 ` [PATCH 1/4 v2] ks8851: Add caching of CCR register Sebastien Jan
2010-05-06  7:20   ` David Miller
2010-05-05 18:45 ` [PATCH 2/4 v2] ks8851: Low level functions for read/write to companion eeprom Sebastien Jan
2010-05-06  7:20   ` David Miller
2010-05-11  1:23     ` Ben Dooks
2010-05-11  5:59       ` David Miller
2010-05-11  1:16   ` Ben Dooks
2010-05-05 18:45 ` [PATCH 3/4 v2] ks8851: companion eeprom access through ethtool Sebastien Jan
2010-05-06  7:20   ` David Miller
2010-05-05 18:45 ` [PATCH 4/4 v2] ks8851: read/write MAC address on companion eeprom through debugfs Sebastien Jan
2010-05-06  7:25   ` David Miller [this message]
2010-05-06  8:01     ` Sebastien Jan

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=20100506.002508.241926083.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=Tristram.Ha@micrel.com \
    --cc=ben-linux@fluff.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=s-jan@ti.com \
    --cc=x0066660@ti.com \
    /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;
as well as URLs for NNTP newsgroup(s).