From: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
To: Charles Keepax <ckeepax@opensource.cirrus.com>,
lee@kernel.org, vkoul@kernel.org
Cc: yung-chuan.liao@linux.intel.com, linux-sound@vger.kernel.org,
patches@opensource.cirrus.com, mfd@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/2] Add SoundWire detach helper
Date: Fri, 4 Sep 2026 09:20:13 +0200 [thread overview]
Message-ID: <b749adb5-b3c5-4e30-89b4-9e6849bfd08c@linux.dev> (raw)
In-Reply-To: <20260831140157.1736905-1-ckeepax@opensource.cirrus.com>
On 8/31/26 16:01, Charles Keepax wrote:
> Currently, if a SoundWire driver takes an action that causes the device
> to detach from the bus it needs to be careful. There will be a period of
> time until the detach is recognised by the core, if the driver
> immediately
> calls sdw_slave_wait_for_init() it is possible for that to complete
> before the detach has been recognised. Leaving the driver with a device
> that is potentially not ready for what follows.
>
> To avoid this race add a new helper that drivers can use to inform the
> core the device will detach. This clears the enumeration completions
> ensuring that sdw_slave_wait_for_init() can't complete until the device
> re-attaches.
>
> This is the third part of a longer series of moving these slave
> attach/deatach operations into the core:
>
> https://lore.kernel.org/linux-sound/20260512103022.1154645-1-ckeepax@opensource.cirrus.com/
> https://lore.kernel.org/linux-sound/20260608102714.2503120-1-ckeepax@opensource.cirrus.com/
>
> I have based this series off Vinod's soundwire tree as that probably
> makes sense for which tree to take it through.
>
> Thanks,
> Charles
>
> Changes since v1:
> - Correct kerneldoc
>
> Charles Keepax (2):
> soundwire: Add a helper function to indicate a device will detach
> mfd: cs42l43: Move to core detach helper
>
> drivers/mfd/cs42l43-sdw.c | 2 --
> drivers/mfd/cs42l43.c | 15 +--------------
> drivers/soundwire/bus.h | 6 ------
> include/linux/mfd/cs42l43.h | 1 -
> include/linux/soundwire/sdw.h | 26 ++++++++++++++++++++++++++
> 5 files changed, 27 insertions(+), 23 deletions(-)
LGTM, for the series
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
prev parent reply other threads:[~2026-09-04 8:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 14:01 Charles Keepax
2026-08-31 14:01 ` [PATCH v2 1/2] soundwire: Add a helper function to indicate a device will detach Charles Keepax
2026-08-31 14:01 ` [PATCH v2 2/2] mfd: cs42l43: Move to core detach helper Charles Keepax
2026-09-04 7:20 ` Pierre-Louis Bossart [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=b749adb5-b3c5-4e30-89b4-9e6849bfd08c@linux.dev \
--to=pierre-louis.bossart@linux.dev \
--cc=ckeepax@opensource.cirrus.com \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=patches@opensource.cirrus.com \
--cc=vkoul@kernel.org \
--cc=yung-chuan.liao@linux.intel.com \
/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
all inboxes | Powered by JetHome®