From: Stephan Gerhold <stephan@gerhold.net>
To: Francesco Dolcini <francesco@dolcini.it>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, stable@vger.kernel.org,
francesco.dolcini@toradex.com, liu.ming50@gmail.com,
Badhri Jagan Sridharan <badhri@google.com>
Subject: Re: USB gadget regression on v6.4-rc1 and v6.1.28
Date: Fri, 12 May 2023 12:55:46 +0200 [thread overview]
Message-ID: <ZF4bMptC3Lf2Hnee@gerhold.net> (raw)
In-Reply-To: <ZF4BvgsOyoKxdPFF@francesco-nb.int.toradex.com>
On Fri, May 12, 2023 at 11:07:10AM +0200, Francesco Dolcini wrote:
> Hello all,
> I recently did have a regression on v6.4rc1, and it seems that the same
> exact issue is now happening also on v6.1.28.
>
> I was not able yet to bisect it (yet), but what is happening is that
> libusbgx[1] that we use to configure a USB NCM gadget interface[2][3] just
> hang completely at boot.
>
> This is happening with multiple ARM32 and ARM64 i.MX SOC (i.MX6, i.MX7,
> i.MX8MM).
>
> The logs is something like that
>
> ```
> [* �F] A start job is running for Load def…t schema g1.schema (6s / no limit)
> M[K[** �F] A start job is running for Load def…t schema g1.schema (7s / no limit)
> M[K[*** �F] A start job is running for Load def…t schema g1.schema (8s / no limit)
> M[K[ *** �F] A start job is running for Load def…t schema g1.schema (8s / no limit)
> ```
>
> I will try to bisect this and provide more useful feedback ASAP, I
> decided to not wait for it and just send this email in case someone has
> some insight on what is going on.
>
I noticed a similar problem on the Qualcomm MSM8916 SoC (chipidea USB
driver) and reverting commit 0db213ea8eed ("usb: gadget: udc: core:
Invoke usb_gadget_connect only when started") fixes it for me. The
follow-up commit a3afbf5cc887 ("usb: gadget: udc: core: Prevent
redundant calls to pullup") must be reverted first to avoid conflicts.
These two were also backported into 6.1.28.
I didn't have time to investigate it further yet. With these patches it
just hangs forever when setting up the USB gadget.
Stephan
next prev parent reply other threads:[~2023-05-12 11:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-12 9:07 USB gadget regression on v6.4-rc1 and v6.1.28 Francesco Dolcini
2023-05-12 9:13 ` Francesco Dolcini
2023-05-12 10:55 ` Stephan Gerhold [this message]
2023-05-12 11:33 ` Francesco Dolcini
2023-05-12 11:40 ` Francesco Dolcini
2023-05-12 13:45 ` Francesco Dolcini
2023-05-13 9:48 ` Bagas Sanjaya
2023-05-12 15:42 ` Luca Weiss
2023-05-12 15:43 ` Francesco Dolcini
2023-05-15 20:38 ` Badhri Jagan Sridharan
2023-05-16 6:46 ` Francesco Dolcini
2023-05-12 13:48 ` Bagas Sanjaya
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=ZF4bMptC3Lf2Hnee@gerhold.net \
--to=stephan@gerhold.net \
--cc=badhri@google.com \
--cc=francesco.dolcini@toradex.com \
--cc=francesco@dolcini.it \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=liu.ming50@gmail.com \
--cc=stable@vger.kernel.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.