Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932112AbbEUOUE (ORCPT ); Thu, 21 May 2015 10:20:04 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:32807 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753649AbbEUOUA (ORCPT ); Thu, 21 May 2015 10:20:00 -0400 Message-ID: <555DE98A.2000909@linaro.org> Date: Thu, 21 May 2015 22:19:54 +0800 From: Hanjun Guo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Thomas Gleixner CC: Marc Zyngier , Jason Cooper , Will Deacon , Catalin Marinas , "Rafael J. Wysocki" , Jiang Liu , Lorenzo Pieralisi , Arnd Bergmann , Tomasz Nowicki , Grant Likely , Olof Johansson , linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org Subject: Re: [PATCH 03/11] irqchip / GIC: Add GIC version support in ACPI MADT References: <1431953961-22706-1-git-send-email-hanjun.guo@linaro.org> <1431953961-22706-4-git-send-email-hanjun.guo@linaro.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1277 Lines: 37 On 2015年05月21日 04:02, Thomas Gleixner wrote: > On Mon, 18 May 2015, Hanjun Guo wrote: >> diff --git a/drivers/acpi/irq.c b/drivers/acpi/irq.c >> index 65d6b93..855ead9 100644 >> --- a/drivers/acpi/irq.c >> +++ b/drivers/acpi/irq.c >> @@ -32,6 +32,9 @@ void __init acpi_irqchip_init(void) >> if (acpi_disabled) >> return; >> >> + if (acpi_gic_version_init()) >> + return; > > This looks just wrong. acpi_irqchip_init() is a generic ACPI function > and now you stick a GIC specific callback into it? For now, acpi_irqchip_init() just introduced for GIC init, not for APIC init for x86, and I don't see the usage in the near future. > > What calls acpi_irqchip_init? I renamed it as acpi_irq_init() in the later patch, which is called in irqchip_init() in drivers/irqchip/irqchip.c to init irqchip when DT is not available. This is not a nice way, but the kernel should stay functional for each patch goes in, so I separate the patch to smaller one for easy review under that rule, does it make sense? Thanks Hanjun -- 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/