From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA1B5C021A8 for ; Thu, 13 Feb 2025 04:49:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0CF06807C0; Thu, 13 Feb 2025 05:49:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="U+ff1AQL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CA5B180A55; Thu, 13 Feb 2025 05:48:58 +0100 (CET) Received: from lelvem-ot01.ext.ti.com (lelvem-ot01.ext.ti.com [198.47.23.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5A513806FE for ; Thu, 13 Feb 2025 05:48:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=m-shah@ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelvem-ot01.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 51D4mrSd670433 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Feb 2025 22:48:53 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1739422133; bh=yiOuL4gkTVNm0tJX4NOXSfCZdMV5AW40g1c3xWXacG0=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=U+ff1AQL5lVImlqQa8EqJj2IWENBvT0VIu00qcfRb+PreD1wm8qMb1z6Uis+Ue6uK qt0jM8wOeBnGnev5+eDGZFkTNKUiXAn5qf7N97Erx1Y1v2ANm7Izt+3FPEe8tZrOAA Bhqm4voVv5KQe5YhTXcsdF91TbaNKm0ChVBbjVP0= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 51D4mrm5007762 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 12 Feb 2025 22:48:53 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 12 Feb 2025 22:48:53 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 12 Feb 2025 22:48:53 -0600 Received: from [172.24.227.18] (moteen-ubuntu-desk.dhcp.ti.com [172.24.227.18]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 51D4motC064780; Wed, 12 Feb 2025 22:48:51 -0600 Message-ID: <4e9f2b68-5220-42ab-b9ed-720ab5e5a452@ti.com> Date: Thu, 13 Feb 2025 10:18:50 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 1/2 v1] arch: arm: Kconfig: Add config to use subnode's bootph property for binding drivers To: "Kumar, Udit" , CC: , , , , , References: <20250212091820.213895-1-m-shah@ti.com> <20250212091820.213895-2-m-shah@ti.com> Content-Language: en-US From: Moteen Shah In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hey Udit, On 12/02/25 20:19, Kumar, Udit wrote: > > On 2/12/2025 2:48 PM, Moteen Shah wrote: >> Add a new config when set will traverse through all the subnodes of >> a given node scanning for bootph-all property and propagate it to >> all of its parent node up the hierarchy. >> >> Signed-off-by: Moteen Shah >> --- >>   arch/arm/Kconfig | 11 +++++++++++ >>   1 file changed, 11 insertions(+) >> >> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig >> index 314916527c9..51fc952b0db 100644 >> --- a/arch/arm/Kconfig >> +++ b/arch/arm/Kconfig >> @@ -805,6 +805,7 @@ config ARCH_K3 >>       select FIT >>       select REGEX >>       select FIT_SIGNATURE if ARM64 >> +    imply BIND_FROM_CHILD_BOOTPH > > Why config, this fix looks to be valid for all configs ? True, but for vendors having a fixed up DT and have constraints for faster boot times, this fix will add up overheads of traversing all of the nodes. Regards, Moteen > > >>       imply TI_SECURE_DEVICE >>     config ARCH_OMAP2PLUS >> @@ -2232,6 +2233,16 @@ config SYS_KWD_CONFIG >>         Path within the source directory to the kwbimage.cfg file to use >>         when packaging the U-Boot image for use. >>   + >> +config BIND_FROM_CHILD_BOOTPH >> +    bool "Bind drivers from bootph* in subnode" >> +    depends on ARCH_K3 >> +    help >> +     This config must be set to bind drivers in pre reloc stage whose >> +     compatible parent nodes are implicitly declared to be bound to >> +     their respective drivers by having bootph* property in one of >> +     their subnodes. >> + >>   source "arch/arm/mach-apple/Kconfig" >>     source "arch/arm/mach-aspeed/Kconfig"