Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12069714rwl; Tue, 3 Jan 2023 08:35:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXt/LLy+jQQZAjn+ukZcFRxHisCsJzPP81yZAo6hOSRUt07kkib/7iBzxgB+FAbSeC2STBcL X-Received: by 2002:a17:906:85c2:b0:7ad:aed6:5224 with SMTP id i2-20020a17090685c200b007adaed65224mr38448911ejy.74.1672763754865; Tue, 03 Jan 2023 08:35:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672763754; cv=none; d=google.com; s=arc-20160816; b=GtBv167Kyrlf01r51uVB8ksyfigc9HbpiJqkvvPPOURz+0/Pg5EkeNrzNG5ABfFLhI Opj/6MWsDFphWXB2eo1Vmj1idJN7dTkuzfCf2DAMOAGgr0UtrhP5FUMrkUl1Xa4COEzQ v+ettDEtpIu8XBS4lpP1Y+PL8JyJ1T2zfcGX/mpIAFlEef+0N68p6xDTaA3K6lxMpw4A dGmk1LVprNT2ENFahcjFAHU4yGaD3L2ZOWYUmbCbgsNSANkJ/FYxmzyQV5F9Co1F7JZV unUEEvj09+R6yUL5MLUrcUUl5fMq3KgCXHWxfhQzcQhiJJAhLG99xPmgFXUq4oajl7mZ +lAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=taOMH3TFvYbtpRD0i3FdC+J1eAZMym1mmkB6tNExdDo=; b=siUAITO+D1KC7mq5DFKOvTLH9v8P2mk+pPVErAY+Hd64eOanZeDb2pilwRUNPVMDJe MRNV2aQk+IJy5DT6nfqQ3InR2uwmlejcy4JAVnq8t/8sNJItFWW2xKVScOQLsAVferut ZTgic44hGSHacxZ45K80sQqYr4mBffUHmEcdYx23vkQ1XwbrOc6N7dAIttiWUW3h2u6Y rgVOW/HsNiyba27qtXhbx4xqcF/MPs07H3/x2qgQ8As85VTLhBmdvwNavOo1IecMgBUF Ade69WMIbzA8Fm2yz1E3J2rfL8T2H9FkNYWcx7MZsA+Sy+jZkjS/h4a7Agun0et8ZgP7 sEPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y3D0xl6E; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ae2-20020a17090725c200b007c103219025si25860210ejc.825.2023.01.03.08.35.40; Tue, 03 Jan 2023 08:35:54 -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=@linaro.org header.s=google header.b=y3D0xl6E; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233465AbjACPvt (ORCPT + 60 others); Tue, 3 Jan 2023 10:51:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238055AbjACPvn (ORCPT ); Tue, 3 Jan 2023 10:51:43 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8DFB120BC for ; Tue, 3 Jan 2023 07:51:35 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id fy8so10822644ejc.13 for ; Tue, 03 Jan 2023 07:51:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=taOMH3TFvYbtpRD0i3FdC+J1eAZMym1mmkB6tNExdDo=; b=y3D0xl6E94OyBJK6MXqzVOiVd651iCiYmyUsGpN5EdFHa2gjM9CkO5Bhy0VW8zDTq3 389xpL0IgOvqC2T6LKVIrZM0xObZnEs9o2ksmqJ+1QyjgjvHrstWySTQcoEVYw2bFRX2 wDn17oz4JWMmhqSonFcJX3a2wB5TDi/YAJUD+4q6h2oRLNJlSqh0xc+Gh7rA3xQRt3oB vWbyKAbtvrh/m/LUqfAileFF+3K7W9cjuIpQJdhG1sHW3jQRpoEsrwZn45GHlLDK555U k1IxsclvndKby6kXn4POiFMyReo1KzZmP3DNiJHHMftvo6rF1+5LdQMSDMSjowF0DGt5 6CcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=taOMH3TFvYbtpRD0i3FdC+J1eAZMym1mmkB6tNExdDo=; b=maQ49P0cGtH0D6/De7/quHIkjiVfGWt9YH3WvzNpiBVeG6iEAoBjhcRe3dfmhAuk8T C2asAqotAUKqRRpqMYJVHVDPBlgzW2bfvmiaJD8vtJYOvNJGdULmTkwveYljyUllDmkg 1Kf7GbCMP/n8GKRMnPEHJ5LvrLporKo9i2/Sa6vJ5YVeLQkQ82GYzwpLNO5RiKBAWnRA GsPgf+n6WnaBaA5GOYfxbv3f6TyseAGT475UFPjZRpekLq9JqgSUv6uHDIdIdFsJmQXK /bkEqm5B82IWAZ8I+KZ0t6aQE6nsTXyAUPPcnRG3Cei/3DJPbBgY7fmK77qfDLnl4kXy HOUA== X-Gm-Message-State: AFqh2kpIzepOaMTQiy6hl2sTO+oZWGoIklL8WzoCfnVbMucRt5hTWrz3 apYObiuGS2i7LODMj4eYzKAp8A== X-Received: by 2002:a17:907:d410:b0:7a7:9a38:d284 with SMTP id vi16-20020a170907d41000b007a79a38d284mr31250540ejc.19.1672761094018; Tue, 03 Jan 2023 07:51:34 -0800 (PST) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id m9-20020a1709062ac900b007c0d41736c0sm14158313eje.39.2023.01.03.07.51.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Jan 2023 07:51:33 -0800 (PST) Message-ID: Date: Tue, 3 Jan 2023 15:51:31 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v5 00/21] nvmem: core: introduce NVMEM layouts Content-Language: en-US To: Miquel Raynal , Michael Walle Cc: 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 References: <20221206200740.3567551-1-michael@walle.cc> <20230103163902.218cb5c7@xps-13> From: Srinivas Kandagatla In-Reply-To: <20230103163902.218cb5c7@xps-13> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Miquel, On 03/01/2023 15:39, Miquel Raynal wrote: > Hi Srinivas, > > michael@walle.cc wrote on Tue, 6 Dec 2022 21:07:19 +0100: > >> 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 and >> can add cells during runtime. That way it is possible to add more complex >> cells than it is possible right now with the offset/length/bits >> description in the device tree. For example, you can have post processing >> for individual cells (think of endian swapping, or ethernet offset >> handling). >> >> The imx-ocotp driver is the only user of the global post processing hook, >> 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 merged. >> >> NVMEM layouts as modules? >> While possible in principle, it doesn't make any sense because the NVMEM >> 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. > > 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. Thanks for the work! Lets get some testing in -next. Applied now, --srini > > Thanks, > Miquèl