Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 438ECC433F5 for ; Thu, 7 Apr 2022 04:17:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) id 09E96C385A4; Thu, 7 Apr 2022 04:17:05 +0000 (UTC) Received: from maillog.nuvoton.com (maillog.nuvoton.com [202.39.227.15]) by smtp.kernel.org (Postfix) with ESMTP id E8CD5C385A0; Thu, 7 Apr 2022 04:17:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.kernel.org E8CD5C385A0 Authentication-Results: smtp.kernel.org; dmarc=none (p=none dis=none) header.from=nuvoton.com Authentication-Results: smtp.kernel.org; spf=pass smtp.mailfrom=nuvoton.com Received: from NTHCCAS01.nuvoton.com (NTHCCAS01.nuvoton.com [10.1.8.28]) by maillog.nuvoton.com (Postfix) with ESMTP id B94761C810A3; Thu, 7 Apr 2022 12:17:01 +0800 (CST) Received: from NTHCML01A.nuvoton.com (10.1.8.177) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 7 Apr 2022 12:17:01 +0800 Received: from NTHCCAS01.nuvoton.com (10.1.8.28) by NTHCML01A.nuvoton.com (10.1.8.177) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 7 Apr 2022 12:17:01 +0800 Received: from [172.19.1.47] (172.19.1.47) by NTHCCAS01.nuvoton.com (10.1.12.25) with Microsoft SMTP Server id 15.1.2375.7 via Frontend Transport; Thu, 7 Apr 2022 12:17:01 +0800 Message-ID: <70edfb84-fb04-9492-ba94-ba0781f1e8fe@nuvoton.com> Date: Thu, 7 Apr 2022 12:17:01 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 3/3] arm64: dts: nuvoton: Add initial support for MA35D1 Content-Language: en-US To: Arnd Bergmann List-Id: CC: Krzysztof Kozlowski , "robh+dt@kernel.org" , "mturquette@baylibre.com" , "sboyd@kernel.org" , "olof@lixom.net" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-clk@vger.kernel.org" , "soc@kernel.org" , "linux-arm-kernel@lists.infradead.org" References: <20220307091923.9909-1-ychuang3@nuvoton.com> <20220307091923.9909-4-ychuang3@nuvoton.com> <2669852c-5bb6-1edf-bf58-ea815f54d50f@kernel.org> From: Jacky Huang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit On 2022/4/6 下午 05:40, Arnd Bergmann wrote: > On Wed, Apr 6, 2022 at 11:25 AM Jacky Huang wrote: >> On 2022/4/6 下午 03:14, Krzysztof Kozlowski wrote: >>> On 06/04/2022 04:58, Jacky Huang wrote: >>>> config ARCH_MA35D1 >>>> bool "Nuvoton MA35D1 SOC Family" >>> We do not add options for specific SoCs, but for entire families, so >>> ARCH_NUVOTON is correct. >> Yes, I would like to modify it as the following: >> >> config ARCH_NUVOTON >> bool "Nuvoton SoC Family" >> select PINCTRL >> select PINCTRL_MA35D1 >> select PM >> select GPIOLIB >> select SOC_BUS >> help >> This enables support for Nuvoton MA35D1 ARMv8 SoC. >> >> (Currently, we have MA35D1 only in the support list for arm64 SoC.). > You could reword this to "This enables support for Nuvoton ARMv8 SoCs > such as the MA35D1", to prevent this from getting stale, or repeatedly > updated when future SoCs are added. > > Another change you can consider is to remove the 'select PINCTRL_MA35D1' > here and instead change the pinctrl Kconfig entry to > > config PINCTRL_MA35D1 > bool "..." > depends on ARCH_NUVOTON || COMPILE_TEST > default ARCH_NUVOTON > > That way you get it default-enabled when ARCH_NUVOTON is > turned on, or disabled in configurations without ARCH_NUVOTON, > but can make a more fine-grained selection for a particular SoC > if you get more than one such driver in the future. > > Arnd Yes, it looks better. So, I will modify it as: config ARCH_NUVOTON     bool "Nuvoton SoC Family"     select PINCTRL     select PM     select GPIOLIB     select SOC_BUS     help       This enables support for Nuvoton MA35D1 ARMv8 SoC such as MA35D1. And move PINCTRL_MA35D1 to pinctrl Kconfig when we submit the pictrl driver. Thanks you. Jacky