[PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking
David Gibson
david at gibson.dropbear.id.au
Thu Apr 2 11:07:47 EST 2009
On Wed, Apr 01, 2009 at 09:40:13AM +0200, Wolfgang Grandegger wrote:
> David Gibson wrote:
> > On Tue, Mar 31, 2009 at 02:43:39PM +0200, Wolfgang Grandegger wrote:
> >> The I2c node property "fsl,preserve-clocking" allows to overtake the
> >> clock settings from the boot loader and avoids the hard-coded setting.
> >
> > Hrm. This is dubious. The device tree should generally describe
> > hardware, not OS/driver behaviour which is what this appears to be
> > doing. There are exceptions, but you need to justify them.
>
> I think the purpose of this property is clear. How would you provide
> that functionality instead? I suggested that a "clock-frequency = <0>"
> property should do the trick but Grant preferred to be more
> explicit.
I'm not saying the meaning is unclear, I'm saying it's describing
something that the device tree isn't meant to describe. AFAICT it's
telling the driver what to do with the device, not a property of the
device itself.
Now, there are cases where it's acceptable to put this sort of
information in the device tree, because it's the least nasty available
solution (flash partition information for example). But you need to
justify it, if that's so.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
More information about the devicetree-discuss
mailing list