Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12071053rwl; Tue, 3 Jan 2023 08:37:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXtLAjR9qT9A8Ao/LVm8l8XMCwcqQ+0PTkQaLGXbGHMPkIM1UTPzM7LxT0+E/Bnn6GmJ/6Ab X-Received: by 2002:a17:906:281b:b0:7c1:5863:f8c4 with SMTP id r27-20020a170906281b00b007c15863f8c4mr37534305ejc.21.1672763823656; Tue, 03 Jan 2023 08:37:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672763823; cv=none; d=google.com; s=arc-20160816; b=WIJzSKjUbrlE2ID2CSA6bbWbym/qHnZejDIGMX3riu8hInhmzb0DUhTpbTdaNP8NiC tF0I+CMq8iIgBOEfydgB8I5qmTLWXUlqD0G4UliiylUxsp22AQeQ1ybjUhNqJVKooPmI +HCMtCp81EN/v+pAfvGvAETXJ+LZop9jHW9RPGJ50u8ppjy/5YuOu5W6Jl3BZkOAfg3X gWC9pVYYR4mc1Rq84FvZxZCZnp/InnPe5abiX1K+rh3F5bKpELuIRhtoa6R7nDP6Rj3p Nx2BipNWg8Ec+yfIclII4tuKmTnWcfkdJU7/Dc81V60BR8rcwy13BSIL5l4EGzdz9lHI xx9g== 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=1PDiBU/GoIjoQMxtR9ofH4gDtLhcbGK+av0qJpmmRtU=; b=VmIbxpFB6c0DLxhuSoQPUpxEf6TLXjFhEl0vq627wzhTI1mP1q/Iy6VgfnnVCHbsHn S4ML0jeaEY/j8scsu+Jb7gl5I1v+zryg1QBujAgxoIpGtKr6LcX351yJqh2P9X6/is1D fNNw2vIBBjMS4PfouO9mrIqRv2FnAAklLROhfNt/ny5OaPTqMlGiiIEbnHsLbHBgMg3k 4nAi6JbC5yiYgkF0630DPmPN5j3mbBf6Ce0tH/wIIT4qNu404p5FKbXJvKQCNAtCnVus KVpkOyE4A4GvwmeUjDqfAuEIB87BpSdlP5SYCqLgVv2kD0pvV6LGjaPAuU5A8o/Kqv6P VHIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gTYXjbLw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd9-20020a1709069b8900b007877f3132d9si31171883ejc.438.2023.01.03.08.36.48; Tue, 03 Jan 2023 08:37:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gTYXjbLw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233237AbjACP6x (ORCPT + 60 others); Tue, 3 Jan 2023 10:58:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238087AbjACP6u (ORCPT ); Tue, 3 Jan 2023 10:58:50 -0500 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 266B012080; Tue, 3 Jan 2023 07:58:48 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 7BBE6E0004; Tue, 3 Jan 2023 15:58:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1672761527; 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=1PDiBU/GoIjoQMxtR9ofH4gDtLhcbGK+av0qJpmmRtU=; b=gTYXjbLwQaFvz/pw/mVQUDUO3klTeU+FeYUnQeYPhNQuIZPFJoI6HJoWWmt6+U469Af/pF 37qKV++t0/4lnz6RieVmejbkBg4EZ+n/TP69VIUGFFvaktT91ueSF8QQEbo2u02Sb3Udhx 0AO9e6KUlzXudWYK9yjKSp7vWzzVN+O0R/eJAygzrwVt0V/yWWAt+vJwBAzMv0tQpxypNh o3sbTwHcQUh5nfdRPpSE0csEjIlj+6xQkVmItq+GLf1DO8knrTJaY/Y+/axoaOhciZutaJ nrk5LvLK3fWgKiIuWQR/zqORiwqwedREHoRhjFCix5R036aGBEkuns1egglDqg== Date: Tue, 3 Jan 2023 16:58:42 +0100 From: Miquel Raynal To: Srinivas Kandagatla Cc: Michael Walle , Jonathan Corbet , Rob Herring , Frank Rowand , Sascha Hauer , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Dan Carpenter Subject: Re: [PATCH v5 00/21] nvmem: core: introduce NVMEM layouts Message-ID: <20230103165842.2f693bfa@xps-13> In-Reply-To: References: <20221206200740.3567551-1-michael@walle.cc> <20230103163902.218cb5c7@xps-13> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; 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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Tue, 3 Jan 2023 15:51:31 +0000: > Hi Miquel, >=20 > On 03/01/2023 15:39, Miquel Raynal wrote: > > Hi Srinivas, > >=20 > > michael@walle.cc wrote on Tue, 6 Dec 2022 21:07:19 +0100: > > =20 > >> This is now the third attempt to fetch the MAC addresses from the VPD > >> for the Kontron sl28 boards. Previous discussions can be found here: > >> https://lore.kernel.org/lkml/20211228142549.1275412-1-michael@walle.cc/ > >> > >> > >> NVMEM cells are typically added by board code or by the devicetree. But > >> as the cells get more complex, there is (valid) push back from the > >> devicetree maintainers to not put that handling in the devicetree. > >> > >> Therefore, introduce NVMEM layouts. They operate on the NVMEM device a= nd > >> can add cells during runtime. That way it is possible to add more comp= lex > >> cells than it is possible right now with the offset/length/bits > >> description in the device tree. For example, you can have post process= ing > >> for individual cells (think of endian swapping, or ethernet offset > >> handling). > >> > >> The imx-ocotp driver is the only user of the global post processing ho= ok, > >> convert it to nvmem layouts and drop the global post pocessing hook. > >> > >> For now, the layouts are selected by the device tree. But the idea is > >> that also board files or other drivers could set a layout. Although no > >> code for that exists yet. > >> > >> Thanks to Miquel, the device tree bindings are already approved and me= rged. > >> > >> NVMEM layouts as modules? > >> While possible in principle, it doesn't make any sense because the NVM= EM > >> core can't be compiled as a module. The layouts needs to be available = at > >> probe time. (That is also the reason why they get registered with > >> subsys_initcall().) So if the NVMEM core would be a module, the layouts > >> could be modules, too. =20 > >=20 > > I believe this series still applies even though -rc1 (and -rc2) are out > > now, may we know if you consider merging it anytime soon or if there > > are still discrepancies in the implementation you would like to > > discuss? Otherwise I would really like to see this laying in -next a > > few weeks before being sent out to Linus, just in case. =20 >=20 > Thanks for the work! >=20 > Lets get some testing in -next. >=20 >=20 > Applied now, Excellent! Thanks a lot for the quick answer and thanks for applying, let's see how it behaves. Thanks, Miqu=C3=A8l