Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp396720rdb; Tue, 19 Dec 2023 23:29:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHn0hIoqRzSVyCX1AyAVhKV3meTNLS62V8ch0nTszshOaOLZnT7E27I8CSX6Aj84ZrFxrRv X-Received: by 2002:a17:90a:ac05:b0:28b:cc1e:66f4 with SMTP id o5-20020a17090aac0500b0028bcc1e66f4mr1442234pjq.33.1703057340793; Tue, 19 Dec 2023 23:29:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703057340; cv=none; d=google.com; s=arc-20160816; b=ymXPYwbhBmMMOzTg2ZdgA/OdKcVnru5g0NDZQuhJ7CaIbIq7jeuU715QObRTosm2y3 ySRWavmqS13JGfRZPbtG9auW6dFjQIldTSstdez3JmQhWtdgXX4B5uA+6RkSEEUppg4F a1Qtz+XQ8zGQze++WE0VNCpRkGUUEF5uFaMoomibkm+pfTwEjTeg/TlG960pWG3IDWFH mDkKiDIR08wPGREFaObEB4H3M5+VPEUc/4k97+ef9l8+xNPtdXhfpnxkLiqs9d+pMGFv q69fw94LKJ34fvcznvEXhfYUA1vSw5A9hgPByRAhAZbdEewaJtmxdZoCVMSxHkseLAc7 rNZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=jbbso/rgR9y8n9297RvIV+sw+BGrsloKuu4p5wYQO8U=; fh=bTEyX4GbReQU+3pU9gWDIgL2EDdMqDWXm7B5uNCwszs=; b=KI6+eCQ2pD5HAzuZ9YbiGSMSftj6d394uh51VHCKqdWadWTRxe7nFiS15p6yZA9xPY HoWQ46McS+LQ7KggIGLJQdtsyxR/GKKVbh+4qcWSbYLwuNdRDfxAdf+HjgjzGVV/8Hdy anEo1hboWHNF0yu08aS244HVo0exRAsMijdbhgCgfLsjJAhp4a5lQZ13NeuvmMDLtGGD EVmPK7m3WiakjXzI62pgPvM5Ukrm2UFFR1BlXdVPuw6XNfUFgqJufsgbc8vRPOGRgaUe gycCPiLQhzC2LCcTlbkwQngnojWwO/56/0YqqiV866/7toIQKSTnjhHS11JVRH0Zzos9 WnhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hB0lZsR6; spf=pass (google.com: domain of linux-kernel+bounces-6484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6484-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c3-20020a17090a8d0300b0028b77a3eb52si2601761pjo.134.2023.12.19.23.29.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 23:29:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hB0lZsR6; spf=pass (google.com: domain of linux-kernel+bounces-6484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6484-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 73F2D288A5B for ; Wed, 20 Dec 2023 07:29:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80F7D168D5; Wed, 20 Dec 2023 07:27:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="hB0lZsR6" X-Original-To: linux-kernel@vger.kernel.org Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAEA422306; Wed, 20 Dec 2023 07:27:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id D75A2FF803; Wed, 20 Dec 2023 07:27:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1703057258; 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=jbbso/rgR9y8n9297RvIV+sw+BGrsloKuu4p5wYQO8U=; b=hB0lZsR61TYKM10x74jyfOy+y5SCHQcGukvQOGQPgiuahRFZGd1suchlA+vbYiQ+Q2FpDt VpSB961mr4K9f0Igroc2u1n5r46fVBNrUAhFHr0KgS1AV0noZwCdHBeFPTUA9pDlo3/LY4 Via/zwOJ3hxigJjAVaaS239v9SwiXEvOzQgqLe/umC4kZSEQn89hNUS5YoInC6b70QP2LT wXwHjzXMfpi7BVMS+W/ur2yTzJHEc5ysWFWn2vpgVeL7fb31ByuVwTFE7Pal8RHMcAM0Tj ctMslWbq5RoUnjar0AHqsMIALmMgH7rducCnhhjh7veXU2i2oHM9ngqko8rMQg== Date: Wed, 20 Dec 2023 08:27:36 +0100 From: Miquel Raynal To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Michael Walle , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, u-boot@lists.denx.de, =?UTF-8?B?UmFmYcWC?= =?UTF-8?B?IE1pxYJlY2tp?= Subject: Re: [PATCH V2 5/5] nvmem: layouts: add U-Boot env layout Message-ID: <20231220082736.246e947c@xps-13> In-Reply-To: <20231219174025.15228-5-zajec5@gmail.com> References: <20231219174025.15228-1-zajec5@gmail.com> <20231219174025.15228-5-zajec5@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi Rafa=C5=82, zajec5@gmail.com wrote on Tue, 19 Dec 2023 18:40:25 +0100: > From: Rafa=C5=82 Mi=C5=82ecki >=20 > This patch moves all generic (NVMEM devices independent) code from NVMEM Nit: In general we avoid starting with "This patch does..." and instead use the imperative form, like: "Move all generic code..." > device driver to NVMEM layout driver. Then it adds a simple NVMEM layout Then add... > code on top of it. >=20 > Thanks to proper layout it's possible to support U-Boot env data stored > on any kind of NVMEM device. >=20 > For backward compatibility with old DT bindings we need to keep old > NVMEM device driver functional. To avoid code duplication a parsing > function is exported and reused in it. >=20 > Signed-off-by: Rafa=C5=82 Mi=C5=82ecki > --- > V2: Support new compatibles & use device_get_match_data() helper >=20 > IMPORTANT: > This is based on top of the: > [PATCH v6.8 1/2] nvmem: layouts: refactor .add_cells() callback arguments Thanks for the move. Looks good to me: Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l