From: sashiko-bot@kernel.org
To: "Konrad Dybcio" <konradybcio@kernel.org>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v2 3/4] usb: dwc3: gadget: serialize resume against error recovery
Date: Thu, 26 Nov 2026 13:22:01 +0000 [thread overview]
Message-ID: <sashiko-outbox-235591@kernel.org> (raw)
In-Reply-To: <20261126-topic-usb_dwc3_fixups-v2-3-c0cc2b75c518@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] usb: dwc3: gadget: missing Fixes trailer for commit 1ff77cbefe5a
--
commit 60d5b6f1be4788382a79ae6d53042b9cab66f822
Author: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> usb: dwc3: gadget: serialize resume against error recovery
>
> dwc3_gadget_resume() calls dwc3_gadget_soft_connect() without taking
> connect_mutex, allowing it to race with err_recovery_work's disconnect
> and reconnect sequence.
>
> Take connect_mutex before checking gadget_driver and softconnect, and
> hold it through the soft-connect operation. This also serializes the
> state check against dwc3_gadget_stop().
>
> Preserve softconnect on resume failure so a later resume can retry the
> requested connection.
>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
[Severity: Low]
This fixes a race with the error recovery sequence introduced in commit
1ff77cbefe5a ("usb: dwc3: gadget: fix IRQ storm on invalid event buffer
count"). Should this include:
Fixes: 1ff77cbefe5a ("usb: dwc3: gadget: fix IRQ storm on invalid event buffer count")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126-topic-usb_dwc3_fixups-v2-0-c0cc2b75c518@oss.qualcomm.com?part=3
next prev parent reply other threads:[~2026-11-26 13:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 13:01 [PATCH v2 0/4] DWC3 concurrency fixes Konrad Dybcio
2026-11-26 13:01 ` [PATCH v2 1/4] usb: dwc3: gadget: serialize connection bitfield writes Konrad Dybcio
2026-11-26 13:01 ` [PATCH v2 2/4] usb: dwc3: gadget: clear softconnect on stop and failed pullup Konrad Dybcio
2026-11-26 13:22 ` sashiko-bot
2026-11-26 13:01 ` [PATCH v2 3/4] usb: dwc3: gadget: serialize resume against error recovery Konrad Dybcio
2026-11-26 13:22 ` sashiko-bot [this message]
2026-11-26 13:01 ` [PATCH v2 4/4] usb: dwc3: gadget: cancel err_recovery_work after usb_del_gadget Konrad Dybcio
2026-11-26 13:15 ` sashiko-bot
2026-11-26 13:22 ` [PATCH v2 0/4] DWC3 concurrency fixes sashiko-bot
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=sashiko-outbox-235591@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=konradybcio@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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.