From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44473335BC1; Mon, 18 Aug 2025 13:54:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755525255; cv=none; b=iQ4dFjY0iSBgor9fSPKkn/MIUuuwXAVEyBdb3k56aHXQdbEU2iUvewTyYbv5BC0evmzk6EkNoEtTmtdsbq8Skp/E2HWrxIHVPtaoSlVB9cHCpyfIkn20wBndPFEb/uuiKcBH+dRkTj99LK49w20Yn55LXj2cH1B5PdK6wRUdKHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755525255; c=relaxed/simple; bh=db4yYUMWHkHmgx/Q6E9NBup9omtm/P1J82lKITws3pk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=g2IfsFbFaTvZFq6QSuj5Nl3agwDLn7o5Bkex7Stn84pVL4U67/eNKmtMjJs56yDHrkX4JYf7YQywkn3VZQegYdZYXzErXC2PFdFYwjkvNF/3v+hse+NLfL+Q/2O9BggLvnldEnBf9ZgB+Ok2FAj5rsX/WoaDKIk8TgNM+V0pzFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W5A/7578; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="W5A/7578" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5972C4CEEB; Mon, 18 Aug 2025 13:54:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755525255; bh=db4yYUMWHkHmgx/Q6E9NBup9omtm/P1J82lKITws3pk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W5A/7578pRQJhuZ1e1yOdGIIv9UjHZ17I+G1X1UApqJB575gUWtXpRhUIIYusKGWH /HiI3ocJRDMbMIUP0196gjZ3HU/YvEMdYCg512/tgKUlYfcd1379VydI/l+HNcrwT0 PirL5iKxxBNzQhiWVLZZ6/W4rl9/1Qst1ZiW52C0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Bard Liao , Charles Keepax , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: [PATCH 6.16 174/570] ASoC: SDCA: Add flag for unused IRQs Date: Mon, 18 Aug 2025 14:42:41 +0200 Message-ID: <20250818124512.500285261@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124505.781598737@linuxfoundation.org> References: <20250818124505.781598737@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Charles Keepax [ Upstream commit 775f5729b47d8737f4f98e0141f61b3358245398 ] Zero is a valid SDCA IRQ interrupt position so add a special value to indicate that the IRQ is not used. Reviewed-by: Bard Liao Signed-off-by: Charles Keepax Reviewed-by: Pierre-Louis Bossart Link: https://patch.msgid.link/20250624122844.2761627-6-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- include/sound/sdca_function.h | 2 ++ sound/soc/sdca/sdca_functions.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/sound/sdca_function.h b/include/sound/sdca_function.h index eaedb54a8322..b43bda42eeca 100644 --- a/include/sound/sdca_function.h +++ b/include/sound/sdca_function.h @@ -16,6 +16,8 @@ struct device; struct sdca_entity; struct sdca_function_desc; +#define SDCA_NO_INTERRUPT -1 + /* * The addressing space for SDCA relies on 7 bits for Entities, so a * maximum of 128 Entities per function can be represented. diff --git a/sound/soc/sdca/sdca_functions.c b/sound/soc/sdca/sdca_functions.c index 28e9e6de6d5d..050f7338aca9 100644 --- a/sound/soc/sdca/sdca_functions.c +++ b/sound/soc/sdca/sdca_functions.c @@ -912,6 +912,8 @@ static int find_sdca_entity_control(struct device *dev, struct sdca_entity *enti &tmp); if (!ret) control->interrupt_position = tmp; + else + control->interrupt_position = SDCA_NO_INTERRUPT; control->label = find_sdca_control_label(dev, entity, control); if (!control->label) -- 2.39.5