From: mds@paradyne.com (Mark D. Studebaker )
To: lm-sensors@vger.kernel.org
Subject: [RFC] driver core support for i2c bus and drivers
Date: Thu, 19 May 2005 06:23:50 +0000 [thread overview]
Message-ID: <3E7676F7.40209@paradyne.com> (raw)
In-Reply-To: <20030310072337.GJ6512@kroah.com>
Greg,
our userspace tools use the /proc/bus/i2c file and (of course) the entire
tree of exported sysctl info under /proc/sys/dev/sensors
(as implemented in i2c-proc.c).
Does your proposal or Cristoph's recent changes affect these?
mds
Albert Cranford wrote:
> Greg KH wrote:
>
>>Hi all,
>>
>>Here's a fairly small patch against 2.5.64 that adds initial driver core
>>support for the i2c code. It only has logic for the i2c bus, i2c bus
>>controllers, and i2c drivers, but it's a start :)
>>
>>As an example, with this patch, the i2c-piix4 driver shows up in the pci
>>bus as (other devices omitted for clarity):
>>
>>[greg@desk sys]$ tree bus/pci
>>bus/pci/
>>|-- devices
>>| |-- 00:07.3 -> ../../../devices/pci0/00:07.3
>>`-- drivers
>> |-- piix4 smbus
>> | `-- 00:07.3 -> ../../../../devices/pci0/00:07.3
>>
>>And within that device, the first i2c bus is located:
>>
>>[greg@desk sys]$ tree devices/pci0/00:07.3
>>devices/pci0/00:07.3
>>|-- i2c-0
>>| |-- name
>>| `-- power
>>
>>And the i2c bus looks like:
>>
>>[greg@desk sys]$ tree bus/i2c/
>>bus/i2c/
>>|-- devices
>>`-- drivers
>> `-- EEPROM READER
>>
>>I'll move on to adding i2c device support to the core, but that will be
>>a bit more work. Comments on this patch are appreciated.
>>
>>thanks,
>>
>>greg k-h
>>
>>p.s. Yes, I added the i2c-piix4 and i2c-ali15x3 and i2c-i801 drivers to
>>my kernel tree, from the i2c CVS tree, and tweaked them to actually work
>>properly. If someone wants those patches right now, please let me know.
>>
>
> I like. The proc/bus directory was geting cluttered.
> I think the driver model would be a good for i2c/sensors.
> Do you have any input for isa already in your bag of
> goodies?
> Albert
>
next prev parent reply other threads:[~2005-05-19 6:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-10 7:23 [RFC] driver core support for i2c bus and drivers Greg KH
2005-05-19 6:23 ` Greg KH
2003-03-10 22:09 ` Albert Cranford
2005-05-19 6:23 ` Albert Cranford
2003-03-10 22:12 ` Greg KH
2005-05-19 6:23 ` Greg KH
2005-05-19 6:23 ` Mark D. Studebaker
2005-05-19 6:23 ` Greg KH
2005-05-19 6:23 ` Mark D. Studebaker [this message]
2003-03-18 1:27 ` Greg KH
2005-05-19 6:23 ` Greg KH
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=3E7676F7.40209@paradyne.com \
--to=mds@paradyne.com \
--cc=lm-sensors@vger.kernel.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 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.