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 24D9DC433EF for ; Fri, 8 Jul 2022 16:39:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C3B00845BD; Fri, 8 Jul 2022 18:39:14 +0200 (CEST) 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="ZQ1hPMx0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BDC26845A7; Fri, 8 Jul 2022 18:39:12 +0200 (CEST) Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) (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 DCC2C845B9 for ; Fri, 8 Jul 2022 18:39:09 +0200 (CEST) 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-qk1-x731.google.com with SMTP id l26so894852qkl.10 for ; Fri, 08 Jul 2022 09:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=cco7Z5S6bd/9ECWxEL2tqi9sZXFjvmNv584M8JgJ2VY=; b=ZQ1hPMx0Y191sr66Dw0PA9Y3jodkEnx+CP50iDojjvT6z9rBYK7Sh93NIuu0t+yUqG 3Hkylz4ChLh9GyLtTbor562K22RN5VDS8BsVpF4+T0/6wV0FXRnKs/yEtLtD2I64z9Br /Li+oLi9EgCuE8oKiJLEIG8BbWddkaKjzvlmE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cco7Z5S6bd/9ECWxEL2tqi9sZXFjvmNv584M8JgJ2VY=; b=opQYVol2JS1VCfnnWMAk/V6sJ4WavtB9zF22zdFPsvcze84pEKwt90PqBuCQzTvI6p /+gEMK8G2KK2hwkSg4NSognvzn/xoqCj05uOKsqO4hYS5PdqtzcLEuDzha4DybNAEtIn 3kXmXtuH+4d1KaOPrm6/cKKGwkrlP9nXidTcaxBnOrwriEcbTbcqd9B2vI3+tvxHNVUa izH1oSfLEQxuXRhzzHnkbjkncbyRlVTZwbcsC4A0zmE4gOoR18f8IQ1lLhH2rNbzvsO9 2AokWsi9Ek9S/s8mCxpeANMWvf7m9hsTtp2pAgkrLL1OLMZODGNDsGblyfPNJDleWdyM hdqA== X-Gm-Message-State: AJIora8oOBCRBSbXzqmVaPM3txDIbYgyp+7FSnoiVndWnQ4aFN6YyOWf iI1rxdRYu6p2kKY8gIMWqtrDpw== X-Google-Smtp-Source: AGRyM1sYRRq/6N6XWh39ETnXJdJnK3cZNZ2dPhctroWBqTffmWL7cIyLSGIDxUPQnqlC+hLRzksd1Q== X-Received: by 2002:a05:620a:c4e:b0:6b2:8e49:6b3d with SMTP id u14-20020a05620a0c4e00b006b28e496b3dmr2983700qki.67.1657298345170; Fri, 08 Jul 2022 09:39:05 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id g6-20020a05620a40c600b006a6bb044740sm28465649qko.66.2022.07.08.09.39.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 09:39:04 -0700 (PDT) Date: Fri, 8 Jul 2022 12:39:02 -0400 From: Tom Rini To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: u-boot@lists.denx.de, Ahmad Fatoum , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH] fw_env: add fallback to Linux's NVMEM based access Message-ID: <20220708163902.GH1146598@bill-the-cat> References: <20220616185903.14426-1-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0ixKKEduVmIBF3Bc" Content-Disposition: inline In-Reply-To: <20220616185903.14426-1-zajec5@gmail.com> 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 --0ixKKEduVmIBF3Bc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 16, 2022 at 08:59:03PM +0200, Rafa=C5=82 Mi=C5=82ecki wrote: > From: Rafa=C5=82 Mi=C5=82ecki >=20 > A new DT binding for describing environment data block has been added in > Linux's commit 5db1c2dbc04c ("dt-bindings: nvmem: add U-Boot environment > variables binding"). Once we get a proper Linux NVMEM driver it'll be > possible to use Linux's binary interface for user-space as documented > in the: > https://www.kernel.org/doc/html/latest/driver-api/nvmem.html >=20 > This commits makes fw_env fallback to looking for a compatible NVMEM > device in case config file isn't present. In a long term this may make > config files redundant and avoid code (info) duplication. >=20 > Signed-off-by: Rafa=C5=82 Mi=C5=82ecki Applied to u-boot/next, thanks! --=20 Tom --0ixKKEduVmIBF3Bc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmLIXaYACgkQFHw5/5Y0 tyxh3Av/S78fbQzjnVI2fmS1NK3jHC8bdwldkYvZpQObRKQNDg3nPuEDj0fD2/7S qM2Ks2MBFupWRRAsUGs1befUu09ZDi/NubQJ+YdJsUDPtqHkLZdKFCrHFo8lmrY9 cVFvD03iRaCUpze2VSWtpI/S3fDexD46MS5RHRz7RNP5x7/UWbiTyj+4M6niK18V J0ltWEkJxgB++CTYKegrHfIuxpFGeLUJ/6G4pzjXKZpnzzuMMddvNhkHn/OcaAut DzJdsonSuMPRJ0Ss5sjHNrnIjyKEZpfX93gv/EOvGx0AOm4sPKI695wu4hw4iRgA ehEcjCn3VeTVIplQS6w4bW3QpMyaPNagLJSi9bLdpNm65s7WTBx3aVvFL5U6XIZt 6STm786HGIb21/2PvXiSrMrSyBfvYLgCqSF70zEnFO8iCVzBulpnlV5LwIVZcpDL LfaAbDYN6vHXCZwjm2c8k8iYdoUeBEmvY4l8Zz1fSKEwTqwp6O6dWqKV9Fjy1bAf 1Jx1Wrtf =KvQN -----END PGP SIGNATURE----- --0ixKKEduVmIBF3Bc--