From: Arnaud POULIQUEN <arnaud.pouliquen@foss.st.com>
To: Shenwei Wang <shenwei.wang@nxp.com>, Linus Walleij <linusw@kernel.org>
Cc: Andrew Lunn <andrew@lunn.ch>,
Bartosz Golaszewski <brgl@kernel.org>,
Jonathan Corbet <corbet@lwn.net>, Rob Herring <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
"Bjorn Andersson" <andersson@kernel.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Frank Li <frank.li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Shuah Khan <skhan@linuxfoundation.org>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>, "Peng Fan" <peng.fan@nxp.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-remoteproc@vger.kernel.org"
<linux-remoteproc@vger.kernel.org>,
"imx@lists.linux.dev" <imx@lists.linux.dev>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
dl-linux-imx <linux-imx@nxp.com>,
Bartosz Golaszewski <brgl@bgdev.pl>
Subject: Re: [PATCH v8 3/4] gpio: rpmsg: add generic rpmsg GPIO driver
Date: Tue, 24 Feb 2026 09:46:54 +0100 [thread overview]
Message-ID: <64ef5dbf-6264-4758-a5d8-d8c52c359fcc@foss.st.com> (raw)
In-Reply-To: <PAXPR04MB91859B642802813F908B03DA8977A@PAXPR04MB9185.eurprd04.prod.outlook.com>
Hello Shenwei
On 2/23/26 21:33, Shenwei Wang wrote:
>
>
>> -----Original Message-----
>> From: Arnaud POULIQUEN <arnaud.pouliquen@foss.st.com>
>> Sent: Monday, February 23, 2026 8:25 AM
>> To: Linus Walleij <linusw@kernel.org>; Shenwei Wang
>> <shenwei.wang@nxp.com>
>> Cc: Andrew Lunn <andrew@lunn.ch>; Bartosz Golaszewski <brgl@kernel.org>;
>> Jonathan Corbet <corbet@lwn.net>; Rob Herring <robh@kernel.org>; Krzysztof
>> Kozlowski <krzk+dt@kernel.org>; Conor Dooley <conor+dt@kernel.org>; Bjorn
>> Andersson <andersson@kernel.org>; Mathieu Poirier
>> <mathieu.poirier@linaro.org>; Frank Li <frank.li@nxp.com>; Sascha Hauer
>> <s.hauer@pengutronix.de>; Shuah Khan <skhan@linuxfoundation.org>; linux-
>> gpio@vger.kernel.org; linux-doc@vger.kernel.org; linux-kernel@vger.kernel.org;
>> Pengutronix Kernel Team <kernel@pengutronix.de>; Fabio Estevam
>> <festevam@gmail.com>; Peng Fan <peng.fan@nxp.com>;
>> devicetree@vger.kernel.org; linux-remoteproc@vger.kernel.org;
>> imx@lists.linux.dev; linux-arm-kernel@lists.infradead.org; dl-linux-imx <linux-
>> imx@nxp.com>; Bartosz Golaszewski <brgl@bgdev.pl>
>> Subject: [EXT] Re: [PATCH v8 3/4] gpio: rpmsg: add generic rpmsg GPIO driver
>> Hello Linus,
>>
>> On 2/22/26 15:48, Linus Walleij wrote:
>>> On Fri, Feb 20, 2026 at 7:57 PM Shenwei Wang <shenwei.wang@nxp.com>
>> wrote:
>>>
>>>> Given that, I’d like to hear from the GPIO subsystem maintainers —
>>>> @Linus Walleij and @Bartosz Golaszewski — on whether a driver that
>>>> works with the current hardware/firmware design could still be
>>>> acceptable for upstream inclusion. My understanding is that upstream
>> generally supports existing, real-world hardware as long as the driver meets
>> subsystem standards.
>>>
>>> What a swell party this has become.
>>>
>>> In this kind of situations I usually refer to
>>> Documentation/process/management-style.rst
>>>
>>
>> Thank you for pointing out the document, I was not aware of its existence. Very
>> informative!
>> That help me to understand you proposal below.
>>
>>
>>> What is the message I as a maintainer is getting from NXP regarding
>>> "gpio: rpmsg: add generic rpmsg GPIO driver"?
>>>
>>> Arnaud, who is the only person in this discussion who actually wrote a
>>> standard RPMSG driver (drivers/tty/rpmsg_tty.c), must ACK this patch
>>> if it wants to call itself a "generic" RPMSG GPIO driver, if he does
>>> not, then it isn't.
>>
>> In Fact there are already 2 "generic" drivers, the second one it the
>> drivers/rpmsg/rpmsg_char.c, both are used on several platforms.
>>
>> It is in my plan to test the rpmsg-gpio on ST platform if we go with the generic
>> approach.
>>
>>>
>>> Is it generic? If it is not, let's call it "NXP rpmsg GPIO driver" and
>>> rename files etc accordingly. Maybe it can share code with the actual
>>> generic RPMSG driver once that arrives, that is more of a library question.
>>
>> I would like to (re)express my concerns regarding the creation of an NXP-specific
>> driver. To clarify my concerns, ST, like probably some other SoC vendors, has
>> rpmsg-gpio and rpmsg-i2c drivers in downstream with plans to upstream them.
>>
>
> Linus, thank you for jumping in and providing the guidance.
>
> I would like to clarify one point here: what we are discussing now is not whether the
> driver itself is generic, but rather that the current protocol is not as perfect as Arnaud
> would expect, since it contains a few fields that may not be required on their platforms.
>
> Arnaud, if you agree with the points above, my proposal is the following:
> - Remove the fields you mentioned in the protocol and update the driver accordingly so
> that we can establish a true baseline for a generic implementation we all agree.
> - Then prepare a separate patch to add support for existing NXP platforms by introducing
> the necessary fix‑up functions.
>
> Please let me know if this approach works for you. My goal is to find a solution that works for
> everyone — even though I know that pleasing everyone is almost impossible.
This looks reasonable to me, but I am not a maintainer, so I will let
maintainers share their opinions on your proposition.
Please note that you have also to answer to Bjorn and Mathieu about the
rational to use RPMsg instead of the virtio protocol.
For the ST platform, the main advantage of RPMsg is the ability to mix
buses on one virtio interface, whereas Virtio requires allocating vrings
and mailbox channels per Virtio type. When data rate is not the
priority, RPMsg may be preferable.
Another limitation e observed, when prototyping a virtio-i2c between
Linux and a remote processor is the allocation of specific DMA memory
region shared between the processors[1].
[1]
https://github.com/arnopo/linux/commit/ae47a1cbf95125ab10952283622653d626e56e6a
Thanks and regards,
Arnaud
>
> Thanks,
> Shenwei
>
>> If we proceed in this direction:
>>
>> -Any vendor wishing to upstream an rpmsg-gpio driver might submit their own
>> platform-specific version.
>>
>> - If NXP upstreams other rpmsg drivers, these will likely remain NXP-centric to
>> maintain compatibility with their legacy firmware and the nxp-rpmsg-gpio driver,
>> leading to platform-specific versions in several frameworks.
>>
>> - The implementation will impact not only the Linux side but also the remote side.
>> Indeed, some operating systems like Zephyr or NuttX implement the rpmsg device
>> side (Zephyr already implements the rpmsg-tty)
>>
>> Maintaining a generic approach for RPMsg, similar to what is done for Virtio,
>> seems to me a more reliable solution, even though it may induce some
>> downstream costs (ST would also need to break compatibility with legacy ST
>> remote proc firmware).
>>
>>
>> In the end, I am just trying to influence the direction for RPMsg, but based on the
>> discussions in this thread, it seems others share similar expectations, which
>> should probably be taken into account as well.
>>
>> Thanks and Regards,
>> Arnaud
>>
>>
>> I just want to
>>
>>>
>>> Yours,
>>> Linus Walleij
>
next prev parent reply other threads:[~2026-02-24 8:47 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-12 21:36 [PATCH v8 0/4] Enable Remote GPIO over RPMSG on i.MX Platform Shenwei Wang
2026-02-12 21:36 ` [PATCH v8 1/4] docs: driver-api: gpio: rpmsg gpio driver over rpmsg bus Shenwei Wang
2026-02-12 21:36 ` [PATCH v8 2/4] dt-bindings: remoteproc: imx_rproc: Add "rpmsg" subnode support Shenwei Wang
2026-02-12 21:36 ` [PATCH v8 3/4] gpio: rpmsg: add generic rpmsg GPIO driver Shenwei Wang
2026-02-18 10:20 ` Bartosz Golaszewski
2026-02-18 16:28 ` Shenwei Wang
2026-02-19 9:20 ` Arnaud POULIQUEN
2026-02-19 13:26 ` Andrew Lunn
2026-02-19 14:17 ` Shenwei Wang
2026-02-19 15:25 ` Andrew Lunn
2026-02-19 16:42 ` Shenwei Wang
2026-02-19 13:42 ` Andrew Lunn
2026-02-20 9:16 ` Arnaud POULIQUEN
2026-02-20 13:48 ` Andrew Lunn
2026-02-20 16:36 ` Shenwei Wang
2026-02-20 17:45 ` Andrew Lunn
2026-02-20 18:57 ` Shenwei Wang
2026-02-20 20:21 ` Mathieu Poirier
2026-02-20 20:59 ` Andrew Lunn
2026-02-22 14:48 ` Linus Walleij
2026-02-23 14:24 ` Arnaud POULIQUEN
2026-02-23 14:42 ` Bjorn Andersson
2026-02-24 15:56 ` Shenwei Wang
2026-02-24 16:04 ` Daniel Baluta
2026-02-24 16:56 ` Shenwei Wang
2026-02-24 18:09 ` Mathieu Poirier
2026-02-24 20:16 ` Shenwei Wang
2026-02-24 20:41 ` Mathieu Poirier
2026-02-24 21:12 ` Shenwei Wang
2026-02-24 22:14 ` Andrew Lunn
2026-02-24 22:43 ` Shenwei Wang
2026-02-25 15:52 ` Bjorn Andersson
2026-02-25 17:54 ` Shenwei Wang
2026-02-25 19:43 ` Bjorn Andersson
2026-02-25 20:31 ` Shenwei Wang
2026-02-25 21:02 ` Bjorn Andersson
2026-02-27 0:00 ` Linus Walleij
2026-02-23 20:33 ` Shenwei Wang
2026-02-24 8:46 ` Arnaud POULIQUEN [this message]
2026-02-24 16:05 ` Shenwei Wang
2026-02-24 17:31 ` Andrew Lunn
2026-02-24 17:54 ` Shenwei Wang
2026-02-24 18:18 ` Andrew Lunn
2026-02-24 19:51 ` Shenwei Wang
2026-02-24 21:01 ` Andrew Lunn
2026-02-24 21:18 ` [EXT] " Shenwei Wang
2026-02-24 22:22 ` Andrew Lunn
2026-02-24 22:31 ` Shenwei Wang
2026-02-24 22:47 ` Mathieu Poirier
2026-02-25 15:18 ` Shenwei Wang
2026-02-24 18:26 ` Andrew Lunn
2026-02-24 20:33 ` Shenwei Wang
2026-02-24 9:37 ` Linus Walleij
2026-02-19 20:04 ` Shenwei Wang
2026-02-19 20:50 ` Andrew Lunn
2026-02-19 21:12 ` Shenwei Wang
2026-02-20 9:12 ` Arnaud POULIQUEN
2026-02-20 15:47 ` Shenwei Wang
2026-02-20 16:19 ` Andrew Lunn
2026-02-20 17:09 ` Shenwei Wang
2026-02-20 17:42 ` Andrew Lunn
2026-02-20 19:09 ` Shenwei Wang
2026-02-20 20:41 ` Andrew Lunn
2026-02-19 21:13 ` Shenwei Wang
2026-02-20 9:32 ` Arnaud POULIQUEN
2026-02-20 15:12 ` Shenwei Wang
2026-02-12 21:36 ` [PATCH v8 4/4] arm64: dts: imx8ulp: Add rpmsg node under imx_rproc Shenwei Wang
2026-02-20 9:18 ` [PATCH v8 0/4] Enable Remote GPIO over RPMSG on i.MX Platform Daniel Baluta
2026-02-20 15:24 ` Shenwei Wang
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=64ef5dbf-6264-4758-a5d8-d8c52c359fcc@foss.st.com \
--to=arnaud.pouliquen@foss.st.com \
--cc=andersson@kernel.org \
--cc=andrew@lunn.ch \
--cc=brgl@bgdev.pl \
--cc=brgl@kernel.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=frank.li@nxp.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=peng.fan@nxp.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shenwei.wang@nxp.com \
--cc=skhan@linuxfoundation.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox