Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759777AbcDMJFt (ORCPT ); Wed, 13 Apr 2016 05:05:49 -0400 Received: from foss.arm.com ([217.140.101.70]:60879 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759740AbcDMJFo (ORCPT ); Wed, 13 Apr 2016 05:05:44 -0400 Subject: Re: [PATCH] arm64/sunxi: 4.6-rc1: Add dependency on generic irq chip To: Olof Johansson , andre.przywara@arm.com References: <1459245786-11905-1-git-send-email-suzuki.poulose@arm.com> <20160412191149.GC4174@localhost> Cc: linux-arm-kernel@lists.infradead.org, arm@kernel.org, arnd@arndb.de, linux-kernel@vger.kernel.org From: Suzuki K Poulose Message-ID: <570E0BE4.2080007@arm.com> Date: Wed, 13 Apr 2016 10:05:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20160412191149.GC4174@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2351 Lines: 53 On 12/04/16 20:11, Olof Johansson wrote: > On Tue, Mar 29, 2016 at 11:03:06AM +0100, Suzuki K Poulose wrote: >> Commit ce3dd55b99b1 ("arm64: Introduce Allwinner SoC config option"), >> added support for ARCH_SUNXI on arm64, but failed to select >> GENERIC_IRQ_CHIP, which is required for drivers/irqchip/irq-sunxi-nmi.c >> and causes build failures like : >> >> UPD include/generated/compile.h >> CC init/version.o >> LD init/built-in.o >> drivers/built-in.o: In function `sunxi_sc_nmi_set_type': >> drivers/irqchip/irq-sunxi-nmi.c:114: undefined reference to `irq_setup_alt_chip' >> drivers/built-in.o: In function `irq_domain_add_linear': >> include/linux/irqdomain.h:253: undefined reference to `irq_generic_chip_ops' >> include/linux/irqdomain.h:253: undefined reference to `irq_generic_chip_ops' >> drivers/built-in.o: In function `sunxi_sc_nmi_irq_init': >> drivers/irqchip/irq-sunxi-nmi.c:146: undefined reference to `irq_alloc_domain_generic_chips' >> drivers/irqchip/irq-sunxi-nmi.c:161: undefined reference to `irq_get_domain_generic_chip' >> drivers/irqchip/irq-sunxi-nmi.c:170: undefined reference to `irq_gc_mask_clr_bit' >> drivers/irqchip/irq-sunxi-nmi.c:171: undefined reference to `irq_gc_mask_set_bit' >> drivers/irqchip/irq-sunxi-nmi.c:172: undefined reference to `irq_gc_ack_set_bit' >> drivers/irqchip/irq-sunxi-nmi.c:170: undefined reference to `irq_gc_mask_clr_bit' >> >> Fixes: commit ce3dd55b99b1 ("arm64: Introduce Allwinner SoC config option") >> Cc: Andre Przywara >> Signed-off-by: Suzuki K Poulose > > It'd be nice to have a silent Kconfig entry that selects from ARCH_SUNXI that > sets this dependency, instead of having it from the architecture code. This > pushes down the dependency to the right level. Do you mean something like : config ARCH_SUNXI ... select SUNXI_PLATFORM And have config SUNXI_PLATFORM select SUNXI_DEPENDENCY_1 select SUNXI_DEPENDENCY_2 where SUNXI_PLATFORM drives the dependencies for both ARM and ARM64 ? If so, where would you like SUNXI_PLATFORM to reside ? drivers/platform ? Also, AFAIK, the arm64 port doesn't have the full support for the required bits for SUNXI yet, which could be handled in the common place with ( && !ARM64). Andre, please feel free to correct my assessment above. Thanks Suzuki