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 EACECC4332F for ; Sat, 12 Nov 2022 19:21:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 788508514A; Sat, 12 Nov 2022 20:21:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.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=konsulko.com header.i=@konsulko.com header.b="X3DHccgA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 57D2685150; Sat, 12 Nov 2022 20:21:23 +0100 (CET) Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C424B84E3D for ; Sat, 12 Nov 2022 20:21:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2f.google.com with SMTP id e15so5555600qvo.4 for ; Sat, 12 Nov 2022 11:21:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=eZXXTHVONVgYsH7OiKgAcvIRfAgNQPJ41PhXXjyF/dI=; b=X3DHccgAIU5Q6iaoYLTCSbqdzJgSPlCHPMi3IOAvZ+27Y4ixAfvaGbj3eUL2iemmAg MgtRFXBUXLXIUIlDUASIkCbhVt/wBK9JrYmk7mNrOy57aveIEYXecSdU7Cbwy1yDxvDT cWNllZ6IPFUUiyzEsjraM6C5rxCgFNP3cOBoY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eZXXTHVONVgYsH7OiKgAcvIRfAgNQPJ41PhXXjyF/dI=; b=5uRjzQym7AIWiHHhVpimpd6AbhiWo+S2h8MRwB1W63cTzfLctbjzXvnF5IlBaOzBiT fetdpFb0SRJvd+iJwXN8y5UsWNGizg060rv2LraqdcpsxMvFuIr6OsXQfrA7S2x6mh7g yOapX+7hXnIxQZHfOh+lO/kCVmHaxqO+EeFdsGdw2SCAn4e5iIR806fRBkjW16mFJtPY KNwVddLA/QFkvXZwjHJlGixSumP4wm/RVTr1iP6ZYaT9NtNmvmM113fJLE6GPxTLkroX RZ0p9zWrmz1Ro122hCmoXWa5ikLhgckJjpsemRzBvqJi2tCd8OFirZHH8bVfOpMk6OCG 5KBw== X-Gm-Message-State: ANoB5pni8CdCwD0w1fM6b3Uz7n+IDL2kqg6+ttxp/f+s6a2GbtSQJlD6 rWbCxwwB/UaxtOpfH7+0El+GeA== X-Google-Smtp-Source: AA0mqf4x8dIyxnsNmBcYfUGalCdPmngdJvuKLLjkGVAgwtGcYuie6jxpYtyBqF4Rh3+GqdaX1c19sA== X-Received: by 2002:a0c:b38d:0:b0:4b1:a69f:e958 with SMTP id t13-20020a0cb38d000000b004b1a69fe958mr6820072qve.107.1668280879553; Sat, 12 Nov 2022 11:21:19 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-d5d0-b110-a961-621d.res6.spectrum.com. [2603:6081:7b00:6400:d5d0:b110:a961:621d]) by smtp.gmail.com with ESMTPSA id cm26-20020a05622a251a00b0039cc82a319asm3181479qtb.76.2022.11.12.11.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 11:21:19 -0800 (PST) Date: Sat, 12 Nov 2022 14:21:16 -0500 From: Tom Rini To: Simon Glass Cc: Patrick Delaunay , u-boot@lists.denx.de, Jaehoon Chung , Joe Hershberger , Patrice Chotard , Peng Fan , U-Boot STM32 , Wolfgang Denk Subject: Re: [PATCH 0/8] env: mmc: improvements and corrections Message-ID: <20221112192116.GK7282@bill-the-cat> References: <20221110104905.3076915-1-patrick.delaunay@foss.st.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4VrXvz3cwkc87Wze" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett 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.6 at phobos.denx.de X-Virus-Status: Clean --4VrXvz3cwkc87Wze Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 10, 2022 at 01:40:32PM -0700, Simon Glass wrote: > Hi Patrick, >=20 > On Thu, 10 Nov 2022 at 03:49, Patrick Delaunay > wrote: > > > > > > Update in U-Boot env mmc backend with several cosmetic changes or > > corrections and 2 new features: > > > > 1/ CONFIG_ENV_MMC_USE_DT =3D no more use CONFIG_ENV_OFFSET > > in the mmc ENV backend when this config is activated. > > > > Requested by the STM32MP STMicroelectronics boards which activate > > several ENV_IS_IN_XXX; the value of CONFIG_ENV_OFFSET is invalid for > > SD-Card / eMMC boot; this offset should only used in SPIFlash backend > > (sf.c) for SPI-NOR boot. > > > > If this offset is used on mmc backend, when partition name in GPT is > > not aligned with U-Boot DT: "u-boot,mmc-env-partition", the behavior > > is difficult to debug: a partition is corrupted on 'env save' comman= d. > > > > 2/ selects the GPT env partition by the "u-boot-env" type GUID introduc= ed > > by the commit c0364ce1c695 ("doc/README.gpt: define partition > > type GUID for U-Boot environment") > > > > This feature can also avoid issue when 'u-boot-env' partition name > > change in GPT partitioning but not in the U-Boot DT with > > "u-boot,mmc-env-partition" > > > > Few check patch warnings remained in the series, > > but after check I can't remove them : > > > > - IS_ENABLED(ENV_MMC_HWPART_REDUND) is normally used as > > IS_ENABLED(CONFIG_ENV_MMC_HWPART_REDUND) > > =3D> ENV_MMC_HWPART_REDUND is locally defined in this file it is not > > a real CONFIG but I can use the IS_ENABLED() macro as it is defined > > to 1 > > > > - Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where > > possible > > + CONFIG_PARTITION_TYPE_GUID =3D> info.type_guid existence > > + CONFIG_ENV_OFFSET_REDUND and CONFIG_ENV_MMC_USE_DT =3D> only for de= fine > > > > As I miss the merge window, not targeted for v2023.01 but for next > > v2023.04. >=20 > Shouldn't this all move to device tree? Using CONFIG options is such a > mess. We have the devices in DT so can indicate which ones have an > environment and what the parameters are for each. And there's already the Documentation/devicetree/bindings/nvmem/u-boot,env.yaml to build upon. --=20 Tom --4VrXvz3cwkc87Wze Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmNv8ikACgkQFHw5/5Y0 tyxE/gwAikp3K2ebjtKJILfiWA3SdsqpTQ36EMs0l1XAL8cIl59T18n5btaHuJnn GTAuTD6gSb+xfnQcFbr/Is22ABo9uInrllkCuXv58ohqOpoGAnyyfxAhVkbcMRBZ t5HnZ/MOxu8eAfqf1J/eLpDCtcwHshzaH8/+uR837n3c8vVsmdGzPzmA88vm8Vwj 74H3YCXS0CLQOFu2kjd568LSEkznpJpXqznAWXQzc+KQ/vMHqUEwBnFXKNcVydnR 2zqkzXkjIZ5SyiVkaJbNAyHv+n/45yxI5yGhMGon4dESbPe0BVcIPhvAyup0HvhP 9SC+6zf2KNIs86h+sywbENK5CAmMrDTGLt2Ij1XwedWq//Cfrw+a3L6UzpdtTBHd AzhDJLE2Xck0VNw4iFZwosQn6/iB4cpYLaxVrM5DuUkH5osi1HdC2ChX78xK40mU aChwUjhyZZcd0wa9MKXDPpJQBa/L/krVBx+qlsd9qWW2Xemx/WvpHvAH0Oye8fyC 8jdmbZ6X =yqkK -----END PGP SIGNATURE----- --4VrXvz3cwkc87Wze--