]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soundwire: Add a helper function to wait for device initialisation
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 12 May 2026 10:30:05 +0000 (11:30 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 12 May 2026 10:46:59 +0000 (19:46 +0900)
commit3492e8b494c18028044d4a2e03db5c7331fbd789
treed4a8bc6d00776ec82ca0360dab7a46689f4a8545
parent5d6919055dec134de3c40167a490f33c74c12581
soundwire: Add a helper function to wait for device initialisation

Add a new helper function to wait for the device to enumerate
and be initialised by the SoundWire core. Most of the SoundWire
drivers have very similar boiler plate code in their runtime
resume, and that boiler plate tends to access various internals
of the SoundWire structs which is a mild layering violation.

Adding a new core helper function greatly eases both of these
issues.

Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260512103022.1154645-2-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/soundwire/bus.c
include/linux/soundwire/sdw.h