lkml.org 
[lkml]   [2003]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] driver core support for i2c bus and drivers
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

--
Albert Cranford Deerfield Beach FL USA
ac9410@attbi.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.251 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site