login
Header Space

 
 

Re: iic(4) device discovery

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Marco Trillo <marcotrillo@...>
Cc: <tech-kern@...>, Jachym Holecek <freza@...>
Date: Saturday, October 20, 2007 - 9:30 am

# Marco Trillo 2007-10-20:

Ok, so ideally MD ki2c(4) should be able to tell autoconf(9) that i2cbus
instance it's about to attach has a known set of child devices. We already
have a MI way of describing "what device hangs off what with such-and-such
locators": cfdata_t objects. Converting MD notation of device hierarchy
into a cfdata_t should be trivial. So what's missing is a way for a device
(ki2c0) to register additional set of cfdata_t objects (i2c devices) that
are known to be children of some of its child (iicN) connected at given
attribute (i2cbus).

In other situations, you would inject new cfdata_t objects before
autoconfiguration is started, or during autoconfiguration from MD
device_register() hook.

This doesn't sound hard to implement and has the advantage of being
more general: this way, you could use MD device hierarchy knowledge
for any indirect-config bus (think isa(4)).


Yes, but it works only for i2c and requires a modification to MI driver.
Other {Bus, Arch} combinations could benefit from generic solution.

	-- Jachym
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
iic(4) device discovery, Marco Trillo, (Fri Oct 19, 6:43 pm)
Re: iic(4) device discovery, Martin Husemann, (Fri Oct 19, 7:53 pm)
Re: iic(4) device discovery, Jason Thorpe, (Fri Oct 19, 7:56 pm)
Re: iic(4) device discovery, Marco Trillo, (Sat Oct 20, 4:42 am)
Re: iic(4) device discovery, Michael Lorenz, (Sat Oct 20, 11:07 am)
Re: iic(4) device discovery, Jachym Holecek, (Sat Oct 20, 5:12 am)
Re: iic(4) device discovery, Marco Trillo, (Sat Oct 20, 7:37 am)
Re: iic(4) device discovery, Michael Lorenz, (Sat Oct 20, 10:59 am)
Re: iic(4) device discovery, Jachym Holecek, (Sat Oct 20, 9:30 am)
Re: iic(4) device discovery, Quentin Garnier, (Sat Oct 20, 10:09 am)
Re: iic(4) device discovery, Martin Husemann, (Fri Oct 19, 8:04 pm)
speck-geostationary