Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp698471lqp; Thu, 21 Mar 2024 12:44:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUXL4ZQK0M8PKvhcfa7yNXi/iRbfZ+Vchlxy/r+2dQC5Hv/99cWBZei22bgrhZ9rcYxquHhio9jwBfUnf+AC7TC+VlmDhCKOJ3bvGSCA== X-Google-Smtp-Source: AGHT+IHafDiP72hgaBPZfucCQwmt6PRd80tG/ThvruOkE8YlRppBY8+VFPo2OsiMynpkxweddL3U X-Received: by 2002:a50:d559:0:b0:567:a318:ac0b with SMTP id f25-20020a50d559000000b00567a318ac0bmr185393edj.16.1711050284772; Thu, 21 Mar 2024 12:44:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711050284; cv=pass; d=google.com; s=arc-20160816; b=ENVaS1PKkkTUga15LemKtxe96d/kCg8+ydmzk1v0qeijcS26mZoGBEhQeDvchaYv+Q 5rtMMUuBw+xHWs1lf8pLSbVLB+uudHNDH8Dq/8tVWMD/5rIvsCm96/Ftwy+ihu1os2ks 51+6hkUIl/NsWZeDDFq/fJytRvJvBZeUqmdEXrblczTNONuBbbnDReUtzWIlJT9vVyBL FqB1jrc4dhnhu8cd7p7Q4xpORSskDtOOnblPX9BvHtcgPOFUglB7KaLfGjFw/f0S1xDz jqkeQhP/rfyBBxjrcie5P9UBrHq8M+H0iqfs4UCelnRaotp08WXVQcaFElv6MTPaC8/R lBjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=SpVSKe2FDWsZA6RlvkSY8fUGPrZo8UAPmj+w+wT8abY=; fh=b+aENsSTaAQk8KcOuyetFSa59SXzy3jJvBBwlFF8Yd4=; b=KraBIswTwZxggfZiFpAS+eXqkhu3O+W7ncrkvI+XY+qCa7OOhzA6+StsXGCQDwOxWV 2zzqcWOAVrkyRxXFvv2YAjCzL1cSluZJ74xM6k4tjFOKjssVEmtb5j9QmuBQUddbYOtZ 6Us3IFJdzjTVDt7vFwn9eC36ONkDzNjAcPHKsKPCSyV+OuKd/S99g3ZGC7W+NWrSZmiB /NULsgGZrnJV4yW0JR6yz/zooaUF8fTtvgy0h2AT3QaVk351LhtO8inJ6oTcneJzhXV2 fy/fx5HVVjAvJNOP+6hxt2AJrFqLQTWh0Ax80jko1KBJUxZiAL9d7WUpgLCFGm2yPw9H 0xFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=rUgkUQ4p; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-110608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k15-20020a508acf000000b0056bcd68c4e5si178677edk.518.2024.03.21.12.44.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 12:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=rUgkUQ4p; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-110608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=acm.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7DB761F21F5A for ; Thu, 21 Mar 2024 19:44:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58975134436; Thu, 21 Mar 2024 19:44:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="rUgkUQ4p" Received: from 009.lax.mailroute.net (009.lax.mailroute.net [199.89.1.12]) (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 0E302132C38; Thu, 21 Mar 2024 19:44:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711050274; cv=none; b=NR7imQrWVqHJdc+qWPC2yToodQ2wuba9b+GdfKKCvPELw5nS2BeUX8/W05L3wComR/dhl3M8Q6IvMLxQLQgpcNGNAN6tRpTqtBEjIcabC4jFe7F5EV9hEi1WQV7dS7sJJDOMBpMQJZEHZMZNAYKZ7Wk6bRNOSpKU8dDVDFFEUdo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711050274; c=relaxed/simple; bh=rbdZgAx5OMc44/b4taFIydsj3IvyxH7jHFsK3TNL/BQ=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=HqMlrV3QkZ9hjlTfoWpFvKWwTbma28aFpmlHk2SeXoZw1+QJHfXlla2lhf8qDBqhUPwZgHTqGiEzr1uaYtIKQ2PzkG10Bv4+oJqk9x5m5TruX2m8RpipXh15+hwfNdfov1A2XmyX6tNxnnt2++4XQGceSwSGtu0n681gSyg4jmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=rUgkUQ4p; arc=none smtp.client-ip=199.89.1.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Received: from localhost (localhost [127.0.0.1]) by 009.lax.mailroute.net (Postfix) with ESMTP id 4V0wrw3Y7ZzlgVnF; Thu, 21 Mar 2024 19:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:references:content-language:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1711050263; x=1713642264; bh=SpVSKe2FDWsZA6RlvkSY8fUG PrZo8UAPmj+w+wT8abY=; b=rUgkUQ4pKvRo0MnKMv8HBajk8pKVG9x3IEojHuPf Ksp0ApJU9+XRXIEOYNl6KEdaEMhGZ/HAPli/vwcHJ3F/ghYkYIZmqZYQpzGkFLLA KQNMM5bw3tVq5qbSjO5ztqkqXkvgQCTZNc+088HlNcasrDeXjnZve3u8diVNwnkL hqJNbyih6MHR/86S2+cBdrEg2Lg1vIrbZBqbl6jo4MUNgw6ifBWs8Avsmr7CmB/Z Y4dzECXDa+aqHwSnkL0rh3mcnM2CcTQRtqwjCDZM4KtwTr9JukhvizlTlTjxqfv9 +ai3/saCPjc9cNvBevTZo+ZGjgvVBRGjnFcymG1fT4BU2w== X-Virus-Scanned: by MailRoute Received: from 009.lax.mailroute.net ([127.0.0.1]) by localhost (009.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id TjaQfJAj6kku; Thu, 21 Mar 2024 19:44:23 +0000 (UTC) Received: from [100.96.154.173] (unknown [104.132.1.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 009.lax.mailroute.net (Postfix) with ESMTPSA id 4V0wrh4tZhzlgTGW; Thu, 21 Mar 2024 19:44:20 +0000 (UTC) Message-ID: Date: Thu, 21 Mar 2024 12:44:19 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/8] block: implement NVMEM provider Content-Language: en-US To: Daniel Golle , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Jens Axboe , Dave Chinner , Jan Kara , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , 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 References: <7555db6eb71d4ccb2b9d5ebe3b41dc34088c6316.1711048433.git.daniel@makrotopia.org> From: Bart Van Assche In-Reply-To: <7555db6eb71d4ccb2b9d5ebe3b41dc34088c6316.1711048433.git.daniel@makrotopia.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/21/24 12:34, Daniel Golle wrote: > On embedded devices using an eMMC it is common that one or more partitions > on the eMMC are used to store MAC addresses and Wi-Fi calibration EEPROM > data. Allow referencing the partition in device tree for the kernel and > Wi-Fi drivers accessing it via the NVMEM layer. Why to store calibration data in a partition instead of in a file on a filesystem? > diff --git a/MAINTAINERS b/MAINTAINERS > index 8c88f362feb55..242a0a139c00a 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -3662,6 +3662,11 @@ L: linux-mtd@lists.infradead.org > S: Maintained > F: drivers/mtd/devices/block2mtd.c > > +BLOCK NVMEM DRIVER > +M: Daniel Golle > +S: Maintained > +F: block/blk-nvmem.c Why to add this functionality to the block layer instead of somewhere in the drivers/ directory? Thanks, Bart.