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 X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92AE9C433EF for ; Thu, 23 Sep 2021 20:01:03 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 84C8C61107 for ; Thu, 23 Sep 2021 20:01:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 84C8C61107 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BE681833E6; Thu, 23 Sep 2021 22:01:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1632427261; bh=u5QxJlU/nqjgCfzC0WXujGRxRUj6DNsfiQHM1iA3iwc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=NoKfraWUIZtrpjeqfvqs3Ot9wrap80Iv4nIFroFad5/Pe7h1yWyq7VtQpHyCNPCmy ZNLVqu3KY/Ia6bnNvs0kRQP/mk5kZMS+QDbBi8gDbEL88JXcyAi0bsurgEL0P7D5ci Fmte2wN6FU5YD3oflzmfs1t1UEG/ArhQeB8TDqUzpJhq3v8lp+jPE3848bDhH5W1MP aUgfwhMgxBLuV6fjvW8Ca2KzxPGn8z4q6poqmlEeGAvmdDCIOSuqO9vvXU+UmR5QxE j+MELcMFtgG95JU+vQFXkWageiNLYXton3Xagc8BcswpSzmLWtDUfUI/nFMCyNWhJv 59SJhrzg6AKRQ== Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 043AF831E7; Thu, 23 Sep 2021 22:00:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1632427259; bh=u5QxJlU/nqjgCfzC0WXujGRxRUj6DNsfiQHM1iA3iwc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=fAuOrYhZn38W0imao7qCaytmUD5DLT24xmVqiOafYXiU74a29+wMcBEG1XRiuWxk4 A16ijLjhBsaBUgRJ4HzCcf1ZRgVy9bXDGmriGNDgTAgX5nhCcVi8PxLcb7cVHpg8h+ iCtWyTb1ZuKqN+t0u7ceifT3NbmqJGc7WWr880EbnoAu+TYsCse5kLwnGRfTcAm12k ScBnuT7DoutxlzSeB4vPjkNAPH4PW9xwp1u+7VV53vIAKh8CTAcbfff5QTONdnLwIs GXHFAcNA5zpQCMYwZYgMYSSgIXYbBHuUvyJEIG+UbbQt9qcqaTP9WsQJJxOvjnpgil FxrTgwpnzUVrA== Subject: Re: [PATCH] mtd: sf: Set SF parameters as env variables To: Pratyush Yadav Cc: u-boot@lists.denx.de, Jagan Teki , Vignesh R References: <20210914032849.273625-1-marex@denx.de> <20210923185316.se55powofpm37mg3@ti.com> From: Marek Vasut Message-ID: <55953baa-c585-f180-aff3-b68d3acee34b@denx.de> Date: Thu, 23 Sep 2021 22:00:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20210923185316.se55powofpm37mg3@ti.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean On 9/23/21 8:53 PM, Pratyush Yadav wrote: > On 14/09/21 05:28AM, Marek Vasut wrote: >> Set the SF page size, erase block size and total size as an environment >> variable after "sf probe". This lets us discern boards with multiple >> distinct SPI flash options and also e.g. set mtdparts accordingly. > > I don't quite follow the rationale for making these environment > variables. Wouldn't you be better off finding this info out via mtd or > sf command? I need to use that info in a script, that's why these env vars.