Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp30753imu; Wed, 12 Dec 2018 11:54:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xn09tqnfbHkDnPyOLOar4MYwL3QEUu3FrQCfp+G/Awob0mcvkbiWFfxIqJc4i01zADeRWQ X-Received: by 2002:a63:ec4b:: with SMTP id r11mr908614pgj.44.1544644496737; Wed, 12 Dec 2018 11:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544644496; cv=none; d=google.com; s=arc-20160816; b=Ac+zbpbEnw/5m+tbSnYYyyUo9DUHBjuZ8mmm1mqmCZm7d4+d3gAZxEbuc9UEt8SC58 qaBLXUTNSHzMc8M6MZVErAl91Is2o93zvkLcKsFHDhQWMzcqFhFW/x2xQtex9uc7/YNB tVsJZy8vUOc7ZUitb4gi0Y/4wGkSf6pgc/gOZgbjrf97qfyFFfiTdjxYcpzCGN6S5q+9 aYHvnWFz5wXyvXKRSOxjCnXv7Jn0Gr6xBNl/Q18u/xDQ/grCUJ0Kh2o9RN6wWcRdPUJe 1xbbtYCZyok82q8ZM2VBcw8s9oK2MdZc4TEHA+BJpH1rAWIALt7D7moWeVrxBXuhusE9 lttQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LapSsVY8l2XowptKNrDboeyB5q4mvppPw39uCIZ2zcA=; b=UGV/orp1crHmM10N/fUJ4X5eocjNJ+MjKO+Ao0SaZd8ZwJ/KZvDoAm9U+jqSoznivX uX4n+3V8GyXxxhuWDVzLlyHbjJnWX6ndRiF0L3Tx6jigcGhM0vb9CwpRhawzP2KW0hAU kVjmHaa7Ip2BPyzA6DAf8PFRbNhKRYrR3uaXHNeu14DBOUAYajUBdOsEe2DB9LtLmHxQ Dcs0eP3h4hW9tGb4z/GxLNJv5Xg/0Crx7P6eRu+Rr6AzeyFeevmcxAm+RnLq7JbAgPRe njm/oaAX1adrcBvb1qwaXEMVmpYzVntcryDisOEXt65JCWntyREtyOJ2ipTi7IPk5qEb rkkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="EJEF/grX"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e17si14984224pgj.142.2018.12.12.11.54.38; Wed, 12 Dec 2018 11:54:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="EJEF/grX"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728213AbeLLTxY (ORCPT + 99 others); Wed, 12 Dec 2018 14:53:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:33856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726248AbeLLTxY (ORCPT ); Wed, 12 Dec 2018 14:53:24 -0500 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C6F3E20873; Wed, 12 Dec 2018 19:53:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544644403; bh=BYgV/+3DcIdkFyzb3CQNEnDGu6LB+hzzCchKujS2hn8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EJEF/grX90WeAxTUwKv5hE4zPaTnF3S3BgywcmFHwQJQ//iSgFM127ndJlkaAwY/S C4WEcTLfoPRwQFZW5snPxrbthlD4v4OAvahVdQri4HLBWav9G2tQb4/Zp1MqTMLEYV 1+LFOMUxS34sPm754jmWi7t4elSHb7QSDz0K1KHI= Received: by mail-wm1-f52.google.com with SMTP id c126so93780wmh.0; Wed, 12 Dec 2018 11:53:22 -0800 (PST) X-Gm-Message-State: AA+aEWZ5ewwnIJGoH5F8bXc7nnfiqHLbWXGYwv7+HlmvAG+ejDR8XQDa PMsuPijuxY8C6pVRztWlaUEYJXTSzbc0FVax4ZQ= X-Received: by 2002:a1c:4d12:: with SMTP id o18mr7914496wmh.92.1544644401276; Wed, 12 Dec 2018 11:53:21 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sean Wang Date: Wed, 12 Dec 2018 11:52:48 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] pinctrl: mediatek: improve dependencies for PINCTRL_MTK_MOORE To: =?UTF-8?B?UnlkZXIgTGVlICjmnY7luproq7op?= Cc: Linus Walleij , Matthias Brugger , weijie.gao@mediatek.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 12, 2018 at 1:59 AM Ryder Lee wrote: > > Improve dependencies for the pinctrl drivers which select > PINCTRL_MTK_MOORE as its core layer. > --- > drivers/pinctrl/mediatek/Kconfig | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig > index d8cb584..3a41dc8 100644 > --- a/drivers/pinctrl/mediatek/Kconfig > +++ b/drivers/pinctrl/mediatek/Kconfig > @@ -23,6 +23,7 @@ config PINCTRL_MTK_MOORE > select GENERIC_PINCTRL_GROUPS > select GENERIC_PINMUX_FUNCTIONS > select GPIOLIB > + select EINT_MTK The change can be taken away from the patch as the patch EINT_MTK is optional to the moore core. > select OF_GPIO > > config PINCTRL_MTK_PARIS > @@ -45,14 +46,14 @@ config PINCTRL_MT2701 > config PINCTRL_MT7623 > bool "Mediatek MT7623 pin control with generic binding" > depends on MACH_MT7623 || COMPILE_TEST > - depends on PINCTRL_MTK_MOORE > - default y > + default MACH_MT7623 > + select PINCTRL_MTK_MOORE > > config PINCTRL_MT7629 > bool "Mediatek MT7629 pin control" > depends on MACH_MT7629 || COMPILE_TEST > - depends on PINCTRL_MTK_MOORE > - default y > + default MACH_MT7629 > + select PINCTRL_MTK_MOORE > > config PINCTRL_MT8135 > bool "Mediatek MT8135 pin control" > @@ -93,8 +94,8 @@ config PINCTRL_MT6797 > config PINCTRL_MT7622 > bool "MediaTek MT7622 pin control" > depends on ARM64 || COMPILE_TEST > - depends on PINCTRL_MTK_MOORE > - default y > + default ARM64 && ARCH_MEDIATEK > + select PINCTRL_MTK_MOORE > We can add a change allowing PINCTRL_MTK_MOORE to be a non-visible symbol in the same patch according to the general rules kconfig-language.txt defines. And also turn PINCTRL_MTK_PARIS to non-visible in another patch would be good. Apart from that, the above three changes are fine with me, it helps to be more consistent with other driver and the target SoC would be coupled with the corresponding essential pinctrl driver. > config PINCTRL_MT8173 > bool "Mediatek MT8173 pin control" > -- > 1.9.1 >