Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2817523lqp; Mon, 25 Mar 2024 10:01:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNYngN4cMr+lr6REBRMtbQRT1vx9MQzBJzJ1rQPafuH7fujRARsS7dHPLANPk8d3VNfHh/oKnrVTAZHSzn4qvYl7jqU3DGq2iZyUfNLw== X-Google-Smtp-Source: AGHT+IEmsFroeEPSONpYajQUtYfnM1zXVfebhOghW8Aks/ufVORS6X01sBibqW3JYujg6N0ii5K4 X-Received: by 2002:a17:902:f709:b0:1e0:ab65:85e5 with SMTP id h9-20020a170902f70900b001e0ab6585e5mr11068756plo.1.1711386108368; Mon, 25 Mar 2024 10:01:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711386108; cv=pass; d=google.com; s=arc-20160816; b=WSiCk0S5rNb8romjzhhzbCYsIt+vXAbO6sWzN+ACi0tfMSR7MkKH64pS0Bb0Bte+/G m8TekL0AM0RoY3YR6biL90mejFC8UCUwJBQqhcliFZhBJ/Vmnv9PHB3fmgYNoY8muPqK oSDk5tujyIQGB5QCUc9+VhvqnyUG7iaNn+hWB9ccgk94bV6XqPhfLAF321hicnptH9di DbjlypDnddjqVYmQwT4opXg28G5OiFIlGsC5uD54vj6yyvCM7TpVSSFepw3kg+SgjxHG qzyohdbkSZ8vDK3oSvTT/5I2uDOM/dr+KHGS1DAvBSOm52fwWtza7YkQQRjLK4w9Gsgh 9xzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SDn6kwZEUq3G0NDO2W5B/GedvcNbt3nWA1bU6j7oGXg=; fh=19P/5DNvSgQOnXKM5Dogt2EVplzeX0U0nwvljOv0UT4=; b=wvaktZRU/pbAoTmpvo6ChypSzuPrMiuM97nNSxWi/BPEFAA0yUg2Vf7uDWGBJXfj+F DQkq9Y4NTRr4B3QwZEriuSq8xQTtLl92VwsAs3EjDhu9yFSgbYjUIkXAYgRbKlSZ7D7Q zOMeccPEFOt2sI2DyVV1lBWAr0rPl4fJP4ev+cTZ3o7DiKv6lsEczKXDjPF/a8v1l2Hb OvTx2I8dKVba10StusnsanzSskglXRi7dqnba+GCowu6G7pVlnDp2J0hvigMAcwCjKKd cVOQyO1B1O2Mp8nAsYnF4Wr86kR2cpDt7N93SBvDM/OC/ybWkJTlcEUiGu+oAERwmgbo FNdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mgsiOPh8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117342-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 2-20020a170902e9c200b001dd151bfaa6si5359787plk.617.2024.03.25.10.01.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 10:01:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117342-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mgsiOPh8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117342-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 E15472927CC for ; Mon, 25 Mar 2024 16:53:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 893855C96; Mon, 25 Mar 2024 15:13:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mgsiOPh8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.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 97A404A22; Mon, 25 Mar 2024 15:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711379582; cv=none; b=kqzuMQEj6vAOm3zq9egYdEuNld0ZhVF7TXds1x4oSUgy/N/2RyyCqFY9sDXJH2iGi5E+5njK5YPai5DOU1nw/kwZxzYhmQOp3L4rWZ/tftKsWZlmL5lIRmoVTE7FVOqe89IXDYvaxk6OEla56q71+pGQiJKPBHqPHZhtsr9Ne84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711379582; c=relaxed/simple; bh=8OY/TKv9wGiQsrHn/ApJGX7eVaWT2gxG2A8uasC+Mv8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RrToFg1hnfvA21ed56MgFpkVjALMg5bEUUafg7AmgJihQ/NPgrUubw4YMyIqgNM9U1sg+O9opoqQESeFWuWBx30FRW0gV6++WOHJZdLUB7nWMQjg/OprMeFfUbyTH8hOXiGcZ/aSvEOfHA39/aoRpTUI5ouNMzNlAes5/SUsSl4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mgsiOPh8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C49D8C433C7; Mon, 25 Mar 2024 15:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711379582; bh=8OY/TKv9wGiQsrHn/ApJGX7eVaWT2gxG2A8uasC+Mv8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mgsiOPh8cTJJYeddwhNyoZRcPlmuC834jgQs/O1wH86BG0FO9LqoJ5dpHz0amJ4I4 EJWhZGJK9Izh9RZoyHaLYBWw/VVS4qeunUwQHDLl/l0N5cqxJUG1R3HHRLkhpqeCcV gzefOHXhqHL3B+Wq/GTFMKkIz3tj+p6/m5dlJ5N5yQU0W009zeOMqEyMYNsj2M0gA6 F/U5kY45OLHDN/4bfVRsY6AWxbZo48N7YrrOuz3X+ZrVunXrqf/4zTeQywM7KGW10T E4KUwk3/L7O/Axj57s+edgORFJqzroN8d9pzbVoElqAALf4RDcKgSXtY/Myg7ie8Wq YXuTMlWTQHOGg== Date: Mon, 25 Mar 2024 10:12:59 -0500 From: Rob Herring To: Daniel Golle Cc: Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Jens Axboe , Dave Chinner , Jan Kara , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Damien Le Moal , Li Lingfeng , Christian Brauner , Christian Heusel , Min Li , Adrian Hunter , Avri Altman , Hannes Reinecke , Christian Loehle , Bean Huo , Yeqi Fu , Victor Shih , Christophe JAILLET , Dominique Martinet , "Ricardo B. Marliere" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH 0/8] block: implement NVMEM provider Message-ID: <20240325151259.GB3591150-robh@kernel.org> References: 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=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Mar 21, 2024 at 07:31:48PM +0000, Daniel Golle wrote: > On embedded devices using an eMMC it is common that one or more (hw/sw) > partitions on the eMMC are used to store MAC addresses and Wi-Fi > calibration EEPROM data. > > Implement an NVMEM provider backed by a block device as typically the > NVMEM framework is used to have kernel drivers read and use binary data > from EEPROMs, efuses, flash memory (MTD), ... > > In order to be able to reference hardware partitions on an eMMC, add code > to bind each hardware partition to a specific firmware subnode. > > Overall, this enables uniform handling across practially all flash > storage types used for this purpose (MTD, UBI, and now also MMC). > > As part of this series it was necessary to define a device tree schema > for block devices and partitions on them, which (similar to how it now > works also for UBI volumes) can be matched by one or more properties. > > --- > This series has previously been submitted as RFC on July 19th 2023[1] > and most of the basic idea did not change since. Another round of RFC > was submitted on March 5th 2024[2] which has received overall positive > feedback and only minor corrections have been done since (see > changelog below). Also, please version your patches. 'RFC' is a tag, not a version. v1 was July. v2 was March 5th. This is v3. Rob