Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp298165pxj; Fri, 28 May 2021 04:21:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWyKMixBGKMO49+eMsK05w9ZjyqJ2d9DRBDRQxD2uzMrZbKIrz3Lzhd7Y8lLCrHCzJuFwV X-Received: by 2002:a05:6402:51ce:: with SMTP id r14mr9492231edd.151.1622200912451; Fri, 28 May 2021 04:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622200912; cv=none; d=google.com; s=arc-20160816; b=tzrXTk3K60vs/KBb1yF2q4tgUE9x800dCfMBSfuVffZ0+Nl4+7dG5KyHRKTbpEF3XJ RO04p6UfTdORMhAOizmCPIrQZ2rNhljztXIHuBe+GkFOjrjag1iYYlhDEVDe2buBmS2V ZcOHE2iQufwyr+tXPJ3L2f+Js+sbjBcVXdPDBDYdEni58MJMtHuSIzko+6CcHmeO3qrH Iu15e7yP6sN7MXQVtm1B/GJKTpV+XnSpe7BD6N0XfQTdCbWcFaCBs2AbYYAG/n6FhA85 9Y45Mt6LuNxtN9KRvXe3j5MmOEzyCi4DvWEyf4AE7z4S2kKfggU3071TEO8+Xb85aP/q CC0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=5gOo9XlXeIcJcN3mKNKsVRuTMZidkXJdJFY7UpCdhX4=; b=LzxP5dnFemulWZHrVhb0+61nHSICDv7911dLmLtN42mPnb9gOfEpDQYpe3DaWSqIPr u4vYK5Iu5dmu6MJ5h31yBbTe9utOIzqfbKYXXCkVR7i0hzFUJwNvYciZ4IE+Q0iOIX0G L6vAkxOuk5UcXqKX4T1WKB9uY4vA5plT4c4G9+c4oGslaG6lt07pUFcoQHcGZW/J/0Uo lWiTtsj01mp5xwXdRguQVtK6tWAtrTXijIJilFjAiZmH6LNq3+6ppl3I5X7fyDVHDHvc YO0LUHxHo8mLtANgHokNl2XjJO4g4odFax8jRrVlx6Nyt10Y/ggaNsmEZ34VWQ5kU63i Qhiw== 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 ca23si3182183edb.543.2021.05.28.04.21.28; Fri, 28 May 2021 04:21:52 -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 S234984AbhE1H4n (ORCPT + 99 others); Fri, 28 May 2021 03:56:43 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:37603 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234430AbhE1H4m (ORCPT ); Fri, 28 May 2021 03:56:42 -0400 Received: from mail-wr1-f54.google.com ([209.85.221.54]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MD9Kj-1ldyd13tQH-009AlW for ; Fri, 28 May 2021 09:55:06 +0200 Received: by mail-wr1-f54.google.com with SMTP id r10so2277592wrj.11 for ; Fri, 28 May 2021 00:55:06 -0700 (PDT) X-Gm-Message-State: AOAM532MPSsrnF36mqjS0OuGYprczzzKUZxbEwrpoIm1MafWJr55y4lz 9qiOLSoIN8Uc1wTHsN/oSZiBJ3JJL7CIJo/hReE= X-Received: by 2002:a05:6000:1b0b:: with SMTP id f11mr7342217wrz.165.1622188506607; Fri, 28 May 2021 00:55:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Fri, 28 May 2021 09:53:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: imx: only enable pinctrl as needed To: Esben Haabendal Cc: Shawn Guo , Sascha Hauer , Rasmus Villemoes , Russell King , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Nobuhiro Iwamatsu , Linux ARM , Linux Kernel Mailing List , Linus Walleij Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:gt4cA1GgoMHRZ98J2I02Mo35o2S92yAxbOjfsm3fk4VvPVFtecX LX8rV3jlOI7TEc/zNAzqYpVeso3h8t95e317HLRJLJgJ2AVgkW9b2Cl/ZV5up7InWmR3hkL U2pC+G2wHuwneeeyh7UhKj9G68MBh6Kykp/cb7+nYaxmbfuw4JsuItK2aLocq09T1vA28mA comJayP/isE3f0bda00hw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:N/ySsRk9ywg=:I28dxJS5eP5VsZo/PH8UvF Aym0MDq80wcDg1McPkpssiq6IL6OAbnEKXec+OHoC658aaorAWY/xiWgPjFCwUkr2EzH7grXf DoL8ZzWeloNWfEh7pOusUcWSa4gOrSt94YZpzmNOXsbO355+bP/zJwjW2FH8FXA3Fzbc7D+YN Q2yfa+2teNRfX46Ok/dh5rdQ66uOQh24JOrwQf1rkf/oITTDqki88I1rAVj9TKn2rC6155pBx OXZbS/hMiDsKddcYaHrID1mS3Z7jd4WMkV5rwXMsTRsxLpAGgziAEyaqYQuSPb92UIfTJw9m6 m0Vd9rWDDBCZr+TThdH43RCPzJlKN0QAcjk/FTLG9kJXNEq5tPvtm7arNg2RXDfLV/TC5Mj+F 8o39Ij4511I+HQiOh8/6gaEtn6wNpwW8mNvLc60baxja4N+DKu4/vBA2a4tlUqVvEShlEyvbz 2gnKybBiYwxBmIXoxEg5Sa89mXSXDRXcIN8pZyk/DyzE1iOIn43Y61ZrwUpFoqFQ6AXDdcvtU q0BISCXarGCBLxdjA4nd/EUyrcCSIS9Nlxz8apypP0yUyJwM9anaKx+gJiFtpHZwtShvkQk9S ObU+I2kbbmKNp/V8Z7i+uXcC5AFt1p7Q/ruiBwQjRssMccRWdvKTv99rAnsGmnojOAjwyiN1i f+0w= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 25, 2021 at 1:22 PM Esben Haabendal wrote: > > As not all mach-imx platforms has support for run-time changes of pin > configurations (such as LS1021A), a more selective approach to enabling > pinctrl infrastructure makes sense, so that an e.g. an LS1021A only kernel > could be built without pinctrl support. > > Signed-off-by: Esben Haabendal I think it would be even better to leave all these drivers to be user-configurable. The symbols are currently defined as e.g. config PINCTRL_IMX51 bool "IMX51 pinctrl driver" depends on SOC_IMX51 select PINCTRL_IMX help Say Y here to enable the imx51 pinctrl driver which could be changed to config PINCTRL_IMX51 bool "IMX51 pinctrl driver" if COMPILE_TEST && !SOC_IMX51 depends on OF default SOC_IMX51 select PINCTRL_IMX help Say Y here to enable the imx51 pinctrl driver Today, having it configurable is pointless because you can't turn it off when SOC_IMX51 is set, and you can't turn it on when SOC_IMX51 is disabled. The second version allows turning off PINCTRL completely though, as we do for other top-level subsystems that would likely make the system unusable when disabled (block, serial, ...), and it allows compile-testing on other machines, provided some dependencies (CONFIG_OF in the example) are met. It could theoretically also allow making it a 'tristate' option, as we do for an increasing number of drivers. Arnd