Linux Sound subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ajay Kumar Nandam" <ajay.nandam@oss.qualcomm.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH 3/4] soundwire: qcom: dispose IRQ mappings on controller unbind
Date: Thu, 03 Dec 2026 07:55:38 +0000	[thread overview]
Message-ID: <sashiko-outbox-247331@kernel.org> (raw)
In-Reply-To: <20261203-ak-gt-soundwire-qcom-mmrole-rework-v1-3-046ce68c8b0e@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] soundwire: qcom: missing Fixes trailers for IRQ mapping leak and
  zero check
--

commit 480b8eb6de830f6687e1b801b382d8876984d659
Author: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>

> soundwire: qcom: dispose IRQ mappings on controller unbind
>
> of_irq_get() creates an irqdomain mapping that persists until it is
> explicitly disposed; devm_request_threaded_irq() only manages the
> interrupt handler, not that mapping.
>
> During an ADSP restart, repeated controller remove/probe cycles leave
> mappings from earlier controller instances behind, on both the
> primary and wake IRQs.
>
> Add a devm_add_action_or_reset() disposal action right after each
> successful of_irq_get(), so a later probe failure or a normal
> remove() disposes the mapping exactly once.
>
> Also reject a 0 return from the primary of_irq_get(): of_irq_get()
> never returns 0 for a valid IRQ, and the code was treating it as one.
>
> Co-developed-by: Ravi Hothi <ravi.hothi@oss.qualcomm.com>
> Signed-off-by: Ravi Hothi <ravi.hothi@oss.qualcomm.com>
> Signed-off-by: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>

[Severity: Low]
This looks like a bug fix for the primary and wake IRQ mapping leaks and
the missing zero check on the primary of_irq_get() return.  Should this
include:

Fixes: 02efb49aa805 ("soundwire: qcom: add support for SoundWire controller")
Fixes: 04d46a7b3837 ("soundwire: qcom: add in-band wake up interrupt support")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-ak-gt-soundwire-qcom-mmrole-rework-v1-0-046ce68c8b0e@oss.qualcomm.com?part=3

  reply	other threads:[~2026-12-03  7:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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  7:41 ` [PATCH 2/4] soundwire: qcom: disable runtime PM on controller unbind Ajay Kumar Nandam
2026-12-03  7:41 ` [PATCH 3/4] soundwire: qcom: dispose IRQ mappings " Ajay Kumar Nandam
2026-12-03  7:55   ` sashiko-bot [this message]
2026-12-03  7:41 ` [PATCH 4/4] soundwire: qcom: reconcile a retained peripheral after controller re-probe Ajay Kumar Nandam

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=sashiko-outbox-247331@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=ajay.nandam@oss.qualcomm.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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