[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c2e353ea-ad0b-40f0-9180-948e77d6d163@tuxon.dev>
Date: Sat, 22 Nov 2025 17:37:40 +0200
From: Claudiu Beznea <claudiu.beznea@...on.dev>
To: "Rob Herring (Arm)" <robh@...nel.org>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>, Vignesh Raghavendra <vigneshr@...com>,
Nicolas Ferre <nicolas.ferre@...rochip.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Russell King <linux@...linux.org.uk>
Cc: linux-mtd@...ts.infradead.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 3/3] ARM: at91: remove unnecessary
of_platform_default_populate calls
Hi, Rob,
On 11/20/25 23:37, Rob Herring (Arm) wrote:
> The DT core will call of_platform_default_populate, so it is not
> necessary for machine specific code to call it unless there are custom
> match entries, auxdata or parent device. Neither of those apply here, so
> remove the call.
>
> Cc: Nicolas Ferre <nicolas.ferre@...rochip.com>
> Cc: Alexandre Belloni <alexandre.belloni@...tlin.com>
> Cc: linux-arm-kernel@...ts.infradead.org
> Signed-off-by: Rob Herring (Arm) <robh@...nel.org>
> ---
> v2:
> - Dust off and rebase to 6.18-rc1
> - Add new platforms added since v1
> ---
> arch/arm/mach-at91/at91rm9200.c | 9 ---------
> arch/arm/mach-at91/at91sam9.c | 9 ---------
> arch/arm/mach-at91/sam9x60.c | 9 ---------
> arch/arm/mach-at91/sam9x7.c | 9 ---------
> arch/arm/mach-at91/sama5.c | 19 ++-----------------
> arch/arm/mach-at91/sama7.c | 8 --------
> 6 files changed, 2 insertions(+), 61 deletions(-)
>
[ ...]
> diff --git a/arch/arm/mach-at91/sama5.c b/arch/arm/mach-at91/sama5.c
> index efae697ce29c..e56022f00800 100644
> --- a/arch/arm/mach-at91/sama5.c
> +++ b/arch/arm/mach-at91/sama5.c
> @@ -6,9 +6,6 @@
> * 2013 Ludovic Desroches <ludovic.desroches@...el.com>
> */
>
> -#include <linux/of.h>
> -#include <linux/of_platform.h>
> -
> #include <asm/hardware/cache-l2x0.h>
> #include <asm/mach/arch.h>
> #include <asm/mach/map.h>
> @@ -30,11 +27,6 @@ static void __init sama5_secure_cache_init(void)
> outer_cache.write_sec = sama5_l2c310_write_sec;
> }
>
> -static void __init sama5_dt_device_init(void)
> -{
> - of_platform_default_populate(NULL, NULL, NULL);
> -}
> -
> static const char *const sama5_dt_board_compat[] __initconst = {
> "atmel,sama5",
> NULL
> @@ -43,7 +35,6 @@ static const char *const sama5_dt_board_compat[] __initconst = {
> DT_MACHINE_START(sama5_dt, "Atmel SAMA5")
> /* Maintainer: Atmel */
> .init_late = sama5_pm_init,
> - .init_machine = sama5_dt_device_init,
> .dt_compat = sama5_dt_board_compat,
> MACHINE_END
>
> @@ -54,17 +45,11 @@ static const char *const sama5_alt_dt_board_compat[] __initconst = {
>
> DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5")
> /* Maintainer: Atmel */
> - .init_machine = sama5_dt_device_init,
> + .init_late = sama5_pm_init,
Should this be in the previous patch?
> .dt_compat = sama5_alt_dt_board_compat,
> .l2c_aux_mask = ~0UL,
> MACHINE_END
>
> -static void __init sama5d2_init(void)
> -{
> - of_platform_default_populate(NULL, NULL, NULL);
> - sama5d2_pm_init();
> -}
> -
> static const char *const sama5d2_compat[] __initconst = {
> "atmel,sama5d2",
> NULL
> @@ -72,8 +57,8 @@ static const char *const sama5d2_compat[] __initconst = {
>
> DT_MACHINE_START(sama5d2, "Atmel SAMA5")
> /* Maintainer: Atmel */
> - .init_machine = sama5d2_init,
> .init_early = sama5_secure_cache_init,
> + .init_late = sama5d2_pm_init,
Should this be in the previous patch?
Thank you,
Claudiu
Powered by blists - more mailing lists