mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiawen Liu <1298662399@qq.com>
To: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>,
	Vinod Koul <vkoul@kernel.org>,
	Bard Liao <yung-chuan.liao@linux.intel.com>,
	Jizhou Tong <fqwqf@fqwqf.xyz>,
	linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] soundwire: fail slave probe if IRQ cleanup cannot be registered
Date: Mon, 30 Nov 2026 19:54:28 +0000	[thread overview]
Message-ID: <tencent_9CA73AC0C75FAB4ACEFAB4A27A4823DD4C07@qq.com> (raw)
In-Reply-To: <aw2bXjNfmCtis7FC@opensource.cirrus.com>

Hi Charles,

The original code used devm_add_action_or_reset(), which calls the
action if registration fails. This patch switches to devm_add_action().
If the devres allocation fails, that helper returns -ENOMEM without
calling the action.

At that point the new mapping is still in the local variable irq.
slave->irq is only set after registration succeeds. Dropping
irq_dispose_mapping(irq) here would leak the mapping, so I'd keep it.

Thanks, Pierre-Louis, for the review and the pointer to the earlier RFC.
This change covers the probe error path. The locking question during
alert dispatch is still open.

Thanks,
Jiawen


      reply	other threads:[~2026-11-30 19:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 12:48 Jiawen Liu
2026-11-30 10:18 ` Pierre-Louis Bossart
2026-11-30 15:50   ` Charles Keepax
2026-11-30 19:54     ` Jiawen Liu [this message]

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=tencent_9CA73AC0C75FAB4ACEFAB4A27A4823DD4C07@qq.com \
    --to=1298662399@qq.com \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=fqwqf@fqwqf.xyz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=pierre-louis.bossart@linux.dev \
    --cc=vkoul@kernel.org \
    --cc=yung-chuan.liao@linux.intel.com \
    /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

all inboxes | Powered by JetHome®