Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2970346lqp; Mon, 25 Mar 2024 15:04:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpK7dQPQwTSutjJn7cWLuUI1T/TlGRd9QpMoXoFN/uvyq++HTrHy7kEvcGF3ZjcCoqVyEPXmRI1ieOPSRDAmuN3qV8Qx52z1+oHvtm0A== X-Google-Smtp-Source: AGHT+IHw39dnTGV4K2mb3YEK2uFjOM65hL4Sn+KdKg5DAPNTVkZEqpoNneCZiCH4bOhi5136vY5B X-Received: by 2002:a05:6a20:d394:b0:1a3:c305:a8eb with SMTP id iq20-20020a056a20d39400b001a3c305a8ebmr7217017pzb.53.1711404287215; Mon, 25 Mar 2024 15:04:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711404287; cv=pass; d=google.com; s=arc-20160816; b=g3SCvJ+DpsVFKQsGPMcKxiTvDvElExkkoRr4fTcobF8PcYq1XRcSC2rlQWYPKfKDx0 +iVYkM4TIMOHgmjIED1ekmVqckxm/EVh53pvIp4g0GLMErA3/N2Im8jNzrkWdde8R3N+ pkuMHgUJuLe5ZrN93bJOfnt81SCb8ZTF4YZrRw4loFrnDp1nHS8qb+hKPzB4RsE31uiU d8HqTqepdW8xKPPD+09gVOQAW/0YzZ2quM+gNHuIUzmhD0jWe38G8qTgehBJHPqaKOUF aOBS8D8gHpKONTjWkn+fDOFsuZAb3F0sgWr/6YRdWmI8RGGxN7fd/7EThrek0us0weSp T7TA== 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=kZrZux477FswQKUXCguxJBpJAj2p5JQOS769MFKWL4Q=; fh=19P/5DNvSgQOnXKM5Dogt2EVplzeX0U0nwvljOv0UT4=; b=a/OEGQXKYUMncxlPhdM1+O23vU6RkOp1pEDPP38SswI8WF+bPzekdIz+hoLJkVPjd1 dSD7fnGf3GvnhkXXp/CoG/MojKuyjXShK0QCqElFhmahVrbDDG5Pw5uZ0nPxcJWRJchQ uF6ORLw6AVvzbHh5R9lfDe2U928Kqb26OFiRcp6w4kgnEOb/+7xN2M59PC0M/9Tfl3sr /qR79vp7tSJInLa+QVXuDm+W7skqCLDqoYeHXgTLNg1J7V4+orKIKPN2T3omRQmVZHNX ldV96nLuusH/Vf3QGM7oq9/wH0+AAG/M/6J8MN2rwDjpup7/i1y+qOj038kQyZ/zXqoM fVqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ti6eVYIn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117334-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t2-20020a625f02000000b006e8f71c6382si5870129pfb.361.2024.03.25.15.04.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 15:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ti6eVYIn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117334-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 86EE9B3D22B for ; Mon, 25 Mar 2024 16:51:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C09A18624C; Mon, 25 Mar 2024 15:10:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ti6eVYIn" 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 DC7E671756; Mon, 25 Mar 2024 15:10:48 +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=1711379449; cv=none; b=cNZYygfF5ZBNRvxnhE6jRC+s6DMxNBvI+Ss+wBq9XLpaOVfGORtQ7uP4WmvdOnq5zlT65ezjp3VnecLtWB0ei4ENERgSRs3VOQvPzD6Go5reoLIZmlTBRl55/aXMIFwO00ShKH1x1J8X0gt7aPOJx5AsrP3/75MKOkRtWrsE4fk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711379449; c=relaxed/simple; bh=trg7U+nLMFYCvy+OFlT2yFQrUXZMi1r0QsFIeOhyV5c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D0kYSbKQk2fP5FaT3jculc6kAKEUAIcrqKIYuhq4YPx14A+VTMndrWjauzSprrNnRJhR7rcRACFC2ar/sdxhUmaIZQCk8sp4rJCvbAGGLv9ENQ2HIYxD6VQMCmZoadbTC058UNj5oycTHGUFOdaZMD46d4K8+gifWsftW9+SxOo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ti6eVYIn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A7E0C433F1; Mon, 25 Mar 2024 15:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711379448; bh=trg7U+nLMFYCvy+OFlT2yFQrUXZMi1r0QsFIeOhyV5c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ti6eVYInJXHAVKyP7Tfo6+ocS313pVhZ7NHgFubN1R5Sf2kgudJg7yL0C6tCZ+uvt zKcnghy9yia6BSRKb0mRE01TkhMQrTMAVYcZfpPEII2Kdwu/TZjHhbALDFWa0SktA0 YJR013P3yI0NaC77QGV/AO97/pUvRlkzHbPA7Fe6+PutVXjFP8gc2qCaYlZr6/axlv HdRws+E6gi+1llflUZpe8pjiKto71vgtm1/8K2GbmoA2Tpmm+NAfwh+UYOEPxEsnRU cAmRpvvMpMtOJEmZUrSlo3XTnjnpUJMluFEHASxdOMjkngO9wLm/ORZgP/XCYJtX9I UnLnmod4B0sSw== Date: Mon, 25 Mar 2024 10:10:46 -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: <20240325151046.GA3591150-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). I don't recall giving positive feedback. I still think this should use offsets rather than partition specific information. Not wanting to have to update the offsets if they change is not reason enough to not use them. Rob