Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp332354rdb; Tue, 5 Dec 2023 06:47:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IESoa5LTj5QEYX1vehjD5K5Vbeh7py9HcGneJ5DItTiXXCWFuiriAoCQ9hTZrBnVEOHMqcH X-Received: by 2002:a17:902:dad1:b0:1d0:b595:4eb8 with SMTP id q17-20020a170902dad100b001d0b5954eb8mr2352778plx.71.1701787626225; Tue, 05 Dec 2023 06:47:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701787626; cv=none; d=google.com; s=arc-20160816; b=UseD2XuiYyIyXHmTfAMqzIBTMk/DgIkGamqormmF4NOZW7UuCe9GIwRc9BBpsmkO1C 3cPkboVj9OmBCEhZhTREy5uUh0WNMV2yiZP8VtNV73yC4aGRE97PJbR6NY8mpqP5yV3K k9Zx6iPA6YCYyXCuKZ+fmQY4830KargPRGnk/FaOIivYKD+oQY7Wz+/O8HhS4KG7Hdwg R9XIwAPnqy7FNkQ1s3gue6oHmFA3Wk3vOvc3phUHtHdWy9ri1TrIQO59UPJO6IVjAIzi J18e+qsF6DIBHW9VTcS7Se+tMjihz3s8kwBo9iCUcTWV7fBBkJYC8HtCEM1wHv9IRkf/ /mKw== 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=3oW58aA+EmNdSZ3vq5hven3qPTQb+RFRYHU5Pcj6TJ0=; fh=Qef/kmT0HRzqZmEO4Vweo6AG8FUE87PkhJsp3T1OZ1o=; b=KhRhfLB1HJOy8fALxFc93ud5XgtHdJUs36iL0kN5pLn4aCdD+A8FI4Kf8pVwHQH2j4 6wL3LIk/fM9Ilplx7xzS/JnBLVNG28i5U0rwbcmZCbkQ6g0b0cCMvrgd5D1apD1Evu5w 75NGlU+ke3XBNA/5BFKr3mXkXNuqAxCKOq6zRmIKKGjzR+7tZbeIEp4JJAkl/zShkJFa M3dIJR/mthdE6mjUcsPafL72IV0lU1Rdk+1NFYMyfftFLEXgg8GxX3Rfe03FkKRR5K69 TPoUPKQQKG0EDKzmXx0c56ovEe7sy+UTq0BmAw/j7eE+fLesCtf5nbYE3Urj3K2vYjFb ITLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BWJyV0aw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id l13-20020a170903120d00b001cfb316a183si9855314plh.141.2023.12.05.06.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 06:47:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BWJyV0aw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 02FC880A64D6; Tue, 5 Dec 2023 06:47:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345685AbjLEOqn (ORCPT + 99 others); Tue, 5 Dec 2023 09:46:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345682AbjLEOqm (ORCPT ); Tue, 5 Dec 2023 09:46:42 -0500 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6559129 for ; Tue, 5 Dec 2023 06:46:47 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 8FEDF1C0010; Tue, 5 Dec 2023 14:46:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701787606; 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=3oW58aA+EmNdSZ3vq5hven3qPTQb+RFRYHU5Pcj6TJ0=; b=BWJyV0aww7ayIVS3QtH5a2VYjsG5piTWINPR8X1d8fTYfNee7xEXXp/4zP+poiblGvdBvD SWoka1XdwL8zZ6Pz//WWZ4GDlY6Tz+SPYTuuyJB4TokILP69EGHDuLRNUXolQqDMmwQtxA YUcd6PpXW1ND79/nr8h0SeN6iklwC42lan4G64O3BIxjgFheT1WBlRKyCzPkdjPgSufHMN LGbZvQYHadABIo1FsUeWAvebmRdKNkjRdZ3PV59vaSNlhtI4S16FnYiaPObLIBjBocLlUx bvHFxpDDtCikGMTptqOiw65qsMR88Bhmx8Iu80D6Q+Ir0DC/S2wtJn2XJxJGQg== Date: Tue, 5 Dec 2023 15:46:43 +0100 From: Luca Ceresoli To: Miquel Raynal Cc: Srinivas Kandagatla , Greg Kroah-Hartman , , Thomas Petazzoni , Robert Marko , Michael Walle , =?UTF-8?Q?Ra?= =?UTF-8?Q?fa=C5=82_Mi=C5=82ecki?= , Marco Felsch , Randy Dunlap , Chen-Yu Tsai , Daniel Golle Subject: Re: [PATCH v14 0/8] NVMEM cells in sysfs Message-ID: <20231205154643.76eb4a32@booty> In-Reply-To: <20231129163737.698317-1-miquel.raynal@bootlin.com> References: <20231129163737.698317-1-miquel.raynal@bootlin.com> 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-GND-Sasl: luca.ceresoli@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 06:47:03 -0800 (PST) Hi Miqu=C3=A8l, On Wed, 29 Nov 2023 17:37:29 +0100 Miquel Raynal wrote: > Hello, >=20 > As part of a previous effort, support for dynamic NVMEM layouts was > brought into mainline, helping a lot in getting information from NVMEM > devices at non-static locations. One common example of NVMEM cell is the > MAC address that must be used. Sometimes the cell content is mainly (or > only) useful to the kernel, and sometimes it is not. Users might also > want to know the content of cells such as: the manufacturing place and > date, the hardware version, the unique ID, etc. Two possibilities in > this case: either the users re-implement their own parser to go through > the whole device and search for the information they want, or the kernel > can expose the content of the cells if deemed relevant. This second > approach sounds way more relevant than the first one to avoid useless > code duplication, so here is a series bringing NVMEM cells content to > the user through sysfs. I successfully tested the whole series, independently from Miqu=C3=A8l's tests and on different hardware: [tested on ARM64 + an I2C EEPROM with overlay loading/unloading] Tested-by: Luca Ceresoli Luca --=20 Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com