Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752273AbdHNH0u (ORCPT ); Mon, 14 Aug 2017 03:26:50 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:38657 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751365AbdHNH0t (ORCPT ); Mon, 14 Aug 2017 03:26:49 -0400 Message-ID: <1502695603.2287.3.camel@pengutronix.de> Subject: Re: [PATCH v2 1/5] reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967 From: Philipp Zabel To: Alexandru Gagniuc , linux-kernel@vger.kernel.org Cc: Andre Przywara , Maxime Coquelin , Alexandre Torgue , Maxime Ripard , Chen-Yu Tsai , Baoyou Xie , Eugeniy Paltsev , Steffen Trumtrar , Dinh Nguyen , linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de Date: Mon, 14 Aug 2017 09:26:43 +0200 In-Reply-To: <0d8e5468-866a-eac8-d9ec-b23f47df8bf3@adaptrum.com> References: <20170811130618.3676-1-p.zabel@pengutronix.de> <20170811130618.3676-2-p.zabel@pengutronix.de> <0d8e5468-866a-eac8-d9ec-b23f47df8bf3@adaptrum.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 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 Content-Length: 1066 Lines: 31 On Fri, 2017-08-11 at 10:47 -0700, Alexandru Gagniuc wrote: > Hi Philipp, > > On 08/11/2017 06:06 AM, Philipp Zabel wrote: > [snip] > > > diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig > > index 52d5251660b9b..f7ba01a71daee 100644 > > --- a/drivers/reset/Kconfig > > +++ b/drivers/reset/Kconfig > > @@ -68,6 +68,16 @@ config RESET_PISTACHIO > >   help > >     This enables the reset driver for ImgTec Pistachio SoCs. > > > > +config RESET_SIMPLE > > + bool "Simple Reset Controller Driver" if COMPILE_TEST > > Another question. Is there a reason this is depended on COMPILE_TEST > ? The idea is that if compile test is disabled, you are not presented with the option, but it is set to the correct value via the default mechanism. That way it is normally not possible to disable necessary reset controller drivers for enabled architectures, but the driver can still be built even on other architectures. It's a workaround for selecting the driver from the arch, which currently can't be done because of the encasing menuconfig. regards Philipp