Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C88AEC25B4E for ; Tue, 24 Jan 2023 12:42:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233945AbjAXMmU (ORCPT ); Tue, 24 Jan 2023 07:42:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232547AbjAXMmS (ORCPT ); Tue, 24 Jan 2023 07:42:18 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 817E92B622 for ; Tue, 24 Jan 2023 04:42:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1674564136; x=1706100136; h=message-id:date:mime-version:subject:from:to:cc: references:in-reply-to:content-transfer-encoding; bh=ozJJb1T34ds54m28Qz4VLhvUD254clIbJT71wehcNkM=; b=SqZEzZoFGObBg9IukHmjkV+m9/rhXuYLRA+Y8G+JzODaqtI84Rryt+5H uUFR27MNlRFTdvGvu/TVivP/H4WpmohwZSE83OQ0PtUW2+gqQwWC7Uf+F TmVEe3/DRJsM37mHsbD2OagOtrT549Okn6id3fXipgAAaRQeJmCx44pyp ONs2+91oxjvomM5+o1wDIaYJu6hePAvSupg8eEQiZikmc3Y4n5SXjX4gV iHT4/nKMLMqCLMXuHshgA/4sqr1F7XKT+UeO5+A4eKX3jbIG5zSxcYc8I hpe5uHoOIxELL+bNfhaISuSP13B/J0Ch5h5iC2cCg2zGkNIgsKpm0HMkK A==; X-IronPort-AV: E=Sophos;i="5.97,242,1669100400"; d="scan'208";a="197158719" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 24 Jan 2023 05:42:12 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 24 Jan 2023 05:42:12 -0700 Received: from [10.159.245.112] (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Tue, 24 Jan 2023 05:42:11 -0700 Message-ID: <3908fa6f-dc33-4aac-c21f-4a676a3a6b23@microchip.com> Date: Tue, 24 Jan 2023 13:42:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] ARM: at91: remove unnecessary of_platform_default_populate calls Content-Language: en-US From: Nicolas Ferre To: , Alexandre Belloni , CC: , References: <20180711161443.GY16084@piout.net> <20230124112348.74198-1-nicolas.ferre@microchip.com> Organization: microchip In-Reply-To: <20230124112348.74198-1-nicolas.ferre@microchip.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/01/2023 at 12:23, nicolas.ferre@microchip.com wrote: > From: Rob Herring > > DO NOT APPLY: breaking boot on at91 (sama5d3 xplained / NAND at least) > > 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: Alexandre Belloni > Cc: linux-arm-kernel@lists.infradead.org > Signed-off-by: Rob Herring > [nicolas.ferre@microchip.com: update to newest kernel, add sama7.c file] > Signed-off-by: Nicolas Ferre > --- > Rob, Alexandre, > > This is the updated patch by Rob. > Tested on sama5d3 xplained platform it fails at least with NAND and, as you > observed Alexandre, SRAM. > > The pinctrl patch [1] applied seem to solve the problem with GPIO/pinctrl. Ref. missing: [1] https://lore.kernel.org/all/20180712192222.32481-1-robh@kernel.org/ > > So, this move is not ready now, but we can make progress, little by little. > > Best regards, > Nicolas > > arch/arm/mach-at91/at91rm9200.c | 5 ----- > arch/arm/mach-at91/at91sam9.c | 5 ----- > arch/arm/mach-at91/sama5.c | 7 +------ > arch/arm/mach-at91/sama7.c | 4 ---- > 4 files changed, 1 insertion(+), 20 deletions(-) > > diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c > index 4f8186211619..e262f5459c76 100644 > --- a/arch/arm/mach-at91/at91rm9200.c > +++ b/arch/arm/mach-at91/at91rm9200.c > @@ -7,17 +7,12 @@ > * 2012 Joachim Eastwood > */ > > -#include > -#include > - > #include > > #include "generic.h" > > static void __init at91rm9200_dt_device_init(void) > { > - of_platform_default_populate(NULL, NULL, NULL); > - > at91rm9200_pm_init(); > } > > diff --git a/arch/arm/mach-at91/at91sam9.c b/arch/arm/mach-at91/at91sam9.c > index 7e572189a5eb..74b4dd8403a2 100644 > --- a/arch/arm/mach-at91/at91sam9.c > +++ b/arch/arm/mach-at91/at91sam9.c > @@ -6,9 +6,6 @@ > * 2011 Nicolas Ferre > */ > > -#include > -#include > - > #include > #include > > @@ -16,8 +13,6 @@ > > static void __init at91sam9_init(void) > { > - of_platform_default_populate(NULL, NULL, NULL); > - > at91sam9_pm_init(); > } > > diff --git a/arch/arm/mach-at91/sama5.c b/arch/arm/mach-at91/sama5.c > index bf2b5c6a18c6..79dfa257b3b4 100644 > --- a/arch/arm/mach-at91/sama5.c > +++ b/arch/arm/mach-at91/sama5.c > @@ -6,14 +6,11 @@ > * 2013 Ludovic Desroches > */ > > -#include > -#include > - > -#include > #include > #include > #include > #include > +#include > > #include "generic.h" > #include "sam_secure.h" > @@ -32,7 +29,6 @@ static void __init sama5_secure_cache_init(void) > > static void __init sama5_dt_device_init(void) > { > - of_platform_default_populate(NULL, NULL, NULL); > sama5_pm_init(); > } > > @@ -61,7 +57,6 @@ MACHINE_END > > static void __init sama5d2_init(void) > { > - of_platform_default_populate(NULL, NULL, NULL); > sama5d2_pm_init(); > } > > diff --git a/arch/arm/mach-at91/sama7.c b/arch/arm/mach-at91/sama7.c > index bd43733ede18..5faccfe9a9bb 100644 > --- a/arch/arm/mach-at91/sama7.c > +++ b/arch/arm/mach-at91/sama7.c > @@ -6,9 +6,6 @@ > * > */ > > -#include > -#include > - > #include > #include > > @@ -16,7 +13,6 @@ > > static void __init sama7_dt_device_init(void) > { > - of_platform_default_populate(NULL, NULL, NULL); > sama7_pm_init(); > } > > -- > 2.34.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Nicolas Ferre