Linux I2C development
 help / color / mirror / Atom feed
From: Trent Piepho <xyzzy-zY4eFNvK5D+xbKUeIHjxjQ@public.gmane.org>
To: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
Cc: Kevin Hilman
	<khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>,
	i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: Re: Fwd: [PATCH 2/3] I2C: at24: add kernel interface for reading/writing EEPROM
Date: Tue, 26 Aug 2008 19:04:09 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0808261852580.2423@shell2.speakeasy.net> (raw)
In-Reply-To: <200808261335.36103.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>

On Tue, 26 Aug 2008, David Brownell wrote:
> On Tuesday 26 August 2008, Jon Smirl wrote:
> > Another solution is call_userspace_helper. GregKH convinced me to
> > change some things like this to small user space apps in the graphics
> > code. Is is easy to do the read/write from sysfs.
>
> Some of us don't like the implication that the relevant hardware
> can't properly boot without initramfs/initrd tools.  Even if it
> doesn't need anything the least bit fancy like a RAID for rootfs.

Having the kernel use a userspace helper to read an eeprom via the kernel
eeprom driver does seem ridiculously round-about and overly complicated.

Lots of tv cards have eeproms with configuration information.  They use an
I2C driver called tveeprom that exports this:
int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len)

> Last I heard, the U-Boot policy was not to touch controllers that are
> not required during boot.  Despite relatively common cases like needing
> to set up MAC addresses ... maybe this patch of Kevin's can make it a
> bunch easier to cope with that U-Boot policy.  :)

U-boot can put the MAC address into a property of the MAC's device node in
the OF device tree (which u-boot passes to the kernel).  The Linux mac
driver can then use that to set the address.  U-boot doesn't actually need
to touch the mac.  It does need to read the eeprom then (which could store
u-boot environment).

_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c

  parent reply	other threads:[~2008-08-27  2:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-26  2:41 Fwd: [PATCH 2/3] I2C: at24: add kernel interface for reading/writing EEPROM David Brownell
     [not found] ` <200808251941.54964.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-08-26  3:40   ` Jon Smirl
     [not found]     ` <9e4733910808252040j69b10ea8n1e3e40d16e86a3ae-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-08-26 19:37       ` David Brownell
     [not found]         ` <200808261237.29870.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-08-26 19:55           ` Jon Smirl
     [not found]             ` <9e4733910808261255v23b41f4dha3e345dc54529ca6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-08-26 20:35               ` David Brownell
     [not found]                 ` <200808261335.36103.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-08-27  2:04                   ` Trent Piepho [this message]
     [not found]                     ` <Pine.LNX.4.58.0808261852580.2423-nuiHJn5p267P3RPoUHIrnuTW4wlIGRCZ@public.gmane.org>
2008-08-27  7:19                       ` David Brownell
     [not found]                         ` <200808270019.12987.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-08-27 13:40                           ` Jon Smirl
     [not found]                             ` <9e4733910808270640h2e5fb88fn46548d3630b7f45d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-08-28 21:19                               ` David Brownell
     [not found]                                 ` <200808281419.47519.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-08-28 22:53                                   ` Jon Smirl

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=Pine.LNX.4.58.0808261852580.2423@shell2.speakeasy.net \
    --to=xyzzy-zy4efnvk5d+xbkueihjxjq@public.gmane.org \
    --cc=david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org \
    --cc=i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
    --cc=khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org \
    /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