Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2469pxf; Wed, 24 Mar 2021 18:56:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7vCoVxr//pEOxwaZWt1xlzsFb7d0p6Hv3mXxrcDSG1KmgNGrwns0aNDv+QBX/l6HAAJ0w X-Received: by 2002:a17:906:2504:: with SMTP id i4mr6846009ejb.115.1616637389410; Wed, 24 Mar 2021 18:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616637389; cv=none; d=google.com; s=arc-20160816; b=HCjhCfDfO/xZlYB+kSAEKYBC2rrPkFleoHikV7093vC6rR1AHa4y3hGOMDgiiC1736 GmKPtJdBpHk2KXkKlxnch2ulxlM4kJ7UWBrXFo4u1kadX3PcAhB7Q4OqMi7O7YNDK8U4 Y0zeNMyYt8OUlGN3Sy8WOQHIsJUbZ+8KDpwXZOH90UeYPkJd/5FGXiRVq/E4ns2ukcxx S27ARAD9vRbCH4QrgbVYzJ0OnT1QAt4KbqCg9vf/Xs/5OHqyQWQI2ztaf3ijgTAUbvYc y69R6V16HfZDABYmTRDCbL0GHcoLuUr1d90mNO2fP3ix5Ki0tBDd35VXcdARaAwVgCRN 7obA== 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; bh=aPj719r8K+ct70+pqP6GLc7EWboRw9bwj9baa95vNoE=; b=dHsnZGO9kUdrahoSKvQRBewFZIpTDdGH/2KrunN9xzfNR64V6+mTxeGU3+LGn3gQ3D b/1slEQr2pLX0hEDPXkWk8ia1Vvi4scvJmTn5ZGiMX2XcUC3+hnC46WCOSnMlbrIBz98 /0SAJQMvfM+ocNdtydQQC82slTzZIK38iyuybL1EmaWba5pMcjlf547Jrf0Pf7TpHpAO up8J/OE16CBvib5MaN6JfXfTv0gRMGpCmBCvpzK93Yl/EQKWaI/mfIxMw8KNzZBRY16a aiDRukJ02Uf6Qt/iyoF9VdGDY1iW0CaSbm6Y8+3oF08Hvnni2g+QRwCKNrygeMmPLuBY XYoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i68Wn4kR; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si3200506edc.119.2021.03.24.18.55.58; Wed, 24 Mar 2021 18:56:29 -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=@linuxfoundation.org header.s=korg header.b=i68Wn4kR; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234231AbhCXItr (ORCPT + 99 others); Wed, 24 Mar 2021 04:49:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:48728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233665AbhCXIth (ORCPT ); Wed, 24 Mar 2021 04:49:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 36334619F3; Wed, 24 Mar 2021 08:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616575776; bh=2BfN8HjU6Yqu1jm8Q2KPZxQUG2HzfOk+giTYXadvfxk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i68Wn4kRgN9HOH4r+Hu9KZ4lEeWOj/4xq/sEICeE+8Slo08DZslqXbDQSYl7Ws/6N 9ok96yCg4UHx6go58CHP092FvzvwVYJzPKkqUnC7y5PP+KncLkFRJZEJ76rowpo8oV Yt62DpXuYcDXrUB9Im29qd3Zkpzb4chGE1FWE0GM= Date: Wed, 24 Mar 2021 09:49:30 +0100 From: Greg Kroah-Hartman To: Michal Simek Cc: Sai Krishna Potthuri , Linus Walleij , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, git@xilinx.com, saikrishna12468@gmail.com Subject: Re: [PATCH v4 3/3] pinctrl: Add Xilinx ZynqMP pinctrl driver support Message-ID: References: <1615969516-87663-1-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> <1615969516-87663-4-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 24, 2021 at 09:29:12AM +0100, Michal Simek wrote: > On 3/23/21 2:42 PM, Greg Kroah-Hartman wrote: > > On Wed, Mar 17, 2021 at 01:55:16PM +0530, Sai Krishna Potthuri wrote: > >> Adding pinctrl driver for Xilinx ZynqMP platform. > >> This driver queries pin information from firmware and registers > >> pin control accordingly. > >> > >> Signed-off-by: Sai Krishna Potthuri > >> --- > >> drivers/pinctrl/Kconfig | 13 + > >> drivers/pinctrl/Makefile | 1 + > >> drivers/pinctrl/pinctrl-zynqmp.c | 1030 ++++++++++++++++++++++++++++++ > >> 3 files changed, 1044 insertions(+) > >> create mode 100644 drivers/pinctrl/pinctrl-zynqmp.c > >> > >> diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig > >> index 815095326e2d..25d3c7208975 100644 > >> --- a/drivers/pinctrl/Kconfig > >> +++ b/drivers/pinctrl/Kconfig > >> @@ -341,6 +341,19 @@ config PINCTRL_ZYNQ > >> help > >> This selects the pinctrl driver for Xilinx Zynq. > >> > >> +config PINCTRL_ZYNQMP > >> + bool "Pinctrl driver for Xilinx ZynqMP" > > > > Please make this work as a module. > > The most of pinctrl drivers are builtin modules now which is not excuse > it is just fact. > $ git grep module_pla drivers/pinctrl/ | wc -l > 40 > $ git grep builtin_pla drivers/pinctrl/ | wc -l > 64 For new ones, we can do better, don't make us have to go back and fix this up later. > Also at least last 3 pinctrl drivers which have been merged are not modules. > d4c34d09ab03 ("pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driver") > 7e5ea974e61c ("pinctrl: pinctrl-microchip-sgpio: Add pinctrl driver for > Microsemi Serial GPIO") > a68a7844264e ("pinctrl: visconti: Add Toshiba Visconti SoCs pinctrl > support") > > None is saying that it can't be done but that cases where you use > pinctrl as module are really very limited. When you start to use pinctrl > and its functionality you need to have it as the part of the kernel to > be to get console, mmc, ethernet, usb, etc. > > That's why I would like to know what functionality and use case you have > in mind that this driver should be made module. The "functionality" of building a kernel image that works on all hardware types. Just like x86-64 has been for a very long time :) thanks, greg k-h