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 AED28C001DF for ; Tue, 25 Jul 2023 17:47:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 47B338602A; Tue, 25 Jul 2023 19:47:20 +0200 (CEST) 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="Uhb79pa2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5CD2086603; Tue, 25 Jul 2023 19:47:18 +0200 (CEST) Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 6A89484782 for ; Tue, 25 Jul 2023 19:47:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=afd@ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36PHlBhH082636; Tue, 25 Jul 2023 12:47:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690307231; bh=s8K0Fl78+GbSpOAHlMB+7IzHnrCbo9/+dBysshSKpag=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=Uhb79pa2nuq3bY++HKnLjG+itaGadaa+G6NF4nrOGHtKlNlPtRycvyrYp8E2yngn6 nTfFOTQS/aP+stBnrMgDeiyzXDVmny5/3s+nqd8EKRFTg+Y4OucenW3Sk9xvWWUx7K SKk/FTI1TQWcrA5fIo121G7wQDIs4oAUStJJHJJg= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36PHlBDU059209 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Jul 2023 12:47:11 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 25 Jul 2023 12:47:11 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE100.ent.ti.com (157.170.170.30) 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; Tue, 25 Jul 2023 12:47:11 -0500 Received: from [10.250.32.51] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36PHlANE115544; Tue, 25 Jul 2023 12:47:10 -0500 Message-ID: <431a4601-beda-21c4-13e8-81ef9be453de@ti.com> Date: Tue, 25 Jul 2023 12:47:10 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] configs: keystone2: Unwind KERNEL_MTD_PARTS definition Content-Language: en-US To: Tom Rini CC: Simon Glass , Nishanth Menon , Vignesh Raghavendra , References: <20230725164059.593455-1-afd@ti.com> <20230725171811.GU3630934@bill-the-cat> From: Andrew Davis In-Reply-To: <20230725171811.GU3630934@bill-the-cat> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 On 7/25/23 12:18 PM, Tom Rini wrote: > On Tue, Jul 25, 2023 at 11:40:58AM -0500, Andrew Davis wrote: > >> This is more complex than it needs to be and makes converting these >> boards over to plain text env files more difficult. Simplify this >> environment variable scheme. >> >> Signed-off-by: Andrew Davis >> --- >> include/configs/k2e_evm.h | 5 +---- >> include/configs/k2g_evm.h | 4 +--- >> include/configs/k2hk_evm.h | 5 +---- >> include/configs/k2l_evm.h | 5 +---- >> include/configs/ti_armv7_keystone2.h | 6 +----- >> include/environment/ti/spi.h | 14 -------------- >> 6 files changed, 5 insertions(+), 34 deletions(-) >> delete mode 100644 include/environment/ti/spi.h > > So this unwinding isn't quite enough as the defconfigs also set > CONFIG_MTDPARTS_DEFAULT and that's the best way. > The one in CONFIG_MTDPARTS_DEFAULT is different from the one defined in k2*_evm.h, so switching would change the env. This patch was attempting to make no changes. Maybe a better question is do we need these anymore? They don't seem to do anything anymore and these partitions are board specific, so couldn't be set universally in defconfig anyway. Plus They are instead already defined (correctly too) in the DTS files for each board. Should we just drop mtdparts=? Andrew