Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp6521lfv; Tue, 12 Apr 2022 15:02:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjmFQV6YmaMmNhZWcuWvTSVSGmvsz4oS/cT9+4clej5BV4AKRadYdXyfwwAGDmz/TGCj4A X-Received: by 2002:a63:2f01:0:b0:39d:6503:af60 with SMTP id v1-20020a632f01000000b0039d6503af60mr9310129pgv.444.1649800933299; Tue, 12 Apr 2022 15:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649800933; cv=none; d=google.com; s=arc-20160816; b=w8+AhGUq7dXqHK86KtjEK0ua8baygArBdd0GOSoVrQ6paBTzuYDoig+PmlQRdZ3839 0nX6Tc74tYvAQom/OjH6fH4mYbKuw3OveC3X/JDQGlOsSFisGNqAfaQ8jBZkXAsTwyFT Rf7Rw/f8jOzvgni7vVcS4qf/9VgUkg0wkCUPBpD7VZTOFX4XSIQ7hJRV5PxTgS4qs1y+ cvhzAbIAJv+OaN0tqWU8KaVmXxrTQSWorZMfcUC9Nv3a5WisMrJToYSL1qb8yQmuFI/A Kp5ZrFoheig9E8VWgza0wvY1AFWSxZwEHExGc278xPKaPmXFXn49RTMLbcjIzoHMQr0I 367w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=tbYj23K6jfuxj8TlVhbvMc+NFVh8TGna4cbWn2gXvfo=; b=duRARNvu10/pF4tSkuqfaHwgwnDPiJHSbdFdVbD+TyR0t+ABcs/4NF0x4NdVDw4hju sAfDdxyu1j5M2lBGMlOipxUpS+140XrY/Ze8tfAlh/HB30l7xXOEUElBaaXa2u/QuGGZ zaELdIGhgv2hrFw6QkiNhZ0RbcE9fDYM07eddUJAGfDjjcminFL2EEmzMFYiBdKCMDcx vRBeP6I5g17Iyd1Yzqj0O0Fi13kHeRlRM9ouSIfsVlx25lZkjzrb9fDFvkz5q9zQVaDJ YU8OhB/+KkhVq4qE5Sod4+mNa6yzXYXBiJ/LwiVPiBg+/dHgewl+il+fg0ow9XOxFOWb 5wvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=LjGlxuAS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x203-20020a6331d4000000b003986e01e40dsi2919246pgx.95.2022.04.12.15.02.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:02:13 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=LjGlxuAS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4041A1560A6; Tue, 12 Apr 2022 13:54:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345077AbiDKKH4 (ORCPT + 99 others); Mon, 11 Apr 2022 06:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344898AbiDKKHU (ORCPT ); Mon, 11 Apr 2022 06:07:20 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E731112092; Mon, 11 Apr 2022 03:05:01 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 9035F24000C; Mon, 11 Apr 2022 10:04:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1649671500; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tbYj23K6jfuxj8TlVhbvMc+NFVh8TGna4cbWn2gXvfo=; b=LjGlxuAS+8lEZjBd1Z3IfJcpClR4X7Gistt7AQq+NgaeCMlVCkTK7N5+KG0/9RsLQqjtzO MBYF2FjKIsUzjTx7yHqq2bVhSrzUZ1XFzksIuoFAG9zL4EbBqo/y9Crl6XlbR5Xhw0lCZD P0tmVR9Aap+3OP6SNsDaCFJFQbW0BFfv7TpY7WMqbQB9IpPX0CnUYQyyOANqGAGKN8Nzmx BKnaGzS5FR8PG3XNdgAXFfPUQcTK/9UQoSWAazSoosjnDjyMsrpP1ImZD6SqnmD3OncxUj 0UfN0FHRAxEf4LYFWYBl+pmJoF1vTToDPcehE1xHg+faEzuVwokH05/v+c+JkQ== Date: Mon, 11 Apr 2022 12:04:56 +0200 From: Miquel Raynal To: Srinivas Kandagatla Cc: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Richard Weinberger , Vignesh Raghavendra , Tom Rini , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, u-boot@lists.denx.de, devicetree@vger.kernel.org, =?UTF-8?B?UmFmYcWCIE1p?= =?UTF-8?B?xYJlY2tp?= Subject: Re: [PATCH 2/2] nvmem: add driver handling U-Boot environment variables Message-ID: <20220411120456.16edb643@xps13> In-Reply-To: References: <20220411085926.10925-1-miquel.raynal@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Srinivas, srinivas.kandagatla@linaro.org wrote on Mon, 11 Apr 2022 10:45:53 +0100: > On 11/04/2022 09:59, Miquel Raynal wrote: > > On Wed, 2022-04-06 at 14:32:25 UTC, =3D?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= =3D wrote: =20 > >> From: Rafa=C5=82 Mi=C5=82ecki > >> > >> U-Boot stores its setup as environment variables. It's a list of > >> key-value pairs stored on flash device with a custom header. > >> > >> This commit adds an NVMEM driver that: > >> 1. Provides NVMEM access to environment vars binary data > >> 2. Extracts variables as NVMEM cells > >> > >> It can be used for: > >> 1. Accessing env variables from user-space > >> 2. Reading NVMEM cells by Linux drivers > >> > >> Signed-off-by: Rafa=C5=82 Mi=C5=82ecki =20 > >=20 > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.gi= t mtd/next, thanks. =20 >=20 > Hi Miquel, >=20 > Any reason why this nvmem driver is taken via mtd tree? >=20 > This is going to conflict with other nvmem patches that are touching KCon= fig and Makefile Sorry I selected it by mistake. I'll let you take it through nvmem unless there is still something missing on your side? Anyway, it's now dropped from mtd. Thanks, Miqu=C3=A8l