[U-Boot] [PATCH v3 8/9] tegra: i2c: Enable new CONFIG_SYS_I2C framework

Stephen Warren swarren at wwwdotorg.org
Thu Aug 1 22:34:16 CEST 2013


On 08/01/2013 12:53 AM, Albert ARIBAUD wrote:
> Hi Heiko,
> 
> On Thu, 01 Aug 2013 08:02:42 +0200, Heiko Schocher <hs at denx.de> wrote:
> 
>>> I suppose you could. It seems conceptually /far/ simpler to just scan
>>> the DT once up-front rather than having to defer all this stuff until
>>
>> on the other hand we ring for every ms boot time ... and here we want
>> to scan a complete dt with maybe a lot of nodes, we do not want to
>> use?
> 
> Scanning all of DT seems to imply it has no strict or standard
> ordering. Could we mandate, suggest, of make it so that all entries in
> the DT needed at _f time are put first, and even maybe place an "end of
> _f" custom marker in DT to delimit them? (I assume that, for the sake of
> Postel-ism, anything in DT which is not understandable is skipped, so
> other users of the DT than us would not even be annoyed by such a
> marker)

DT nodes are explicitly unordered, and there is and should be no
guaranteed correlation between the order of entries in DT and when
drivers that handle them are probed.

In particular, for the Tegra DTs, nodes are supposed to be sorted by
register address to keep things neat.



More information about the U-Boot mailing list