All of lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Gantois via U-Boot <u-boot@lists.u-boot-project.org>
To: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de,
	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>
Subject: Re: [PATCH v2 2/2] usb: gadget: Add Renesas RZ/N1 USBF controller support
Date: Tue, 21 Jul 2026 13:35:57 +0200	[thread overview]
Message-ID: <2l1ctkP4Ro2Q97CaOnt-yg@bootlin.com> (raw)
In-Reply-To: <CAFLszThwLCFR+HwhOVa69oGv7NTwcjXvHGtgbFsJ4kbPOweRFA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

Hi Simon,

On Monday, 13 July 2026 15:10:48 CEST Simon Glass wrote:
> Hi Romain,
> 
...
> > diff --git a/drivers/usb/gadget/renesas_usbf.c
> > b/drivers/usb/gadget/renesas_usbf.c @@ -0,0 +1,3036 @@
> > +static int usbf_remove(struct udevice *dev)
> > +{
> > +     struct usbf_udc *udc = dev_get_priv(dev);
> > +
> > +     usb_del_gadget_udc(&udc->gadget);
> > +
> > +     return 0;
> > +}
> 
> Just to check - if the device is removed while the pull-up is still
> asserted, D+ stays driven and interrupts remain enabled at the EPC
> level. Would it be worth calling usbf_detach() here so remove() always
> leaves the hardware quiescent? What do you think?

Sorry for the late response, things have been a bit too busy :).

Sure, while the UDC core does call detach on the device, there are other code 
paths  which could call remove() directly, so it's probably better to call 
detach here just to be safe.

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 --]

      reply	other threads:[~2026-07-21 11:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-02  8:11 [PATCH v2 0/2] usb: gadget: Add Renesas RZ/N1 USBF driver Romain Gantois
2026-07-02  8:11 ` [PATCH v2 1/2] linux/list.h: Add list_is_first() Romain Gantois
2026-07-02  8:11 ` [PATCH v2 2/2] usb: gadget: Add Renesas RZ/N1 USBF controller support Romain Gantois
2026-07-05 16:00   ` Marek Vasut
2026-07-07 19:43   ` Ralph Siemsen
2026-07-13 13:10   ` Simon Glass
2026-07-21 11:35     ` Romain Gantois via U-Boot [this message]

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=2l1ctkP4Ro2Q97CaOnt-yg@bootlin.com \
    --to=u-boot@lists.u-boot-project.org \
    --cc=balaji.selvanathan@oss.qualcomm.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=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 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.