[PATCH v2 00/10] soundwire: Fix Critical and High issues reported by Sashiko

From: Lee Jones

Date: Tue Nov 03 2026 - 05:12:58 EST


These issues were reported by Sashiko.

v1 => v2:
- Drop "ASoC: SOF: Intel: hda-sdw-bpt: Stop active DMA before closing BPT streams" (applied by Mark Brown)
- Drop AMD SoundWire patches to be handled separately by the AMD team
- Drop Fixes and Stable tags per Vinod
- Only increment m_rt_count in sdw_stream_add_master() when master ports are allocated
- Replace cleanup.h guards with explicit mutex_lock()/mutex_unlock() in intel_ace2x_bpt_{open,close}_stream()
- Check nports >= maxport and unwind port_mask on overflow in qcom_swrm_stream_alloc_ports()

Cc: Bard Liao <yung-chuan.liao@xxxxxxxxxxxxxxx>
Cc: linux-arm-msm@xxxxxxxxxxxxxxx
Cc: linux-sound@xxxxxxxxxxxxxxx
Cc: Pierre-Louis Bossart <pierre-louis.bossart@xxxxxxxxx>
Cc: Srinivas Kandagatla <srini@xxxxxxxxxx>
Cc: Vinod Koul <vkoul@xxxxxxxxxx>

Lee Jones (10):
soundwire: bus: Hold bus_lock when looking up slave devices
soundwire: sysfs: Use sysfs_emit_at() in array show callbacks
soundwire: stream: Prevent m_rt_count underflow in
sdw_stream_remove_master()
soundwire: stream: Clean up allocated runtime resources on config
failure
soundwire: intel_ace2x: Protect bus.bpt_stream with bus_lock
soundwire: qcom: Prevent pconfig buffer overflow in
qcom_swrm_stream_alloc_ports()
soundwire: qcom: Disable runtime PM and avoid clock underflow in
qcom_swrm_remove()
soundwire: qcom: Check clk_prepare_enable() return value
soundwire: qcom: Serialise ctrl->intr_mask updates
soundwire: qcom: Prevent stale broadcast IRQ from completing
subsequent command

drivers/soundwire/bus.c | 6 +-
drivers/soundwire/intel_ace2x.c | 20 ++++--
drivers/soundwire/qcom.c | 96 ++++++++++++++++++++++++-----
drivers/soundwire/stream.c | 44 +++++++++----
drivers/soundwire/sysfs_slave.c | 6 +-
drivers/soundwire/sysfs_slave_dpn.c | 8 +--
6 files changed, 137 insertions(+), 43 deletions(-)

--
2.56.0.385.gac671c819a-goog