All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>,
	u-boot@lists.u-boot-project.org
Cc: Marek Vasut <marex@denx.de>, Tom Rini <trini@konsulko.com>,
	Mattijs Korpershoek <mkorpershoek@kernel.org>,
	Chris Morgan <macromorgan@hotmail.com>,
	Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
Subject: Re: [PATCH] Revert "drivers: usb: dwc3: Add delay after core soft reset"
Date: Fri, 24 Jul 2026 15:42:08 +0200	[thread overview]
Message-ID: <87ldb07bdb.fsf@kernel.org> (raw)
In-Reply-To: <20260724-kodiak_delay-v1-1-57b687e6d67c@oss.qualcomm.com>

Hi Balaji,

Thank you for the patch.

On Fri, Jul 24, 2026 at 14:58, Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com> wrote:

> This reverts commit 6de333b5caf035c38d7af9fa7596aeffcc49db42.
>
> The delay is unnecessary. Upstream Linux does not add this delay after
> the core soft reset and the USB works fine without it.
>
> Tested in QCS6490 RB3Gen2 Qualcomm board.
>
> Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
> ---
> - This is part of ongoing initiative to reduce boot time across all
>   Qualcomm boards. So we can remove this unnecessary delay.
> - Actually, this delay was removed in the Kodiak v4 series:
>   https://lore.kernel.org/u-boot/20260418-kodiak_ss-v4-0-d381670c9d78@oss.qualcomm.com/
>   but v3 series got picked up: https://lore.kernel.org/u-boot/177745255938.126665.16625119085748603933.b4-ty@b4/
> ---
>  drivers/usb/dwc3/core.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
> index be198041f08..ae22e1c792d 100644
> --- a/drivers/usb/dwc3/core.c
> +++ b/drivers/usb/dwc3/core.c
> @@ -106,8 +106,6 @@ done:
>  	if (DWC3_VER_IS_WITHIN(DWC31, ANY, 180A))
>  		mdelay(50);
>  
> -	mdelay(100);
> -

The dwc3 driver is not only used by qualcomm, but many other SoCs.

That delay indeed does not exist as is in the Linux driver since the
following commit f59dcab17629 ("usb: dwc3: core: improve reset sequence")

However, that commit is more conservative by adding retries and such.

I'd prefer to stick with Linux's approach here.

Also note, there is an ongoing effort of updating the dwc3 driver by
Linaro here:

https://lore.kernel.org/all/20260716134305.614278-1-anders.roxell@linaro.org/

Could you maybe give that a try? It should have the
"usb: dwc3: core: improve reset sequence" patch in there.

>  	return 0;
>  }
>  
>
> ---
> base-commit: d7ef23c07b8e34f65b3e15e3b4e7f58d074923c8
> change-id: 20260724-kodiak_delay-a5f1e8b675cd
>
> Best regards,
> -- 
> Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>

      parent reply	other threads:[~2026-07-24 13:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-24  9:28 [PATCH] Revert "drivers: usb: dwc3: Add delay after core soft reset" Balaji Selvanathan via U-Boot
2026-07-24 12:41 ` Marek Vasut via U-Boot
2026-07-26 10:06   ` Balaji Selvanathan via U-Boot
2026-07-24 13:42 ` Mattijs Korpershoek [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=87ldb07bdb.fsf@kernel.org \
    --to=mkorpershoek@kernel.org \
    --cc=balaji.selvanathan@oss.qualcomm.com \
    --cc=macromorgan@hotmail.com \
    --cc=marex@denx.de \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.u-boot-project.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 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.