From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758358AbcHYHYL (ORCPT ); Thu, 25 Aug 2016 03:24:11 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:59024 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758296AbcHYHYD (ORCPT ); Thu, 25 Aug 2016 03:24:03 -0400 Message-ID: <1472109823.3032.22.camel@pengutronix.de> Subject: Re: [PATCH 10/10] reset: hi6220: allow to compile test driver on other architectures From: Philipp Zabel To: Masahiro Yamada Cc: Linux Kernel Mailing List , Arnd Bergmann , Axel Lin , Hans de Goede , Maxime Ripard , Lee Jones , linux-arm-kernel , Chen Feng Date: Thu, 25 Aug 2016 09:23:43 +0200 In-Reply-To: References: <1472045342-7434-1-git-send-email-p.zabel@pengutronix.de> <1472045342-7434-10-git-send-email-p.zabel@pengutronix.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:96de:80ff:fec2:9969 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, den 25.08.2016, 03:00 +0900 schrieb Masahiro Yamada: > 2016-08-24 22:29 GMT+09:00 Philipp Zabel : > > Also remove the RESET_CONTROLLER dependency, this Kconfig file is > > included inside the menuconfig already. > > > > Cc: Chen Feng > > Signed-off-by: Philipp Zabel > > --- > > drivers/reset/hisilicon/Kconfig | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/reset/hisilicon/Kconfig b/drivers/reset/hisilicon/Kconfig > > index 26bf95a..1ff8b0c 100644 > > --- a/drivers/reset/hisilicon/Kconfig > > +++ b/drivers/reset/hisilicon/Kconfig > > @@ -1,5 +1,6 @@ > > config COMMON_RESET_HI6220 > > tristate "Hi6220 Reset Driver" > > - depends on (ARCH_HISI && RESET_CONTROLLER) > > + depends on ARCH_HISI || COMPILE_TEST > > + default ARCH_HISI > > help > > Build the Hisilicon Hi6220 reset driver. > > -- > > 2.8.1 > > > > > As you see > > obj-$(CONFIG_ARCH_HISI) += hisilicon/ > > in drivers/reset/Makefile, > Kbuild can descend into drivers/reset/hisilicon/ > only when CONFIG_ARCH_HISI is enabled. > > So, this patch does not add compile-test'ability. > > > Currently, I only see a single file in drivers/reset/hisilicon/ directory, > but perhaps they might be planning to add more reset drivers for > other Hisilicon SoCs in the future. > > > Change to > > obj-y += hisilicon/ Good catch, I'll do that for now ... > or > > create "config RESET_HISI" as a vendor-common option and > > obj-$(CONFIG_RESET_HISI) += hisilicon/ > > ? ... since I'm not quite sure if there are currently patches selecting COMMON_RESET_HI6220 floating around. regards Philipp