From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796284539; b=ROUD/TDPeP/vkx4gRIGKlSL/ob1Vc7Ew9GtVchp9BX7Vl0NDPKY2/fwyYTjY7RBvYTfm 3qcbwxg4a91gBSzJSw01vzdOH/DTmhaExdOpWOWxgLy2HzPV9JGUlgRdEKJtblNfbfX/8 o0PCda0XNg/lkddXKBQv43Dk547qABvzas5ekBmkttKia69PWwRStvyrs6nS61QfMT3d6 7gmQt6WTEY5kWL+fKlEYLNpQoyf5srOXecYtzDycBjo3IB80beF+71tgglN6Cwvt0Y8fR 4Sw25L2RyUGkSIvbzzM/FnVQad/XtPcS61kILpMKDaE0CC0AMyQyqj9cXjtKa+YeTOQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796284539; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=1XLLpK/Ot5MNMByLwhQTAeYO7LGI9VwoATpIshq3NdM=; b=3gDEIg7RsLdNmW+NT0Ayzn5BoiF/PEsUOnOSz1KRYc+rmPR9GsR3BGtrAL+bKH4QpbwY Xi82KW3V8pYsOygU5wmQ+w2P5xinnpcBLEkqWfLsaUT7NRFG9UJLHMtDfBzXRz28mPJGk Med1T+P3XUXEGyNwVkbMbETBxlyW8R+SoP5qCv0lI9+RQr+R9ynDr3HAKjkF1CUGfhQlA dGl4kXfGMu9U7neyMzORMpdwaRbJWehxjXcGkWxyxtyeCUCY6TeBo9VyHZsECUPQ1wFbf jdpyZK2mz5hJohdZdBcCcrJfEYsyZg5WnPiZaziaY/8cr+N0cY7zuOFE8cz3PRWK2Ig== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=RfVksxYa; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4216606A322 for ; Thu, 3 Dec 2026 07:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=RfVksxYa Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A7681F000C1; Thu, 3 Dec 2026 07:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796284538; bh=1XLLpK/Ot5MNMByLwhQTAeYO7LGI9VwoATpIshq3NdM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=RfVksxYa3Mwo+hHm1N6ZbCpieooLzbhHjXlSlp+NhOt95ew8d+g2hvgZHe8qmJT2E /kQt7IBSxsXTU9AqfTR446DomMN4gCL7q32REgmaYW4tVs+/wrhfrngZYYTBBx2Fq9 iCfFnKO3dnpltlHUt1ZxyyHBdh3yGR+MPWwqDKZVneB2gjiEbIn7WqzRUtvyXGwTIL pYITdffb1OpmuJgnUXZlzi1vLKIbkdB3BSFcs1c5ZKsP8NFrpXfpfijvyWUvef65Uj Mp8cNl+O9yNnnUpH9qA1fmH3GokoplImR4ff0JM+DWz9rGZBDHRAviVZGyBhA0AOvi Fq/HZyA6F9CKA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 3/4] soundwire: qcom: dispose IRQ mappings on controller unbind Reply-To: sashiko-reviews@lists.linux.dev To: "Ajay Kumar Nandam" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261203-ak-gt-soundwire-qcom-mmrole-rework-v1-3-046ce68c8b0e@oss.qualcomm.com> References: <20261203-ak-gt-soundwire-qcom-mmrole-rework-v1-0-046ce68c8b0e@oss.qualcomm.com> <20261203-ak-gt-soundwire-qcom-mmrole-rework-v1-3-046ce68c8b0e@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 07:55:38 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 > 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 > Signed-off-by: Ravi Hothi > Signed-off-by: Ajay Kumar Nandam [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 suppor= t") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-ak-gt-soun= dwire-qcom-mmrole-rework-v1-0-046ce68c8b0e@oss.qualcomm.com?part=3D3