Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3126295pxj; Mon, 7 Jun 2021 03:02:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz//SHRetAhiN3dCwLmhEoGP8t7QAeOY5C2j8TRvPToobkgPrx0ZMTgM/5nrlYji8t8j/aR X-Received: by 2002:a17:906:6d45:: with SMTP id a5mr17519091ejt.399.1623060148579; Mon, 07 Jun 2021 03:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623060148; cv=none; d=google.com; s=arc-20160816; b=VLWuZBTw6sDOPrPX0I3knrr565+q4tl5L1trts+q8r8bLm5iODcgnFzsXa/P1ce0FQ ZBnfWpY7ViHD+OiFIfKkF+ZSue7zwK7FFt8uFz9zze3Cb69Mz8qRg4HLwND3ajcF5BUR KaA7G5Kmsgw+XKgLuEcO32uxzqdFR8ocDpc/bqskL33hW0n5VLXh+xgRc4o5aT0ecj5W v6YA6krDZnRHufF4mRW2JIteDKK1plBKxB5jCdthTIe+G6tf2opIZZ6qivzjwhG4Rvkf UNsfnoqj2QK+Fo7hJ2b23JdnA7qdFfi9gSCOT5tVDOQhHIO71PS3ThBqwVnpfVu/Kis/ s4bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=mkIgxMjDBhihtdShk1KV0EUZymlZy83fYZrBiDWnCkI=; b=d2r8aYa8gKs1CRVnjByPxtSlneI1KISo7sxDJfV5TnBWvQohxl1ONztAkw5fXTdg4u v9ojikMfcbYBsqn/mhV7HohOgFmr/HqS1ef5K7AjD0jzX9HcwARTA+akBqdam04o0C92 pTzT1b0pczB3Vgds2xHNhHi517B33WNRDjnkVDZ+jdyOLgcEP3PdFb32R/a8Ku0QQFov DBqjGFS1PJo9rlfwWhQyVb0HH2HKfEzrEuoH15Y0TqAskIyYhmU0jPIYskCL8DJ3SLZk 0oZ97VwSa6YZe4jdwqpqJYwZRsLjWlMkMlCBC/Ox+fIAloPt2tom9yhTQ69ieOwm5Zj6 KE1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si10925197ejk.101.2021.06.07.03.02.05; Mon, 07 Jun 2021 03:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230282AbhFGKC7 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 7 Jun 2021 06:02:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230217AbhFGKCy (ORCPT ); Mon, 7 Jun 2021 06:02:54 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BDF4C061766 for ; Mon, 7 Jun 2021 03:01:02 -0700 (PDT) Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqC45-0002ml-62; Mon, 07 Jun 2021 12:01:01 +0200 Received: from pza by lupine with local (Exim 4.92) (envelope-from ) id 1lqC44-0004iF-Ce; Mon, 07 Jun 2021 12:01:00 +0200 Message-ID: <09cc7bc4b14b4995352bd4bd08d3aee556202c06.camel@pengutronix.de> Subject: Re: [PATCH] reset: berlin: support module build From: Philipp Zabel To: Jisheng Zhang Cc: linux-kernel@vger.kernel.org Date: Mon, 07 Jun 2021 12:01:00 +0200 In-Reply-To: <20210607175642.1c0e8ba4@xhacker.debian> References: <20210520171316.395de63e@xhacker.debian> <9f5bee632ed493b150c47f3127242c259a385192.camel@pengutronix.de> <20210607174445.3d532e6b@xhacker.debian> <562cabc4162d9f2c0fb3a307213ec1c5b4bb5535.camel@pengutronix.de> <20210607175642.1c0e8ba4@xhacker.debian> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2021-06-07 at 17:56 +0800, Jisheng Zhang wrote: > On Mon, 07 Jun 2021 11:49:45 +0200 > Philipp Zabel wrote: > > > > > > On Mon, 2021-06-07 at 17:44 +0800, Jisheng Zhang wrote: > > > On Mon, 07 Jun 2021 11:23:57 +0200 > > > Philipp Zabel wrote: > > > > > > > > > > On Thu, 2021-05-20 at 17:13 +0800, Jisheng Zhang wrote: > > > > > Make reset-berlin driver to be tristate module, support to build as > > > > > a module, this is useful for GKI. > > > > > > > > > > Partially revert commit ed4dba99cae8 ("reset: berlin: make it > > > > > explicitly non-modular") > > > > > > > > > > Signed-off-by: Jisheng Zhang > > > > > --- > > > > > drivers/reset/Kconfig | 4 ++-- > > > > > drivers/reset/reset-berlin.c | 10 ++++++++-- > > > > > 2 files changed, 10 insertions(+), 4 deletions(-) > > > > > > > > > > diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig > > > > > index 3e7f55e44d84..1e7443a4dae1 100644 > > > > > --- a/drivers/reset/Kconfig > > > > > +++ b/drivers/reset/Kconfig > > > > > @@ -43,8 +43,8 @@ config RESET_BCM6345 > > > > > This enables the reset controller driver for BCM6345 SoCs. > > > > > > > > > > config RESET_BERLIN > > > > > - bool "Berlin Reset Driver" if COMPILE_TEST > > > > > - default ARCH_BERLIN > > > > > + tristate "Berlin Reset Driver" > > > > > + depends on ARCH_BERLIN || COMPILE_TEST > > > > > > > > Is there a reason not to keep "default ARCH_BERLIN"? > > > > > > > > > > Hi, > > > > > > After this patch, the reset driver will be built as module in most cases > > > so I removed default ARCH_BERLIN > > > > I see, how about "default m if ARCH_BERLIN" then? > > Good idea. I think "default m" is enough, because we have a "depends on > ARCH_BERLIN || COMPILE_TEST" above "default m" would also enable the module for COMPILE_TEST by default, which may not be what most compile testers need. regards Philipp