From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Michal Simek <michal.simek@xilinx.com>
Cc: Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>,
Linus Walleij <linus.walleij@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
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
Date: Wed, 24 Mar 2021 09:49:30 +0100 [thread overview]
Message-ID: <YFr9GqNmYuEG2OvZ@kroah.com> (raw)
In-Reply-To: <e0a2c5b6-ff05-644c-8c88-b614a37b4929@xilinx.com>
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 <lakshmi.sai.krishna.potthuri@xilinx.com>
> >> ---
> >> 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
WARNING: multiple messages have this Message-ID (diff)
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Michal Simek <michal.simek@xilinx.com>
Cc: Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>,
Linus Walleij <linus.walleij@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
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
Date: Wed, 24 Mar 2021 09:49:30 +0100 [thread overview]
Message-ID: <YFr9GqNmYuEG2OvZ@kroah.com> (raw)
In-Reply-To: <e0a2c5b6-ff05-644c-8c88-b614a37b4929@xilinx.com>
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 <lakshmi.sai.krishna.potthuri@xilinx.com>
> >> ---
> >> 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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-03-24 8:50 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-17 8:25 [PATCH v4 0/3] Add ZynqMP pinctrl driver Sai Krishna Potthuri
2021-03-17 8:25 ` Sai Krishna Potthuri
2021-03-17 8:25 ` [PATCH v4 1/3] firmware: xilinx: Add pinctrl support Sai Krishna Potthuri
2021-03-17 8:25 ` Sai Krishna Potthuri
2021-03-17 8:25 ` [PATCH v4 2/3] dt-bindings: pinctrl: Add binding for ZynqMP pinctrl driver Sai Krishna Potthuri
2021-03-17 8:25 ` Sai Krishna Potthuri
2021-03-25 9:00 ` Linus Walleij
2021-03-25 9:00 ` Linus Walleij
2021-03-17 8:25 ` [PATCH v4 3/3] pinctrl: Add Xilinx ZynqMP pinctrl driver support Sai Krishna Potthuri
2021-03-17 8:25 ` Sai Krishna Potthuri
2021-03-17 12:55 ` Andy Shevchenko
2021-03-17 12:55 ` Andy Shevchenko
2021-03-18 14:42 ` Sai Krishna Potthuri
2021-03-18 14:42 ` Sai Krishna Potthuri
2021-03-19 10:23 ` Andy Shevchenko
2021-03-19 10:23 ` Andy Shevchenko
2021-03-22 15:25 ` Sai Krishna Potthuri
2021-03-22 15:25 ` Sai Krishna Potthuri
2021-03-22 17:16 ` Andy Shevchenko
2021-03-22 17:16 ` Andy Shevchenko
2021-03-23 8:08 ` Sai Krishna Potthuri
2021-03-23 8:08 ` Sai Krishna Potthuri
2021-03-25 8:57 ` Linus Walleij
2021-03-25 8:57 ` Linus Walleij
2021-03-25 10:15 ` Sai Krishna Potthuri
2021-03-25 10:15 ` Sai Krishna Potthuri
2021-03-23 13:42 ` Greg Kroah-Hartman
2021-03-23 13:42 ` Greg Kroah-Hartman
2021-03-24 8:29 ` Michal Simek
2021-03-24 8:29 ` Michal Simek
2021-03-24 8:49 ` Greg Kroah-Hartman [this message]
2021-03-24 8:49 ` Greg Kroah-Hartman
2021-03-24 9:02 ` Michal Simek
2021-03-24 9:02 ` Michal Simek
2021-03-24 9:13 ` Greg Kroah-Hartman
2021-03-24 9:13 ` Greg Kroah-Hartman
2021-03-24 9:16 ` Michal Simek
2021-03-24 9:16 ` Michal Simek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YFr9GqNmYuEG2OvZ@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=devicetree@vger.kernel.org \
--cc=git@xilinx.com \
--cc=lakshmi.sai.krishna.potthuri@xilinx.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=robh+dt@kernel.org \
--cc=saikrishna12468@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.