Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp530989pxb; Tue, 14 Sep 2021 03:15:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziXB0wmHlvgxFwkaZHd9EOJQOZ1H1ypzDroQ5ai2t8u0LBRmi3Ylp5mAMuM8vs22UVxxSI X-Received: by 2002:a17:906:a0c9:: with SMTP id bh9mr18084437ejb.51.1631614520615; Tue, 14 Sep 2021 03:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631614520; cv=none; d=google.com; s=arc-20160816; b=Sj1fIgn9m6hUR5YEmqL9v9HE78t+ORfmHcb47CI3NsoWpl3j0KJ4I/ldOOvkYE+9Ua cZlj7WXCgTBzZ2pWqfESjRyo6CSx4tdnnNOL+O0ByFkEjqeTRfA4BcTbapX7G1VR9a2g Fcj/wvmbqsMGzO5xLVT2m5Mqph4/mVtuUjQKAoX7CQr+xhJhw4hvWjaHH34ASvRQBQMg G6o578xuriuHiYsbXNpLTOyOasDlGOPdhISwJ/wAjcLzyhvb13ZzoKZEXsR/kmziGw0b +++xCPy+8TXhjoIPqisBrteXaNomo02j+GU66v+THsbeQVsSvYuxH3TJg2exopN5IcbL 1F0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=oBkNfwyFzUbtgbbxm3sHHN53g0UwRCANpiEbWwktEsI=; b=Rzz0dIRjdI3u3ZubABwv6OYYB6BoWgpDg/xTNOlVJuMCFnXzr1PDHbgophlC0nGsZv CXRy3luXh1zPlrnua1pwS3R309bmE+Vy2W6RC1bNK7vM33t57025xzsGNzvfBQwEKzXP Ulf8FK1Ecp5sn06E9tCMWByOrF8ok0g2DshCBm6tKp3YZz0flEi8e6ivBfAQrUqbQ8Hv U2NorpbLl2r9PCECgu6zXYaqiKS0fCMYgLPfNHkPlAQiAjzTflge3nN06+1cnQiJNhRp f7fX//PHbEF/D0z5+byCq0hJ2CvVUwbUUPT+W8FRyCFLD8lNhyUFnryCwKhd0rC3SEqb tV1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=1saxKCPQ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fMXTe22T; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si10474284edj.573.2021.09.14.03.14.55; Tue, 14 Sep 2021 03:15:20 -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; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=1saxKCPQ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fMXTe22T; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbhINKO4 (ORCPT + 99 others); Tue, 14 Sep 2021 06:14:56 -0400 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:34109 "EHLO wnew4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbhINKOu (ORCPT ); Tue, 14 Sep 2021 06:14:50 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.west.internal (Postfix) with ESMTP id 2394F2B012D2; Tue, 14 Sep 2021 06:13:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 14 Sep 2021 06:13:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=oBkNfwyFzUbtgbbxm3sHHN53g0U wRCANpiEbWwktEsI=; b=1saxKCPQGLyQ9IO2OCEV6o2kPTwXjd3vIQWapzf+fgb UrZX1Z31cJBJH3O0CvzaCg/tJkaEdV+0R6lk0cYA+rZfyc2qOpIvEh3+XHu1Pos+ fvkJVg+kT7eusAULpNBvxiQsVXYmOxgrNSR1RZjT09LjCZKSxUYtOQEKYtKJvJ4a yQOReC6tqf+5wImhT4ZO6iJpNzHiELkq6QJ+xafntOwLx5XeIPlQRcKeCMM09t5o njLYtmJXMM7j04HxnUnrGh3ytwZ0Wu7yqjMgcJpqtCzKrr9Fn3sCorKJJqakz015 W5ZMOobvkDQK2RjyHOfwZVkFRgwFN6ez+3sU9Z8aL/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=oBkNfw yFzUbtgbbxm3sHHN53g0UwRCANpiEbWwktEsI=; b=fMXTe22TPUjVB0nQGW/3a8 CIVrrOSnSNZOEcSpfwA8vNQubDmNMKhzvpLEeS71tvXMf/EwQoKLZ7ItUhGCW1tS G8KQrpTPC8gkugyxfY2EFx4ldevGSRS0toLemois9zOzY/oHXesYC4squj9fGWIR 4rwM6m3sLmQ1gJ5Q/DEDayWghxTyfyL8HXvP+PRk+axI5cE9TXh2erkAcDUk8tOV t+NUaonwkCTGXimxrQkDXaqNQzfsRgEiviuRQBZAvciS1g2+14UbaafZPthI3jlf XSmgBKf5YhPb6QFZ3mBlD+cqdlTupVo6whS4uulpG5CddzMheuY2fHNN31RpyPrQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegledgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Sep 2021 06:13:29 -0400 (EDT) Date: Tue, 14 Sep 2021 12:13:27 +0200 From: Maxime Ripard To: Krzysztof Kozlowski Cc: Arnd Bergmann , Guo Ren , Randy Dunlap , Anup Patel , Atish Patra , Palmer Dabbelt , Christoph =?utf-8?Q?M=C3=BCllner?= , philipp.tomsich@vrull.eu, Christoph Hellwig , liush , wefu@redhat.com, Wei Wu =?utf-8?B?KOWQtOS8nyk=?= , Drew Fustini , linux-riscv , Linux Kernel Mailing List , taiten.peng@canonical.com, aniket.ponkshe@canonical.com, heinrich.schuchardt@canonical.com, gordan.markus@canonical.com, Guo Ren , Chen-Yu Tsai Subject: Re: [RFC PATCH V4 6/6] riscv: soc: Add Allwinner SoC kconfig option Message-ID: <20210914101327.47baun6mop3mc56j@gilmour> References: <20210911092139.79607-1-guoren@kernel.org> <20210911092139.79607-7-guoren@kernel.org> <20210913084520.kkbsupogkzv226x3@gilmour> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bilmfgj3f2ue6b6g" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bilmfgj3f2ue6b6g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 14, 2021 at 12:07:08PM +0200, Krzysztof Kozlowski wrote: > On Tue, 14 Sept 2021 at 11:31, Arnd Bergmann wrote: > > Some subsystem maintainers want drivers to be selected by the SoC > > option, this is why you need the 'select SIFIVE_PLIC', but usually > > the drivers are selectable with a 'depends on ARCH_SUNXI || > > COMPILE_TEST' and enabled in the defconfig. >=20 > I would say selecting drivers is even more useful for distros and > other downstream users. Especially in the ARM world where we have so > many different SoCs - how could a distro person know which driver is > necessary, important or useful? Having all main SoC drivers enabled > when ARCH_SUNXI=3Dy, helps distro a lot. Imply, maybe, but select is far too painful for everyone else. > > If you want to get fancy, you can use something like: > > > > config RESET_SUNXI > > bool "Allwinner SoCs Reset Driver" if COMPILE_TEST && !ARCH_SUN= XI > > default ARCH_SUNXI > > > > This will make an option that > > - always enabled when the platform is built-in > > - user selectable when compile-testing for any other platform > > - always disabled otherwise >=20 > +1 for this pattern. Yeah, or a default Maxime --bilmfgj3f2ue6b6g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYUB1xwAKCRDj7w1vZxhR xaW4AQCjA2HZIq35rcUZ4xRg5zpPUX/IlJenhzSsJVR4kVhhUgD/Qfn9Rkd94UgU C0UYsWax+a1VpEmYSy5tBJAotQXQvQw= =u+RQ -----END PGP SIGNATURE----- --bilmfgj3f2ue6b6g--