From: Ilia Snezhkov <iasnezhkov@gmail.com>
To: Heikki Krogerus <heikki.krogerus@linux.intel.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, 04 Dec 2026 20:18:13 +0900 [thread overview]
Message-ID: <179638309350.28131.17575846917506392240@gmail.com> (raw)
In-Reply-To: <axKRdxbxbLXY5ytH@black.igk.intel.com>
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.
Best regards,
Ilia
next prev parent reply other threads:[~2026-12-04 11:18 UTC|newest]
Thread overview: 10+ 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
2026-11-30 15:43 ` 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
2026-11-30 15:43 ` 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
2026-11-30 15:43 ` Ilia Snezhkov via B4 Relay
2026-12-04 10:09 ` Heikki Krogerus
2026-12-04 11:18 ` Ilia Snezhkov [this message]
2026-12-04 12:05 ` Heikki Krogerus
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=179638309350.28131.17575846917506392240@gmail.com \
--to=iasnezhkov@gmail.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=asahi@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=heikki.krogerus@linux.intel.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 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.