From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934944AbbEOUNU (ORCPT ); Fri, 15 May 2015 16:13:20 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:52446 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933913AbbEOUNT convert rfc822-to-8bit (ORCPT ); Fri, 15 May 2015 16:13:19 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Pali =?ISO-8859-1?Q?Roh=E1r?= , Rob Herring , Russell King , Will Deacon , Ivaylo Dimitrov , Sebastian Reichel , Pavel Machek , Tony Lindgren , Andreas =?ISO-8859-1?Q?F=E4rber?= , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] arm: boot: store ATAG structure into DT atags field Date: Fri, 15 May 2015 22:12:41 +0200 Message-ID: <3513646.XX80DTTJbc@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1431719407-18230-3-git-send-email-pali.rohar@gmail.com> References: <1430902142-17035-1-git-send-email-pali.rohar@gmail.com> <1431719407-18230-1-git-send-email-pali.rohar@gmail.com> <1431719407-18230-3-git-send-email-pali.rohar@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" X-Provags-ID: V03:K0:O9vmWLHLIZOztEcD410AC6CJ6WdfcRQ4xRh1cb6mBsjf6JGTg0i op4dgMwdiasRSVYjQgpVmeHGgS1B7tV264qAyrOcyADUjrCol1e21dgjTKY4Y8/2D822lDk i6BmXCRXDzdP5kXPfIWSCjkQTVJJpZrbKrWq0lSCIRTgZjjwx9R5/avKWDIROQ/n0X6tNWk WTvd5KDDiRikX4pcxS+0g== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 15 May 2015 21:50:07 Pali Rohár wrote: > } > } > > + /* include the terminating ATAG_NONE */ > + atag_size = (char *)atag - (char *)atag_list + sizeof(struct tag_header); > + setprop(fdt, "/", "atags", atag_list, atag_size); > + > if (memcount) { > setprop(fdt, "/memory", "reg", mem_reg_property, > 4 * memcount * memsize); > The property should probably have a DT binding, and be named "linux,atags". It may also help to check if the "linux,atags" property already exists and not create it otherwise. That way we can put it into the n900 dts file and have it updated by the compat code, but not expose the atags on other platforms unless they opt in. Arnd