From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: "Alice Guo (OSS)" <alice.guo@oss.nxp.com>,
Stefano Babic <sbabic@nabladev.com>,
Fabio Estevam <festevam@gmail.com>,
"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
Tom Rini <trini@konsulko.com>, Peng Fan <peng.fan@nxp.com>,
Troy Kisky <troy.kisky@boundarydevices.com>,
Adrian Alonso <adrian.alonso@nxp.com>,
Lukasz Majewski <lukma@denx.de>,
Mattijs Korpershoek <mkorpershoek@kernel.org>,
Marek Vasut <marex@denx.de>, Tim Harvey <tharvey@gateworks.com>,
Alice Guo <alice.guo@nxp.com>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH 5/6] usb: dwc3: gadget: Add delay after software writes DCTL in dwc3_gadget_run_stop()
Date: Mon, 29 Sep 2025 10:46:55 +0200 [thread overview]
Message-ID: <87a52dk5mo.fsf@kernel.org> (raw)
In-Reply-To: <20250720-imx95-v1-5-759619b47b1f@oss.nxp.com>
Hi Alice,
Thank you for the patch.
On Sun, Jul 20, 2025 at 06:13, "Alice Guo (OSS)" <alice.guo@oss.nxp.com> wrote:
> From: Alice Guo <alice.guo@nxp.com>
>
> When using NXP UUU to download flash.bin to i.MX95 19x19 evk board, it
> will get stuck in a loop at sdp_init() without this change.
>
> Signed-off-by: Alice Guo <alice.guo@nxp.com>
I see that a similar change exist in the Linux kernel:
https://lore.kernel.org/all/20220901193625.8727-4-quic_wcheng@quicinc.com/
Please mention this change in the commit message for v2.
See the following example:
https://lore.kernel.org/all/20250110-dwc2-dev-v4-7-987f4fd6f8b2@pigmoral.tech/
> ---
> drivers/usb/dwc3/gadget.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
> index 2b01113d54c..6b2b25c7aa5 100644
> --- a/drivers/usb/dwc3/gadget.c
> +++ b/drivers/usb/dwc3/gadget.c
> @@ -1423,6 +1423,7 @@ static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on, int suspend)
> }
>
> dwc3_writel(dwc->regs, DWC3_DCTL, reg);
> + mdelay(2);
Can you elaborate on why 1ms is not enough?
>
> do {
> reg = dwc3_readl(dwc->regs, DWC3_DSTS);
>
> --
> 2.43.0
next prev parent reply other threads:[~2025-09-29 8:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-19 22:13 [PATCH 0/6] imx95: support USB SDP on USB3 interface Alice Guo (OSS)
2025-07-19 22:13 ` [PATCH 1/6] Update VID/PID Alice Guo (OSS)
2025-07-31 19:08 ` Tim Harvey
2025-07-19 22:13 ` [PATCH 2/6] Add serial# for SPL SDP download Alice Guo (OSS)
2025-07-19 22:13 ` [PATCH 3/6] usb: f_sdp: Update SDP driver to support PQC container Alice Guo (OSS)
2025-07-19 22:13 ` [PATCH 4/6] imx95: Remove ROM info USB instance workaround for B0 Alice Guo (OSS)
2025-07-29 16:16 ` Tim Harvey
2025-07-19 22:13 ` [PATCH 5/6] usb: dwc3: gadget: Add delay after software writes DCTL in dwc3_gadget_run_stop() Alice Guo (OSS)
2025-09-29 8:46 ` Mattijs Korpershoek [this message]
2025-10-09 10:16 ` 回复: [EXT] " Alice Guo
2025-10-09 10:20 ` Alice Guo
2025-10-09 10:22 ` Alice Guo
2025-10-09 10:23 ` Alice Guo
2025-10-09 10:34 ` 回复: " Alice Guo (OSS)
2025-10-09 12:38 ` Mattijs Korpershoek
2025-07-19 22:13 ` [PATCH 6/6] imx95: Add support for booting from USB SDP on USB3 Alice Guo (OSS)
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=87a52dk5mo.fsf@kernel.org \
--to=mkorpershoek@kernel.org \
--cc=adrian.alonso@nxp.com \
--cc=alice.guo@nxp.com \
--cc=alice.guo@oss.nxp.com \
--cc=festevam@gmail.com \
--cc=lukma@denx.de \
--cc=marex@denx.de \
--cc=peng.fan@nxp.com \
--cc=sbabic@nabladev.com \
--cc=tharvey@gateworks.com \
--cc=trini@konsulko.com \
--cc=troy.kisky@boundarydevices.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.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.