Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/4] soundwire: qcom: controller lifecycle fixes on unbind/reprobe
@ 2026-12-03  7:41 Ajay Kumar Nandam
  2026-12-03  7:41 ` [PATCH 1/4] soundwire: qcom: don't touch registers when the iface clock is not live Ajay Kumar Nandam
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Ajay Kumar Nandam @ 2026-12-03  7:41 UTC (permalink / raw)
  To: Srinivas Kandagatla, Vinod Koul, Bard Liao, Pierre-Louis Bossart
  Cc: linux-arm-msm, linux-sound, Ajay Kumar Nandam, Ravi Hothi

This series fixes four Qualcomm SoundWire controller lifecycle issues
seen while testing recovery after an ADSP restart. The problems are
not specific to an ADSP restart and can happen whenever a controller is
unbound and probed again.

1. Runtime resume/suspend can access controller registers after the
   interface-clock provider goes away. Skip the access when the clock
   is not live.

2. The default/primary remove path does not balance runtime PM and may
   disable an interface clock runtime suspend already disabled.
   Balance runtime PM and only release an active clock.

3. IRQ mappings obtained through of_irq_get() are not disposed on
   probe failure or controller removal. Dispose each mapping with the
   controller instance.

4. A peripheral can remain attached with its previous device number
   across controller reprobe and therefore never generate a new attach
   event. Reconcile such peripherals after normal enumeration.

Each patch fixes a separate controller lifetime issue and does not
depend on the other patches.

Signed-off-by: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
---
Ajay Kumar Nandam (4):
      soundwire: qcom: don't touch registers when the iface clock is not live
      soundwire: qcom: disable runtime PM on controller unbind
      soundwire: qcom: dispose IRQ mappings on controller unbind
      soundwire: qcom: reconcile a retained peripheral after controller re-probe

 drivers/soundwire/qcom.c | 111 +++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 108 insertions(+), 3 deletions(-)
---
base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c
change-id: 20261203-ak-gt-soundwire-qcom-mmrole-rework-49eeac51ddaf

Best regards,
--  
Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>


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

end of thread, other threads:[~2026-12-03  8:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  7:41 [PATCH 0/4] soundwire: qcom: controller lifecycle fixes on unbind/reprobe Ajay Kumar Nandam
2026-12-03  7:41 ` [PATCH 1/4] soundwire: qcom: don't touch registers when the iface clock is not live Ajay Kumar Nandam
2026-12-03  8:09   ` sashiko-bot
2026-12-03  7:41 ` [PATCH 2/4] soundwire: qcom: disable runtime PM on controller unbind Ajay Kumar Nandam
2026-12-03  8:08   ` sashiko-bot
2026-12-03  7:41 ` [PATCH 3/4] soundwire: qcom: dispose IRQ mappings " Ajay Kumar Nandam
2026-12-03  7:55   ` sashiko-bot
2026-12-03  7:41 ` [PATCH 4/4] soundwire: qcom: reconcile a retained peripheral after controller re-probe Ajay Kumar Nandam
2026-12-03  8:08   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox