Devicetree
 help / color / mirror / Atom feed
* Re: [Patch] MPC Adapter: read class attribute from device tree
       [not found]         ` <20090421130134.1e82a078-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
@ 2009-04-21 11:26           ` Wolfgang Grandegger
  2009-04-28 16:21             ` Detlev Zundel
  0 siblings, 1 reply; 2+ messages in thread
From: Wolfgang Grandegger @ 2009-04-21 11:26 UTC (permalink / raw)
  To: Jean Delvare
  Cc: Michael Lawnick, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Sang, Wolfram,
	devicetree-discuss

Jean Delvare wrote:
> On Tue, 21 Apr 2009 12:35:49 +0200, Wolfgang Grandegger wrote:
>> Michael Lawnick wrote:
>>> Wolfgang Grandegger said the following:
>>>> Do we really need that? Probing is dangerous and not necessary. Does it
>>>> not work with a proper DTS entry? But maybe I have missed something?
>>> Our current and our next system consists of two flavors of the same
>>> board with different devices. To minimize maintenance and testing we use
>>> a reduced kernel and load the needed modules at runtime. Furthermore we
>>> will have to handle hot-plugged I2C-devices. Whether this strategy is
>>> best could be discussed in another thread but is rather OT in this
>>> mailing list. Nevertheless loading modules at runtime is legal and
>>> generally supported by LINUX.
>>>
>>> Defining all possible (I2C-)devices in DTS would give a mess. E.g. on
>>> one board there will be ~30 temperature sensors, on the other none.
>> The legacy device probing has it's limitations and I doubt that it will
>> be able to find 30 DTT devices properly. E.g. the legacy probing
>> algorithm is not able to distinguish between a LM75 and DS75. Let's
>> first try to find out why it does not work as expected with the DTS entry.
>>
>>> As every DTS entry will force a sysFs subdirectory there would be a
>>> bunch of functionless directories - rather ugly.
>> Hopefully not. They will be created when the probing was successful, I
>> assume.
> 
> No, device creation is unconditional. It is assumed that the DTS file
> author knew what he/she was doing.
> 
> There was a discussion about adding a flag to state the "may not be
> present" nature of devices, which would result in a probe before
> instantiating the device (on success), but it wasn't implemented yet. I
> have no objection is this mechanism is deemed useful.

Ah, I see. If the software can reliably find out if a device exists it
should probe for it. It would be useful to limit the amount of required
DTS files for the hardware variants. Often the RTC or other I2C devices
are optional. I added the Deviceterr-disccuss ML to the CC to reach the
the device-tree gurus.

Wolfgang.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch] MPC Adapter: read class attribute from device tree
  2009-04-21 11:26           ` [Patch] MPC Adapter: read class attribute from device tree Wolfgang Grandegger
@ 2009-04-28 16:21             ` Detlev Zundel
  0 siblings, 0 replies; 2+ messages in thread
From: Detlev Zundel @ 2009-04-28 16:21 UTC (permalink / raw)
  To: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A

Hi Wolfgang,

> I added the Deviceterr-disccuss ML to the CC to reach the the
              ~~~~~~~~~~
> device-tree gurus.

Freud or "nickname among friends"? :)

Cheers
  Detlev

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu-ynQEQJNshbs@public.gmane.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-28 16:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <49ED6AD3.2060808@gmx.de>
     [not found] ` <49ED6F03.5050107@grandegger.com>
     [not found]   ` <49ED9132.9050806@gmx.de>
     [not found]     ` <49EDA185.7040206@grandegger.com>
     [not found]       ` <20090421130134.1e82a078@hyperion.delvare>
     [not found]         ` <20090421130134.1e82a078-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-04-21 11:26           ` [Patch] MPC Adapter: read class attribute from device tree Wolfgang Grandegger
2009-04-28 16:21             ` Detlev Zundel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox