Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1786992rwi; Thu, 3 Nov 2022 09:04:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7q7D3krUVBd52nft+u3QX4U8rVT1Lgn4phCDOqQJ6O264y+7McJ8S+M/PBUuIc9cNoQ+WR X-Received: by 2002:a17:906:3406:b0:7ad:a8c3:585d with SMTP id c6-20020a170906340600b007ada8c3585dmr28826168ejb.573.1667491458646; Thu, 03 Nov 2022 09:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667491458; cv=none; d=google.com; s=arc-20160816; b=SfNmILe81W3+HdHCCOq0W7iD4LdBI3L7Prxjjl0FOPUVLu989scpZ0/QqA+UhkPV/C tCK5v8Zi/XhNPgLw0QSUHt2v+6yv23RUQIGEAo26C/uolgg4CkIqfQL1dsEMywyHxpty Vx7WN35j6iBtFVddta0AwJJfFT7AFPqXxwF0vXuZ5UdkMzNYEVDcVrnQkUcUnxt4AqK8 yQOavk1i/qGGKPwEsU2Ersrk2wsfX3PT0DKX6sASEaKoST3QwvzYcPXcYpHmG+uHC+Wu 5J/Y0I7u5dQHiOV6iDGZeHHA+VaMhRNoIYGVq7r/ZBwY+fpsIDW+tNt831fZ8EQzOW5M JuOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4YuRfCm3H4olmLNfRcb5aRs04WU4y/kSF8AbmWpwYGM=; b=NbDAqDe5RA6cloAui0ci+9T7DieNIwC1hXx3yOFRgO70Q76IOYjLlSa4h4MG5YHdjP RIqZpeFhAqLb98r2qMHXVZfD0Ltk7PtWAFfoPsoDMze5ZlFFnE+bKti0+I+/yWYepN9i EjOvvJexzIJ6MLOM1ajyqnQpkWgb8f8SQDoAdBI7Xmsq6Z4T3J/EREyJOEn/Ko9GsT7Z fwOzprBVLK27lSq6/6B24J0CW8Z7VVtfDFiIjeRk9sz6Ww5F0lgvkXDgaZSh61xZOptt EA46UKwArb7o+6EP/EObCjsdrTqa0wjhltqijHILv/BLpmPFu9ScPsD0a1D629zBui80 IBXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=BeI4ExSz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs38-20020a1709072d2600b0079c65d65f49si1907866ejc.908.2022.11.03.09.03.47; Thu, 03 Nov 2022 09:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=BeI4ExSz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230203AbiKCPpr (ORCPT + 97 others); Thu, 3 Nov 2022 11:45:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbiKCPpg (ORCPT ); Thu, 3 Nov 2022 11:45:36 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17D02BF1 for ; Thu, 3 Nov 2022 08:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1667490307; bh=D2NeIitACzdIeTwQNCj4aXAQCOyb03SsB/bk9aAJFbg=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=BeI4ExSzbLn/NzfReS6EG9pS4/PI4JHh51EC9Bm652qnenuMq7QNbozkEWRgfzA0k zMsPXiAKID8TzuZuPc0Hwyz4744XiQapeDvdW+BEsEcWcFVj2FnetXammZqkZr8Ph/ HG+Euil4hJmmzA9C3srOQ8Bkk9RZnrTvdn2hJ6zzFe4WOPGocg/CKHBP+RhqkKM8lh yWmbahlG+rECBJQOg5S17r9ftXDYnlCEucsOFACZkpEcsUSbdued2rygftTH9Kbz3M slUW3cxkYqkm/RQADzFU8OoDpg/NlmuS87oOZb92kHTUaqLs0unqbSESKa40zB361U tKQyKKND1njhA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([78.34.126.36]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQvD5-1ode7w0h2l-00O31Z; Thu, 03 Nov 2022 16:45:07 +0100 Date: Thu, 3 Nov 2022 16:45:04 +0100 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: Tomer Maimon Cc: Joel Stanley , Jonathan =?utf-8?Q?Neusch=C3=A4fer?= , Hitomi Hasegawa , Paul Menzel , Hector Martin , Arnd Bergmann , Sven Peter , openbmc@lists.ozlabs.org, Brian Norris , linux-kernel@vger.kernel.org, Nicolas Ferre , Lubomir Rintel , Conor Dooley , Robert Jarzmik Subject: Re: [PATCH v5 RESEND] soc: nuvoton: Add SoC info driver for WPCM450 Message-ID: References: <20221031223926.241641-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="z9Gk8xtTBSjinse8" Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:B74ShnSYqz3yjVKmNIwYvGyYzNI7c8HwuxQD3aZX01toJPb15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iWuitEqrA1KHaK40MHy1MDc6yDVpYnQOHj2t/Avihlvj UZoAA5zkYGpUyP1H1YLiJQu9Kcz+bEpqvSPT4Z8F2OD1UisrI2HtGrWqz9X8lAbFgKXmtYuuO 80oPjd1NU/eAfZC8txIECdpAL8s= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --z9Gk8xtTBSjinse8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 03, 2022 at 09:11:08AM +0200, Tomer Maimon wrote: > Hi Jonathan, >=20 > Thanks for your patch. >=20 > On Thu, 3 Nov 2022 at 01:09, Joel Stanley wrote: > > > > On Mon, 31 Oct 2022 at 22:40, Jonathan Neusch=C3=A4fer wrote: > > > > > > Add a SoC information driver for Nuvoton WPCM450 SoCs. It provides > > > information such as the SoC revision. [...] > > > +++ b/drivers/soc/nuvoton/Kconfig > > > @@ -0,0 +1,11 @@ > > > +# SPDX-License-Identifier: GPL-2.0 > > > +menuconfig WPCM450_SOC > > > + tristate "Nuvoton WPCM450 SoC driver" > > > + default y if ARCH_WPCM450 > > > + select SOC_BUS > > > > Sorry for not noticing this earlier. This is a bit confusing. If we > > have a menu option, the soc driver should appear under it. Or we could > > do without the menu all together, as there's only one driver so far. Good point. > > > > We also should select REGMAP, as you're using it, I'll add it. > > and hide the option behind ARCH_WPCM450 || COMPILE_TEST. > > > > How about this: > > > > if ARCH_WPCM450 || COMPILE_TEST > These days we working on LPC BPC driver for NPCM7xx and NPCM8xx that > will be placed in nuvoton soc folder. > we will use: >=20 > if ARCH_NPCM || COMPILE_TEST >=20 > menu "NPCM SoC drivers" That sounds reasonable, I'll do something similar. > Maybe you should remove > if ARCH_WPCM450 || COMPILE_TEST >=20 > and add ARCH_WPCM450 dependency in the WPCM450_SOCINFO driver configurati= on. The WPCM450_SOCINFO driver would build fine on other NPCM SoC, it just wouldn't be very useful, so I think the current "default y if ARCH_WPCM450" solution is sufficient. >=20 > > > > config WPCM450_SOCINFO > > tristate "Nuvoton WPCM450 SoC driver" > > default y if ARCH_WPCM450 > > select SOC_BUS > > select REGMAP > > help > > Say Y here to compile the SoC information driver for Nuvoton > > WPCM450 SoCs. > > > > This driver provides information such as the SoC model and > > revision. > > > > endif Thank you both, Jonathan --z9Gk8xtTBSjinse8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEvHAHGBBjQPVy+qvDCDBEmo7zX9sFAmNj4ccACgkQCDBEmo7z X9ssaA//eNzqncSzzvszShSHI+DKqydLRmZ2jZkKhjTh1QyYswkvH+4APbIvIYK0 DWSJiXDouzNR3lpqDq2AzPbXclfWnBS2nU52n64svRf3BDTczNqkHEhUCeCo2o00 RQ+pToPS1aqhjrAg5aZB4XU2fVPUZ4OTce00NeQs+5w/8EyTKxc6knsd/H6uxkb7 2dIU9Qll+FfXF6QYJMUw73QEYgT5kzuvCkZ65G0FzCZR8uTzjS2Wole4DBp+3rvP 4Jmykgqnh9lif1+L24L6Bf6O/mplQG1poMNrIK98oXLhB22lKB4s6ShQQxWFT+Zu saW3jxwX3Rp8Bb8nWAVG48wcRAFu+OZUREvBye6nDwV6XEFdS+MR+lLQXCpDfONm XHtIUvUMWvpVIRYN3wgIAqCvIfjIu4QuDYCuR3gz8YEBoeyDw14ha/QWt8J2nUmQ GfVF7LAqTvhdqP+UEr1nHHNl9i6pf9f90WYbXwuvIPuV09QTHjS9F2D63aTR0z6H nPi1u5HyPFaNPJZXsWTgUmzNXJYrUQWWeRLCcsmDV7Jot7ZS2semcUKL3xZuRFCM ahN/K2b01hhsl1SiiBJNGgRMvW2rek644WaWk7z+eJQPzQlHIXo384h0+wAsmqlV 6P6EQFA7nqPji1tnQydxduZIySHQhve39m04g7zQCCmce9jYGSc= =Y2a2 -----END PGP SIGNATURE----- --z9Gk8xtTBSjinse8--