From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=203.205.221.191 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796068480; b=UEryCCOLRfBZD+E3jmlD73jpL1wB8hwDBqo+3hMZmHJ33v86AilTd/bTexT3C4GVCRKN g/Wh8EAbrLVsT2BWz8Elz9QjWgOmMsNCqv8vt0u107bypB0QvlO7tjdM0v/g/tKWUvcKc fjHFd3UwB4X7CQU9Wy2IGnoL3n5wZYej2bS4QmxGEiiQpMbf66vaJWh/pI0E/QPPUgQ1L 2QPWQsDD2z3RK1y4ca5DyTdktGZfOiE3tpQMBp/ysUAcPgvU+V7Cxu8M0geRMDHT3gAOB nI6T9mQFO+JjqTGQt1anyRqnw1VAxjRRx+gDUq8fsFsCnSngMT3hspIIvkxfWkV7E1A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796068480; h=DMARC-Filter:DKIM-Signature:Received:X-QQ-mid:Message-ID: X-QQ-XMAILINFO:X-QQ-XMRINFO:Date:X-OQ-MSGID:From:To:Cc:Subject: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: MIME-Version; bh=7G1xSaagOORf9JRd2ozqHicm806VnU9puRUHYupHvYc=; b=1WdvrpiMDT0zqq7/PG2LWZaCM4EKIanGJ4g64fQydKdAOiKorrCr/CvrDs6WhNapHsr7 OPY5Eo1JEP2eila1V5IM5TBq23fHHOc2umXFPVuAzMgXQ1w1A1NHvYheK+iy3fanKGmRr jpc4xWIQz8ytV3GzKQTz6BdLsHHI3AA8YvDCn+ifjqlfHZS6bWYDryBPBinLDnFIOfzIr otbbXP3F1iJSJLunClEXXFVrpA3RuuIQPa0ceGdFLIr0nEKit0mopk2/U5yLfgDBttv77 Rq6DhBd0ycRc/5lchSTEGZnixN3oQcgsP8kGoHqwslSThxfAUQoiJIH0fgEey+vkArw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=qq.com; spf=pass smtp.mailfrom=qq.com; dkim=pass header.d=qq.com header.i=@qq.com header.a=rsa-sha256 header.s=s201512 header.b=Z+ksA2E6; arc=none smtp.remote-ip=203.205.221.191 Received: from out203-205-221-191.mail.qq.com (out203-205-221-191.mail.qq.com [203.205.221.191]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1AB9606A320; Mon, 30 Nov 2026 19:54:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D1AB9606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qq.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.a=rsa-sha256 header.s=s201512 header.b=Z+ksA2E6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1796068471; bh=7G1xSaagOORf9JRd2ozqHicm806VnU9puRUHYupHvYc=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Z+ksA2E6fZ5GFPEDUCETiYZUIWNeQkjENkYipD81/eNLc0YIVqAaWc4T2CmfPuqBD 1zf9ZaUqvELumytW6w676DghlXB7cKDHOBaLG+kC2TkxmaLyjIhpcd8Qp1qsbhGsMg qjt0SFqav0u0rgrYx3sl8P2/sxeiPyPwzT1siVK0= Received: from [127.0.1.1] ([5.195.0.150]) by newxmesmtplogicsvrsza63-0.qq.com (NewEsmtp) with SMTP id D991AE3E; Tue, 01 Dec 2026 03:54:25 +0800 X-QQ-mid: xmsmtpt1796068468tq8sry18r Message-ID: X-QQ-XMAILINFO: OUnVc07lD2ZBmW5avYRULestL03Uw3UJTsopWYZGXDPF+CMR9iJRDlQxoQsUbp oiBJf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tK+gg== Date: Mon, 30 Nov 2026 19:54:28 +0000 X-OQ-MSGID: <179606846859.2563946.11754422533414348517@qq.com> From: Jiawen Liu <1298662399@qq.com> To: Charles Keepax Cc: Pierre-Louis Bossart , Vinod Koul , Bard Liao , Jizhou Tong , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] soundwire: fail slave probe if IRQ cleanup cannot be registered In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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