[PATCH] atags_to_fdt: take into account root's #size and #cells

Ben Dooks ben.dooks at codethink.co.uk
Wed Jun 19 07:42:04 EDT 2013


On 19/06/13 12:11, Thomas Petazzoni wrote:
> Dear Ben Dooks,
>
> On Wed, 19 Jun 2013 11:57:51 +0100, Ben Dooks wrote:
>> When creating entries for /memory, the root #size and #cells must be taken
>> into account otherwise the node will not be recongnized when the OF code
>> scans the nodes.
>>
>> On some systems, the default is now to be 2 for each of #size and #cells
>> which means that appending a kernrel and having it update from ATAGS does
>> not work properly.
>> ---
>>   arch/arm/boot/compressed/atags_to_fdt.c |   22 +++++++++++++++++++++-
>>   1 file changed, 21 insertions(+), 1 deletion(-)
>
> Isn't this the same
> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=faefd550c45d8d314e8f260f21565320355c947f
> which is already in linux-next?

Ah, it is almost the same although it only takes into
account the #size-cells but not the number of them.

-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius



More information about the linux-arm-kernel mailing list