mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] soundwire: roll back failed master registration
@ 2026-10-19 17:02 Baek Kyu, Kim
  2026-10-19 17:02 ` [PATCH 1/2] soundwire: stream: " Baek Kyu, Kim
  2026-10-19 17:02 ` [PATCH 2/2] soundwire: qcom: restore port reservations on registration failure Baek Kyu, Kim
  0 siblings, 2 replies; 3+ messages in thread
From: Baek Kyu, Kim @ 2026-10-19 17:02 UTC (permalink / raw)
  To: Vinod Koul, Bard Liao
  Cc: Pierre-Louis Bossart, Srinivas Kandagatla, linux-sound,
	linux-arm-msm, linux-kernel

A failed master registration can leave partial port allocations in the
SoundWire core. The Qualcomm driver also ignores registration errors and
can retain reservations from a failed attempt, so hw_params may report
success with incomplete master registration.

Patch 1 makes core master port allocation atomic and restores the state
changed by failed configuration. Patch 2 depends on patch 1 and restores
the Qualcomm port bitmap before propagating the registration error.
Please apply the patches in this order.

Tested with ARM64 QEMU KUnit through real SoundWire registration APIs,
Qualcomm hw_params and the ASoC wrapper, using synthetic devices and
task-scoped allocation failure injection. The baseline and a return-only
alternative each pass 2 of 8 tests; the complete series passes all 8.
KASAN and lockdep were enabled. Product-only ARM64 LLVM W=1 SoundWire
object builds and strict checkpatch also pass. No physical Qualcomm
SoundWire hardware or audio playback/capture was tested.

Baek Kyu, Kim (2):
  soundwire: stream: roll back failed master registration
  soundwire: qcom: restore port reservations on registration failure

drivers/soundwire/qcom.c   | 26 ++++++++++++++------------
 drivers/soundwire/stream.c | 35 +++++++++++++++++++++++++++++------
 2 files changed, 43 insertions(+), 18 deletions(-)

base-commit: 58161ead29e50d70a317ea26b472e0c7508e69da

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-19 17:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 17:02 [PATCH 0/2] soundwire: roll back failed master registration Baek Kyu, Kim
2026-10-19 17:02 ` [PATCH 1/2] soundwire: stream: " Baek Kyu, Kim
2026-10-19 17:02 ` [PATCH 2/2] soundwire: qcom: restore port reservations on registration failure Baek Kyu, Kim

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®