From mboxrd@z Thu Jan 1 00:00:00 1970 From: zonque@gmail.com (Daniel Mack) Date: Wed, 25 Jul 2012 20:07:39 +0200 Subject: [PATCH 6/7] ARM: pxa3xx: add generic DT machine code In-Reply-To: <201207251734.50946.arnd@arndb.de> References: <1343233066-15397-1-git-send-email-zonque@gmail.com> <1343233066-15397-7-git-send-email-zonque@gmail.com> <201207251734.50946.arnd@arndb.de> Message-ID: <501035EB.6030406@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 25.07.2012 19:34, Arnd Bergmann wrote: > On Wednesday 25 July 2012, Daniel Mack wrote: >> Add a DT_MACHINE_START entry for PXA3xx machines and a auxdata table for >> some of the devices. This file can be extended to also support pxa2xx >> boards. >> >> Signed-off-by: Daniel Mack >> --- >> arch/arm/mach-pxa/Kconfig | 12 +++++++++ >> arch/arm/mach-pxa/Makefile | 3 +++ >> arch/arm/mach-pxa/pxa-dt.c | 61 ++++++++++++++++++++++++++++++++++++++++++++ >> 3 files changed, 76 insertions(+) > > The code looks good, but I wonder if it would be better to add it to the pxa3xx.c > file instead. One more comment: Well, I though having tham separated from the generic code will make things cleaner and also save us one #ifdef. >> +static const char *pxa3xx_dt_board_compat[] __initdata = { >> + "mrvl,pxa3xx", >> +}; > > We should try to avoid wildcards in compatible properties but rather be > more specific. I would use separate values for pxa300/310/320/920/930/935 > that you could all list here if they have the same auxdata lookup table. Ok, makes sense. I'm not sure about 920/930/935, so I'll leave them out for now. Whoever successfully tests these can easly add that lines. I'll wait for some more feedback and then resubmit the whole thing. Thanks for the review, much appreciated. Daniel