From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 542AF6A33F for ; Thu, 27 Jun 2024 22:15:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719526530; cv=none; b=EI3KOpDICAypGnP34cOtHpBSJ9lbr6tddrKJtME7yEjzDkifPEPkd5FAVs5+n4MzSXt7moZGoZIljtF0TGYUNEz4os15pW+a3gXUhuONn3tirfWgLAemfX7apJB07HEa+CDHM6bW/H67Y+A2UqDLKL9Xz+LseYS2bN1i5ENMuN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719526530; c=relaxed/simple; bh=4H4YR0/K52vVw0BEDoTImD+JL5bNhzc9m0ae+WYCdSo=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=uqAxktjwbIlBKa17GhsORy0V2clfNTLb4r33MSeGYzL3bBQZ50CGOw+NB5qx/YxMd1OTVhyszVXg15C/mDNMeZwVGPdRh4+WJGfqGkJoq9GQq49+dCLsslmkATynbZ4zGSGMTNgukv6T0bmaNyRNjFUk1bEV2jGmJNolI4KRxl8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=diOMoWRu; arc=none smtp.client-ip=209.85.166.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="diOMoWRu" Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-7f61ce48f8fso373539f.2 for ; Thu, 27 Jun 2024 15:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1719526528; x=1720131328; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=X+U5P6sQtlqvHqVMqUmWBld5jM5RmHwrjJ1USH3XW9c=; b=diOMoWRux+Z5jH1wwm0MXZNVX/tmVkhOl7guHntKH7lzqUXRoNbmp33hz58EBXqMbs BuHixE2ObB+tc1UTBuO5VPVJ828uXPiC0xFEMKMvTETYAusX9d6Tk8eWdFPC53ecqegs DRvdCi2AL9QLL54d9lYhLlBZtuBfTfhsJXJzNjTYDyP0wR7/WGdn5dL2FfwuhCB+2ZBh J+3zm8JGsE1GXIHfBa1rznBytn/QlhZooK/d5nQb1DMP2C7B+/bg3rje7mBgoVmdb9fe AjoQDq6YXbRvYYV8497A9K4CcK1qx1+SHFD32qP/bOMfGBxTeY6HvG91ZNR5e86e/yNR c6Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719526528; x=1720131328; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X+U5P6sQtlqvHqVMqUmWBld5jM5RmHwrjJ1USH3XW9c=; b=QcHrV2Zov/4aJPKItjfD9GZS0H1ogmOPIQslT2fAWbrbnHXQd+wJl7fPdQ/AVVfYBK Pe+wMR+rPBdsjEhU2Rm+FjMEc8QmKFosO8/afifKuYml+ToNMYvTm26S8EVziD4GlqNd PuPKNMgN9rpXLTbRoBMfP/P7Xsp5tkAdt2rT5iGagRsB0z04L5pctXVNfk7cM3+OG4BS G6lS5op2k2LyZ91q7VLa0jixoKr70iToUO/SHTHvHFi9rHbmbq7snEwpwnphEO5kX06h urlS/vCdf7A3EWliv7VPkBTFrZbkP948kV8i0krcGGrt3wmELjaFSfgIl+XkZMalFBe0 8lQQ== X-Forwarded-Encrypted: i=1; AJvYcCU0OV1tXgvPwpJkO/V4vuADwm9WzUwWB+InwDJiPuKaN0xy577G9f9ldhgA0rSjFwIApeJRmXBbPgipwLP1Uc/P/CWuSYII19dohQ== X-Gm-Message-State: AOJu0Yz/mqTLHSyQdhHmGorbXWzQw1SotXA+oK/8DTiozLbmpJhUXh+4 b+5BjUJxx9dDc4qdyeXBSjcP8yNlPlO0h/EI1DE37QJ0vIQPJaSuBvqc0I+EuvQ= X-Google-Smtp-Source: AGHT+IE+c3oTCSG4DXvfFxRH7ZmI2eqlsqlemsaW1irAg97d62AxsEpde/+Ps9QA1t3PJ2h5vj0L4Q== X-Received: by 2002:a6b:4f0b:0:b0:7f3:cd61:32f5 with SMTP id ca18e2360f4ac-7f3cd613354mr658652339f.2.1719526528386; Thu, 27 Jun 2024 15:15:28 -0700 (PDT) Received: from [192.168.1.150] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70801e54936sm222787b3a.35.2024.06.27.15.15.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jun 2024 15:15:27 -0700 (PDT) Message-ID: <5ac45dc2-f434-4ec3-9f9a-dab6bb029deb@kernel.dk> Date: Thu, 27 Jun 2024 16:15:25 -0600 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 0/4] block: preparations for NVMEM provider To: Daniel Golle , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Hauke Mehrtens , Felix Fietkau , Srinivas Kandagatla , Dave Chinner , Jan Kara , Christian Brauner , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Al Viro , Li Lingfeng , Christian Heusel , Min Li , Avri Altman , Adrian Hunter , Hannes Reinecke , Mikko Rapeli , Yeqi Fu , Victor Shih , Christophe JAILLET , Li Zhijian , "Ricardo B. Marliere" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-block@vger.kernel.org References: Content-Language: en-US From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/27/24 2:49 PM, 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. > > Typically the NVMEM framework is used to have kernel drivers read and > use binary data from EEPROMs, efuses, flash memory (MTD), ... > > Using references to NVMEM bits in Device Tree allows the kernel to > access and apply e.g. the Ethernet MAC address, which can be a requirement > for userland to come up (e.g. for nfsroot). > > The goal of this series is to prepare the block subsystem to allow for > the implementation of an NVMEM provider similar to other types of > non-volatile storage, so the same approach already used for EEPROMs, MTD > (raw flashes) and UBI-managed NAND can also be used for devices storing > those bits on an eMMC. > > 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. > > Also add a simple notification API for other subsystems to be notified > about additions and removals of block devices, which is going to be used > by the block-backed NVMEM provider. > > Overall, this enables uniform handling across practially all flash > storage types used for this purpose (MTD, UBI, and soon also MMC or and > in future maybe also other block devices). 2-4 look fine to me now, but I don't know anything about the device bindings so someone qualified should review that before it gets queued up. -- Jens Axboe