From: Romain Gantois via U-Boot <u-boot@lists.u-boot-project.org>
To: u-boot@lists.denx.de, Marek Vasut <marek.vasut@mailbox.org>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Tom Rini <trini@konsulko.com>, Lukasz Majewski <lukma@denx.de>,
Mattijs Korpershoek <mkorpershoek@kernel.org>,
Marek Vasut <marex@denx.de>,
Nobuhiro Iwamatsu <iwamatsu@nigauri.org>,
Quentin Schulz <quentin.schulz@cherry.de>,
Kever Yang <kever.yang@rock-chips.com>,
Peter Robinson <pbrobinson@gmail.com>,
Jonas Karlman <jonas@kwiboo.se>,
George Chan <gchan9527@gmail.com>,
Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>,
Herve Codina <herve.codina@bootlin.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Ralph Siemsen <ralph.siemsen@linaro.org>,
Simon Glass <sjg@chromium.org>, Peng Fan <peng.fan@nxp.com>,
Kory Maincent <kory.maincent@bootlin.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Kuan-Wei Chiu <visitorckw@gmail.com>,
Raymond Mao <raymond.mao@riscstar.com>,
Stefan Roese <stefan.roese@mailbox.org>,
Philip Molloy <philip.molloy@analog.com>,
Jerome Forissier <jerome.forissier@arm.com>,
David Lechner <dlechner@baylibre.com>,
Julien Stephan <jstephan@baylibre.com>,
Johan Jonker <jbx6244@gmail.com>,
Bastien Curutchet <bastien.curutchet@bootlin.com>
Subject: Re: [PATCH v3 2/2] usb: gadget: Add Renesas RZ/N1 USBF controller support
Date: Fri, 24 Jul 2026 07:15:24 +0200 [thread overview]
Message-ID: <31ghNLzIQOah4QfwbFFCUw@bootlin.com> (raw)
In-Reply-To: <32d38204-8f6e-4a56-923e-b73b08eec87b@mailbox.org>
[-- Attachment #1: Type: text/plain, Size: 1622 bytes --]
Hi Marek,
On Thursday, 23 July 2026 21:53:08 CEST Marek Vasut wrote:
> On 7/23/26 11:09 AM, Romain Gantois wrote:
> > From: Herve Codina <herve.codina@bootlin.com>
> >
> > Add support for the Renesas USBF controller. This is an USB2.0 UDC
> > controller available in the RZ/N1 SoC.
> >
> > This driver was originally written by Hervé Codina for the Linux kernel.
> >
> > Linux revision this was ported from:
> >
> > 74851fbb6d64 ("usb: gadget: renesas_usbf: Handle devm_pm_runtime_enable()
> > errors")
> >
> > The following features were removed to reduce the memory footprint of the
> >
> > driver, and to avoid including features not relevant to U-Boot:
> > - Suspend/resume
> > - Handling of endpoints > 2
>
> The code seems to handle 3 endpoints ?
>
Yes, I'm talking in terms of USB endpoint numbers here, so endpoints 0-2 are
handled.
> > +/* Only handle the first three endpoints for now. This is sufficient to
> > + * expose classic bootloader gadgets such as Fastboot or DFU.
> > + */
> > +#define USBF_NUM_ENDPOINTS 3
>
> But why not handle the additional endpoints ?
>
Because I didn't see a major use case for them in U-Boot, and removing their
handling allowed a reduction in code and program volume which seems relevant
for U-Boot.
> Also, can you test whether 'ums 0 mmc 0.1,0.2,0' works to expose eMMC HW
> BOOT partitions and HW USER partition as three separate UMS devices over
> the same USB connection ?
Sure, I'll give it a try.
Thanks,
--
Romain Gantois, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2026-07-24 5:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 9:09 [PATCH v3 0/2] usb: gadget: Add Renesas RZ/N1 USBF driver Romain Gantois via U-Boot
2026-07-23 9:09 ` [PATCH v3 1/2] linux/list.h: Add list_is_first() Romain Gantois via U-Boot
2026-07-23 9:09 ` [PATCH v3 2/2] usb: gadget: Add Renesas RZ/N1 USBF controller support Romain Gantois via U-Boot
2026-07-23 19:53 ` Marek Vasut via U-Boot
2026-07-24 5:15 ` Romain Gantois via U-Boot [this message]
2026-07-24 15:19 ` Marek Vasut via U-Boot
2026-07-24 7:46 ` Mattijs Korpershoek
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=31ghNLzIQOah4QfwbFFCUw@bootlin.com \
--to=u-boot@lists.u-boot-project.org \
--cc=balaji.selvanathan@oss.qualcomm.com \
--cc=bastien.curutchet@bootlin.com \
--cc=dlechner@baylibre.com \
--cc=gchan9527@gmail.com \
--cc=herve.codina@bootlin.com \
--cc=ilias.apalodimas@linaro.org \
--cc=iwamatsu@nigauri.org \
--cc=jbx6244@gmail.com \
--cc=jerome.forissier@arm.com \
--cc=jonas@kwiboo.se \
--cc=jstephan@baylibre.com \
--cc=kever.yang@rock-chips.com \
--cc=kory.maincent@bootlin.com \
--cc=lukma@denx.de \
--cc=marek.vasut@mailbox.org \
--cc=marex@denx.de \
--cc=mkorpershoek@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=pbrobinson@gmail.com \
--cc=peng.fan@nxp.com \
--cc=philip.molloy@analog.com \
--cc=quentin.schulz@cherry.de \
--cc=ralph.siemsen@linaro.org \
--cc=raymond.mao@riscstar.com \
--cc=romain.gantois@bootlin.com \
--cc=sjg@chromium.org \
--cc=stefan.roese@mailbox.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=visitorckw@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox