Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp116794rdh; Mon, 18 Dec 2023 06:06:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEvo/Vahrx4QKjkTfREWI8dY0m7kQZBuoxe63L5s7XydrBiCysBEIQYgczjN/5kVnfBkG46 X-Received: by 2002:a17:903:1104:b0:1d3:16a6:d498 with SMTP id n4-20020a170903110400b001d316a6d498mr16457762plh.60.1702908366801; Mon, 18 Dec 2023 06:06:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702908366; cv=none; d=google.com; s=arc-20160816; b=COCCTnIcbfCHMYkpJO8k66Sx26pdTQ5G1za1WY0cdBruPFa7gPtnX07upLFfA2Ewkd xha/Dm0SOqOeP5GYMnKzFEt87uFkfa95ndUcIwSme0N5foknDLhRkaK+GDJoUrA7P90l StY16OfsHdujvGle/Nt4zH+20d15CYvPlu/VunHFtKwN8rlW7olXuRRJ+h87iWHWlwR+ yHgnZ/FCBV6ljjI+o8Qj3sSS5YRIJ+9PX+LSsDi6q8KNiEvcIAvarXbx4WcWtiG37YHs B8fTdNdixqmIfOl3VBanYuWUCAlF6y550jk9z6GLf6L6tmW/hNf37TkZ/pYi0DrnEcHh jPxg== 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=g9hdpzX59dlQ8BbL4qFPt1i7iHlvmq58cF5p1A5NsrM=; fh=bTEyX4GbReQU+3pU9gWDIgL2EDdMqDWXm7B5uNCwszs=; b=lhfQraxYjonFPea+iro4U0Ep4CUF3yDPZRFipuJE/9OQomxWJQoUpMsR90pJIgL9nv Bs3GnnRv4oLZmT2lGq6LQaf0NoRoMnejYJ+p41XQ7f4dc69mlS15CY4JXt5Enh9VSOH6 LilJ7hC3AHuDClQj05gUxnf8mI9UeUMVHyd6m01G9i7ZhORfKDJHz5HBfjwksHqS59of g79PBSNdHuaGeDEhIsIohOVBrWFIj20mHqNmXpVJP53X90peJfK83d7mCtCL9xtdUL6d b8Gm8zniBKe/d01VRutFLO/ZNLQIcCndC5v2PtjINC2XBsL7DRkUciSBuCUUjzeXLlxV qBUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DOKiAw5d; spf=pass (google.com: domain of linux-kernel+bounces-3803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3803-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 i10-20020a17090332ca00b001d3bfd30959si1508023plr.239.2023.12.18.06.06.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 06:06:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3803-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=DOKiAw5d; spf=pass (google.com: domain of linux-kernel+bounces-3803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3803-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 269D02842D7 for ; Mon, 18 Dec 2023 14:05:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31F22498BC; Mon, 18 Dec 2023 14:02:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="DOKiAw5d" X-Original-To: linux-kernel@vger.kernel.org Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 B5BE5498A4; Mon, 18 Dec 2023 14:02:32 +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 1FE7B1BF209; Mon, 18 Dec 2023 14:02:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1702908145; 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=g9hdpzX59dlQ8BbL4qFPt1i7iHlvmq58cF5p1A5NsrM=; b=DOKiAw5d7xeVSCsPETCVl3JSgk/hiu/3PuGa55ZqK+Mqil78nGr4xHia+JwjeUxMDrbhI5 y3hnlnv+LZXEoRaVYDv8sTz36fwuCXuO+W8MN/u5l6DqOgluyW4NTGfhoQCJUsxmH3IMN8 af0EqVjAzehFN+CFmBFMb4pNtYYYwpPvIiBo9sEHnUuNgNDItJvuo4jnMYAqie66OBAU19 r7p/HUxwXAbjhyptKwWJyvnCiyMs57PaiBJ9BMU2gk6L047ISKzcrAS+scHnctBctydjaJ PMhepo1FjXI51w3WVgEnUE5Wmp8FWRklZzUDSMAn2vCPSb0+Wt9P72ymNQ2NeQ== Date: Mon, 18 Dec 2023 15:02:23 +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 3/4] nvmem: u-boot-env: use more nvmem subsystem helpers Message-ID: <20231218150223.000aacf0@xps-13> In-Reply-To: <20231218133722.16150-3-zajec5@gmail.com> References: <20231218133722.16150-1-zajec5@gmail.com> <20231218133722.16150-3-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 Mon, 18 Dec 2023 14:37:21 +0100: > From: Rafa=C5=82 Mi=C5=82ecki >=20 > 1. Use nvmem_dev_size() and nvmem_device_read() to make this driver less > mtd dependent > 2. Use nvmem_add_one_cell() to simplify adding NVMEM cells >=20 > Signed-off-by: Rafa=C5=82 Mi=C5=82ecki Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l