From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Ilia Snezhkov <iasnezhkov@gmail.com>
Cc: gregkh@linuxfoundation.org, hdegoede@redhat.com, sven@kernel.org,
j@jannau.net, Thinh.Nguyen@synopsys.com, asahi@lists.linux.dev,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] usb: roles: serialize registered checks and unregister under sw->lock
Date: Fri, 4 Dec 2026 13:05:19 +0100 [thread overview]
Message-ID: <axKsf5RiFT5nsi48@black.igk.intel.com> (raw)
In-Reply-To: <179638309350.28131.17575846917506392240@gmail.com>
On Fri, Dec 04, 2026 at 08:18:13PM +0900, Ilia Snezhkov wrote:
> Hi Heikki,
>
> On Fri, Dec 04, 2026 at 11:09:59AM +0100, Heikki Krogerus wrote:
> > Sorry, I failed to notice this before, but with guard(mutex) you can
> > avoid adding the label.
>
> Thanks for the review. While preparing v4, I noticed that Keisuke
> Tsukuda's earlier series fixing the same race was already applied to
> usb-testing as:
>
> 2480026d552e ("usb: dwc3: apple: unregister role switch before taking lock")
> 3fa9acc765d2 ("usb: roles: wait for callbacks on unregister")
>
> I am dropping this duplicate series. If you would still like a
> follow-up patch on top of usb-testing converting
> usb_role_switch_{set,get}_role() to guard(mutex) and documenting the
> lock-ordering contract on usb_role_switch_unregister(), I am happy to
> send one.
Ah, no worries, it's not a biggie.
--
heikki
next prev parent reply other threads:[~2026-12-04 12:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 15:43 [PATCH v3 0/2] usb: roles: serialize unregister against callbacks and fix dwc3-apple lock order Ilia Snezhkov via B4 Relay
2026-11-30 15:43 ` [PATCH v3 1/2] usb: dwc3: apple: unregister role switch outside appledwc->lock Ilia Snezhkov via B4 Relay
2026-11-30 15:43 ` [PATCH v3 2/2] usb: roles: serialize registered checks and unregister under sw->lock Ilia Snezhkov via B4 Relay
2026-12-04 10:09 ` Heikki Krogerus
2026-12-04 11:18 ` Ilia Snezhkov
2026-12-04 12:05 ` Heikki Krogerus [this message]
2026-11-30 15:56 ` [PATCH v3 0/2] usb: roles: serialize unregister against callbacks and fix dwc3-apple lock order 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=axKsf5RiFT5nsi48@black.igk.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=asahi@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=iasnezhkov@gmail.com \
--cc=j@jannau.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sven@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox