From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754187AbcHXNto (ORCPT ); Wed, 24 Aug 2016 09:49:44 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:39510 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752605AbcHXNtl (ORCPT ); Wed, 24 Aug 2016 09:49:41 -0400 Message-ID: <1472045382.5335.45.camel@pengutronix.de> Subject: Re: Why do we need reset_control_get_optional() ? From: Philipp Zabel To: Masahiro Yamada Cc: Arnd Bergmann , Axel Lin , Hans de Goede , Linux Kernel Mailing List , Maxime Ripard , Lee Jones , linux-arm-kernel Date: Wed, 24 Aug 2016 15:29:42 +0200 In-Reply-To: References: <3400649.NoVKUzu81R@wuerfel> <1470387358.3141.17.camel@pengutronix.de> <1793038.JVifRUCe28@wuerfel> 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 Dienstag, den 16.08.2016, 18:41 +0900 schrieb Masahiro Yamada: > Hi Arnd, > > 2016-08-06 0:35 GMT+09:00 Arnd Bergmann : > > > > > config RESET_FOO > > bool "FOO reset controller" if COMPILE_TEST && !ARCH_FOO > > default ARCH_FOO > > > > then I think we get both: you won't be able to turn it off > > but also get the build testing. > > This looks good to me, too. > I do not know if we need "&& !ARCH_FOO", though. > > When we are compile-testing, we do not care if it works on run-time, > so perhaps it makes sense to allow to enable/disable RESET_FOO > regardless ARCH_FOO. I'll send a few patches to add the Kconfig symbols. Turning around the RESET_CONTROLLER selection can be done in a second step. regards Philipp