Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752586AbbBRO7w (ORCPT ); Wed, 18 Feb 2015 09:59:52 -0500 Received: from mail-wg0-f43.google.com ([74.125.82.43]:60704 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752485AbbBRO7r (ORCPT ); Wed, 18 Feb 2015 09:59:47 -0500 From: Pantelis Antoniou To: Grant Likely Cc: Matt Porter , Koen Kooi , Guenter Roeck , Ludovic Desroches , Rob Herring , Tony Lindgren , Nicolas Ferre , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Pantelis Antoniou , Pantelis Antoniou Subject: [PATCH 1/4] arm: of: Add a DT quirk method after unflattening Date: Wed, 18 Feb 2015 16:59:33 +0200 Message-Id: <1424271576-1952-2-git-send-email-pantelis.antoniou@konsulko.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1424271576-1952-1-git-send-email-pantelis.antoniou@konsulko.com> References: <1424271576-1952-1-git-send-email-pantelis.antoniou@konsulko.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1398 Lines: 43 We need a per-machine dt_quirk() method to allow us to perform device tree quirk processing after unflattening. Signed-off-by: Pantelis Antoniou --- arch/arm/include/asm/mach/arch.h | 1 + arch/arm/kernel/setup.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h index 0406cb3..e873434 100644 --- a/arch/arm/include/asm/mach/arch.h +++ b/arch/arm/include/asm/mach/arch.h @@ -51,6 +51,7 @@ struct machine_desc { bool (*smp_init)(void); void (*fixup)(struct tag *, char **); void (*dt_fixup)(void); + void (*dt_quirk)(void); void (*init_meminfo)(void); void (*reserve)(void);/* reserve mem blocks */ void (*map_io)(void);/* IO mapping function */ diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index e55408e..e4c6eb5 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -934,6 +934,9 @@ void __init setup_arch(char **cmdline_p) unflatten_device_tree(); + if (mdesc->dt_quirk) + mdesc->dt_quirk(); + arm_dt_init_cpu_maps(); psci_init(); #ifdef CONFIG_SMP -- 1.7.12 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/