From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 EF1D550B408; Wed, 30 Sep 2026 16:01:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790784093; cv=none; b=We6z9WSNwmRTs/+EOfe9yNssEQkgBMWu4GXOfZYlKUAnY01Rp4BLOyvSn0wGZxErVlZ36Ym9yyI99bwJrDcnaljE1Pu+5rNyj1eyvBVlHbS2lm585zEvJLicNWs1tATcid2v757KS86ws61elq4BhCZ6Ew+tinKVBCpKEb6zdo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790784093; c=relaxed/simple; bh=FqWpG2YfCFeTePYNH9EcRGt5MSrPkQr2lC9fQUcTF4s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I2f6fyrI6WTvyPzYHtXL/H/NWbs6YsqbB9caJ1uwTrlxbrQkJ8nWM9If8rbmuwx+pxPFZcBKK1Xwx0xvQg2WsNyN7llk20S4LxFaB4dTPgPYnt3P2/JmTysUVKfdDDIlXQ+/Quwta1F/mOqtDyP2dtCP5FFglvgNcyEKIqDXRzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sbmMZtzG; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="sbmMZtzG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 364D21F00893; Wed, 30 Sep 2026 16:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790784085; bh=hSSH7bXwiDpGMEHcdV4AocyISq4MxfEhi4yiXVYko2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=sbmMZtzG9iUMFxsu/yG+kWSVXp4/8qBG8XTWNeOARpNJS2g7qomhnX5Sjnx+qn3nX vQYpTUu4Rxw2drcT7IQxRjwiX114PuxHdGlwNGkzE8lPSRqVOAzhcut/qu3TxMXuRg PhBW19ZHMBwqbuPWoMOxB9szEeLa2bf5RazBfyJs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ethan Nelson-Moore , Jarkko Nikula , Mark Brown , Sasha Levin Subject: [PATCH 6.1 032/982] ASoC: ti: omap3pandora: update board check to use DT compatible Date: Wed, 30 Sep 2026 17:12:48 +0200 Message-ID: <20260930152417.486653500@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152416.775402466@linuxfoundation.org> References: <20260930152416.775402466@linuxfoundation.org> User-Agent: quilt/0.69 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.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ethan Nelson-Moore [ Upstream commit 45efb8fbdae303539e7fb5562e147583d4ed63ad ] The omap3pandora driver contains a check for the ARM machine ID via the machine_is_omap3_pandora() macro. The board concerned now supports only FDT booting, which does not use machine IDs, and therefore the code should be updated to check the DT compatible property instead. The legacy board file for this machine was removed in commit 7fcf7e061edd ("ARM: OMAP2+: Remove legacy booting support for Pandora"). The presence of this machine ID check prevents the removal of machine IDs no longer used by the kernel from arch/arm/tools/mach-types, because the machine_is_*() macros are generated from mach-types. To resolve this issue, use of_machine_is_compatible() instead. Signed-off-by: Ethan Nelson-Moore Acked-by: Jarkko Nikula Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/ti/omap3pandora.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/ti/omap3pandora.c b/sound/soc/ti/omap3pandora.c index a287e9747c2a1..3cec2eaafe62f 100644 --- a/sound/soc/ti/omap3pandora.c +++ b/sound/soc/ti/omap3pandora.c @@ -11,12 +11,12 @@ #include #include #include +#include #include #include #include -#include #include #include "omap-mcbsp.h" @@ -224,7 +224,8 @@ static int __init omap3pandora_soc_init(void) { int ret; - if (!machine_is_omap3_pandora()) + if (!of_machine_is_compatible("openpandora,omap3-pandora-600mhz") && + !of_machine_is_compatible("openpandora,omap3-pandora-1ghz")) return -ENODEV; pr_info("OMAP3 Pandora SoC init\n"); -- 2.53.0