ARM: orion5x: update board check in mss2_pci_init() to use the DT
Subsystems (9)
PATCH v2 1/1 ARM: orion5x: update board check in mss2_pci_init() to use the DT
The mss2_pci_init() function contains a check for the ARM machine ID via the machine_is_mss2() 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 machine was converted to FDT booting in commit fbf04d814d0a ("ARM:
orion5x: convert Maxtor Shared Storage II to the Device Tree"). 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.
---
Changes from v1: Fix mistake in commit message and remove Fixes tag - machine ID checks still work with DT booting if the bootloader passes the ID
--- arch/arm/mach-orion5x/board-mss2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-orion5x/board-mss2.c +2 -2
@@ -10,7 +10,7 @@#include <linux/platform_device.h> #include <linux/pci.h> #include <linux/irq.h> -#include <asm/mach-types.h> +#include <linux/of.h> #include <asm/mach/arch.h> #include <asm/mach/pci.h> #include "orion5x.h"
@@ -47,7 +47,7 @@ static struct hw_pci mss2_pci __initdata = {static int __init mss2_pci_init (void ) { -if (machine_is_mss2 ()) +if (of_machine_is_compatible ("maxtor,shared-storage-2" ))pci_common_init (&mss2_pci);return 0 ;
Signature · 1 line
2.43.0
PATCH v2 1/1 mfd: twl4030-power: update checks for specific boards to use the DT
The twl4030-power driver contains two checks for ARM machine IDs via machine_is_*() macros. The two boards concerned now support 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 files for these machines were removed in commit 1b383f44aabc ("ARM: OMAP2+: Drop board file for 3430sdp") and commit e92fc4f04a34 ("ARM: OMAP2+: Drop legacy board file for LDP"). The presence of these machine ID checks 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.
---
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
--- drivers/mfd/twl4030-power.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/mfd/twl4030-power.c +2 -4
@@ -30,8 +30,6 @@#include <linux/property.h> #include <linux/of.h> -#include <asm/mach-types.h> -static u8 twl4030_start_script_address =0x2b ;/* Register bits for P1, P2 and P3_SW_EVENTS */
@@ -294,8 +292,8 @@ twl4030_config_wakeup12_sequence(const struct twl4030_power_data *pdata,if (err) goto out; -if (pdata->ac_charger_quirk ||machine_is_omap_3430sdp () || -machine_is_omap_ldp ()) { +if (pdata->ac_charger_quirk ||of_machine_is_compatible ("ti,omap3430-sdp" ) || +of_machine_is_compatible ("ti,omap3-ldp" )) {/* Disabling AC charger effect on sleep-active transitions */ err =twl_i2c_read_u8 (TWL_MODULE_PM_MASTER , &data,R_CFG_P1_TRANSITION );
Signature · 1 line
2.43.0
Re: [PATCH v2] mfd: twl4030-power: update checks for specific boards to use the DT
Quoted 7 lines · Ethan Nelson-Moore
---
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 IDSigned-off-by Ethan Nelson-Moore <[email protected]>---
I forgot to move my changelog below the --- generated by git format-patch. Sorry. Could whoever merges this fix that, or should I resend this patch tomorrow?
Lee Jones
maintainerRe: [PATCH v2] mfd: twl4030-power: update checks for specific boards to use the DT
Quoted 7 lines · Ethan Nelson-Moore
Quoted 5 lines · Ethan Nelson-Moore
---
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
Quoted 6 lines
Quoted 2 lines
Signed-off-by Ethan Nelson-Moore <[email protected]>---
I forgot to move my changelog below the --- generated by git format-patch. Sorry. Could whoever merges this fix that, or should I resend this patch tomorrow?
Easier to resend it.
Signature · 1 line
Lee Jones
PATCH v2 1/1 ASoC: ti: omap3pandora: update board check to use DT compatible
In reply to Ethan Nelson-MooreThe 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.
---
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
--- sound/soc/ti/omap3pandora.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/ti/omap3pandora.c +3 -2
@@ -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" );
Signature · 1 line
2.43.0
Re: [PATCH v2] ASoC: ti: omap3pandora: update board check to use DT compatible
Quoted 7 lines · Ethan Nelson-Moore
---
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 IDSigned-off-by Ethan Nelson-Moore <[email protected]>---
I forgot to move my changelog below the --- generated by git format-patch. Sorry. Could whoever merges this fix that, or should I resend this patch tomorrow?
Re: [PATCH v2] ASoC: ti: omap3pandora: update board check to use DT compatible
Quoted 7 lines · Ethan Nelson-Moore
Quoted 5 lines · Ethan Nelson-Moore
---
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
Quoted 5 lines
Quoted 2 lines
Signed-off-by Ethan Nelson-Moore <[email protected]>---
I forgot to move my changelog below the --- generated by git format-patch. Sorry. Could whoever merges this fix that, or should I resend this patch tomorrow?
You may add if plan to resend:
Quoted 7 lines · Ethan Nelson-Moore
---
Changes from v1: Fix mistake in commit message and remove Fixes tag - machine ID checks still work with DT booting if the bootloader passes the IDSigned-off-by Ethan Nelson-Moore <[email protected]>---
I forgot to move my changelog below the --- generated by git format-patch. Sorry. Could whoever merges this fix that, or should I resend this patch tomorrow?
Gregory CLEMENT
maintainerQuoted 7 lines · Ethan Nelson-Moore
Quoted 5 lines · Ethan Nelson-Moore
---
Changes from v1: Fix mistake in commit message and remove Fixes tag - machine ID checks still work with DT booting if the bootloader passes the ID
Quoted 5 lines
Quoted 2 lines
Signed-off-by Ethan Nelson-Moore <[email protected]>---
I forgot to move my changelog below the --- generated by git format-patch. Sorry. Could whoever merges this fix that, or should I resend this patch tomorrow?
I fixed it and applied on mvebu/arm
Thanks,
Gregory
Signature · 3 lines
Grégory CLEMENT, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Gregory CLEMENT
maintainerQuoted 9 lines · Gregory CLEMENT
Quoted 7 lines · Ethan Nelson-Moore
Quoted 5 lines · Ethan Nelson-Moore
---
Changes from v1: Fix mistake in commit message and remove Fixes tag - machine ID checks still work with DT booting if the bootloader passes the ID
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Signed-off-by Ethan Nelson-Moore <[email protected]>---
I forgot to move my changelog below the --- generated by git format-patch. Sorry. Could whoever merges this fix that, or should I resend this patch tomorrow?
I fixed it and applied on mvebu/arm
Actually, I dropped this one and applied your v3!
Quoted 10 lines
Thanks,
Gregory
Signature · 3 lines
Grégory CLEMENT, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Signature · 3 lines
Grégory CLEMENT, Bootlin Embedded Linux and Kernel engineering https://bootlin.com