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 1E8CF3DC87B; Wed, 30 Sep 2026 18:45:50 +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=1790793953; cv=none; b=pIBHc20mD7WrxE6ukWDkiANuzGPAoF9fmnJxOIhHT90xHeHAwWyDaBbtbRn4IKTZFDs+5fC5PlhZM/CAI56dcHYXjOMt5Onk5/CsvY6O0Ufw9tBW6pDSpu8wIu3Tx9AyXIgwckmU0mDvCKVA+zBDtUoRTFcl5NjxLLWZzq/sNZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790793953; c=relaxed/simple; bh=fLDnXb1pIk9R+zq0lahXmnsjv7SOVW2xpTbvYu+44KY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L9VRL1ywk+Akc+zNd1D8WNvPSwPOgosRGummfKaAtk+YKPTqkXgaqWdwdkqD5X0P728HS4Dqxl7tgxcTu9N8cX8QGbogchsrqqZfw4c1kRU0kNNnnuGlrBeZVqR1M1NQmmULW/rQi+Qk1WkOWavvL4kPOczS0gO/rS4EtJCVoSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SVyIXp+k; 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="SVyIXp+k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A9C71F00899; Wed, 30 Sep 2026 18:45:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790793949; bh=VqaTeUBLFWvuXrv5+edecDAdNSH/GKXfHdJ5wdl6vmw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=SVyIXp+k3kneezc6Q7E+y1JqLYWPYi9v8T0utuIP4mY9kKGtD0G5pNZyxVpdEbqZU +DFqWhbOw8wiWTbKcCmjWPOMr8iZhiKZhqMXO8EhR+5fjVO7uBk3KciqA8IrZCbeUc plmPdXPMdd+TRUT32qm/jyRgxoPab0Y7Cb9bVVQM= 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.6 0038/1193] ASoC: ti: omap3pandora: update board check to use DT compatible Date: Wed, 30 Sep 2026 17:12:02 +0200 Message-ID: <20260930152435.131423310@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152434.301151190@linuxfoundation.org> References: <20260930152434.301151190@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.6-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 fa92ed97dfe3b..85ad65afcaaf5 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" @@ -223,7 +223,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