From: Ben Hutchings <bhutchings-s/n/eUQHGBpZroRs9YW3xA@public.gmane.org>
To: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
Cc: Linux I2C <i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org>,
Michael Brown <mbrown-OViyBiuKJBuK421+ScFKDQ@public.gmane.org>
Subject: Re: SFC driver implements its own I2C support
Date: Thu, 15 May 2008 15:49:17 +0100 [thread overview]
Message-ID: <20080515144916.GL28241@solarflare.com> (raw)
In-Reply-To: <20080515143954.15bc4170-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
Jean Delvare wrote:
> On Thu, 15 May 2008 13:04:50 +0100 (BST), Michael Brown wrote:
> > On Thu, 15 May 2008, Jean Delvare wrote:
> > > > Last time I checked (i.e. when I originally wrote this bit of the
> > > > code), the kernel's own i2c layer didn't provide any clean way for
> > > > kernel code (rather than user code) to access i2c devices.
> > >
> > > I am not sure what Michael was referring to exactly, but access to i2c
> > > devices from the kernel has been supported pretty much forever. Maybe he
> > > really meant access to hardware monitoring devices? For these indeed
> > > there is a standard user-space interface (through sysfs) but no standard
> > > in-kernel access; mainly because there has never been a clear need for
> > > one. Again, if you need something, please discuss it on the relevant
> > > mailing lists and we'll find a way for you to use the standard
> > > subsystems rather than reimplementing them for your own use.
> >
> > From memory (and this may be inaccurate), it looked as though the i2c
> > subsystem code for EEPROM access was contained within
> > drivers/i2c/chips/eeprom.c, and that this code provided an interface for
> > userspace to access the EEPROM contents, but no interface for kernel code
> > to do so.
>
> This is correct and is still the case. This eeprom driver is a simple
> way to export small EEPROM data to user-space in read-only mode.
<snip>
This doesn't matter to us now, as our current controller has the EEPROM
attached to an SPI bus. Michael's original version of the driver had to
support our earlier controller which had EEPROM on I2C.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
next prev parent reply other threads:[~2008-05-15 14:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-13 8:33 SFC driver implements its own I2C support Jean Delvare
2008-05-14 21:58 ` Ben Hutchings
2008-05-15 9:24 ` Jean Delvare
2008-05-15 12:04 ` Michael Brown
2008-05-15 12:39 ` Jean Delvare
2008-05-15 12:58 ` [i2c] " Wolfram Sang
[not found] ` <20080515143954.15bc4170-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-05-15 14:49 ` Ben Hutchings [this message]
2008-05-15 14:52 ` Michael Brown
2008-05-15 12:03 ` [i2c] " Riku Voipio
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=20080515144916.GL28241@solarflare.com \
--to=bhutchings-s/n/euqhgbpzrors9yw3xa@public.gmane.org \
--cc=i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
--cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
--cc=mbrown-OViyBiuKJBuK421+ScFKDQ@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