* [PATCH v3] ASoC: ti: omap3pandora: update board check to use DT compatible
@ 2026-05-17 2:37 Ethan Nelson-Moore
2026-05-19 9:02 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Ethan Nelson-Moore @ 2026-05-17 2:37 UTC (permalink / raw)
To: linux-sound, linux-omap
Cc: Ethan Nelson-Moore, Jarkko Nikula, Peter Ujfalusi, Liam Girdwood,
Mark Brown, Jaroslav Kysela, Takashi Iwai
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.
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> # v2
Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
---
Changes from v1: Fix mistake in commit message and remove Fixes tags -
machine ID checks still work with DT booting if the bootloader passes
the ID
Changes from v2: Correct changelog formatting (there were two ---
sections in v2)
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 f11b1d8a1306..6c9c184cd9d6 100644
--- a/sound/soc/ti/omap3pandora.c
+++ b/sound/soc/ti/omap3pandora.c
@@ -11,12 +11,12 @@
#include <linux/delay.h>
#include <linux/regulator/consumer.h>
#include <linux/module.h>
+#include <linux/of.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/soc.h>
-#include <asm/mach-types.h>
#include <linux/platform_data/asoc-ti-mcbsp.h>
#include "omap-mcbsp.h"
@@ -225,7 +225,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.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v3] ASoC: ti: omap3pandora: update board check to use DT compatible
2026-05-17 2:37 [PATCH v3] ASoC: ti: omap3pandora: update board check to use DT compatible Ethan Nelson-Moore
@ 2026-05-19 9:02 ` Mark Brown
2026-05-19 19:13 ` Ethan Nelson-Moore
0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2026-05-19 9:02 UTC (permalink / raw)
To: Ethan Nelson-Moore
Cc: linux-sound, linux-omap, Jarkko Nikula, Peter Ujfalusi,
Liam Girdwood, Jaroslav Kysela, Takashi Iwai
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
On Sat, May 16, 2026 at 07:37:22PM -0700, Ethan Nelson-Moore wrote:
> 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
Please do not submit new versions of already applied patches, please
submit incremental updates to the existing code. Modifying existing
commits creates problems for other users building on top of those
commits so it's best practice to only change pubished git commits if
absolutely essential.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] ASoC: ti: omap3pandora: update board check to use DT compatible
2026-05-19 9:02 ` Mark Brown
@ 2026-05-19 19:13 ` Ethan Nelson-Moore
0 siblings, 0 replies; 3+ messages in thread
From: Ethan Nelson-Moore @ 2026-05-19 19:13 UTC (permalink / raw)
To: Mark Brown
Cc: linux-sound, linux-omap, Jarkko Nikula, Peter Ujfalusi,
Liam Girdwood, Jaroslav Kysela, Takashi Iwai
On Tue, May 19, 2026 at 2:02 AM Mark Brown <broonie@kernel.org> wrote:
> On Sat, May 16, 2026 at 07:37:22PM -0700, Ethan Nelson-Moore wrote:
> Please do not submit new versions of already applied patches, please
> submit incremental updates to the existing code. Modifying existing
> commits creates problems for other users building on top of those
> commits so it's best practice to only change pubished git commits if
> absolutely essential.
Hi, Mark,
I didn't intend to do that - I resent the patch because I hadn't
gotten a response regarding whether it would be fixed up manually or I
should resend it. Next time that happens, I'll check to make sure it
wasn't applied first. Sorry for the confusion.
Ethan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-05-19 19:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-17 2:37 [PATCH v3] ASoC: ti: omap3pandora: update board check to use DT compatible Ethan Nelson-Moore
2026-05-19 9:02 ` Mark Brown
2026-05-19 19:13 ` Ethan Nelson-Moore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox