Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1306435lqp; Fri, 22 Mar 2024 10:53:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+QuCdH7g4FjjUWTYLizwuELWvzm1js1vHHP461uZyCeDTWnkaPu9JMWw6pRRrPZZOeTQKx0Ucn80aJPkBtT62/OMSSRDkW+/5RjjnHw== X-Google-Smtp-Source: AGHT+IEvGvjhckR6RB8LtYevscA5rgc4kb1MH7k6Py/rP2+ceFD56mY7NLyxnXv/+XlCD8dpcqR6 X-Received: by 2002:a17:902:ea01:b0:1db:edfa:7713 with SMTP id s1-20020a170902ea0100b001dbedfa7713mr610569plg.18.1711130010096; Fri, 22 Mar 2024 10:53:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711130010; cv=pass; d=google.com; s=arc-20160816; b=kciMWkqh5T3RZx6L8i08YZOkq/CbjMY3rBqobKXWC9eE8z1BDVL/8yFL9JbyrAuWVe ryOAL3PtxJVQ+C1lDYA6rREnfXtEKqVdLRUJzP69xW3v4w3btHiLQlCy6iDoCsZa402C B1gMKGr5dSQuV/d1gILcUnuZfxUzqb73W79f1hkKht1IppatPrcRdnGKIN3BpymFWryy j5T89MDUU1TquTmFDi+JDZYuqeQbQGsscvzDMJIibuD9jzJgFXgauM6KlE7fBrd5F4+i XYCEiBkPcT+5BwtGSY4hYx/etOi0Eie0EBzDZb3ZxyDMBPrEX3fzgmYfMfiJFgzrsmgE /8lA== 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:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VmpsveN1Jy+pI79mJoSzX1TmiWIgqpdMBcYQ0YCsro8=; fh=CruYDnfF3mvfznaaLByR4nqsVdX2h27sVb6DO175PhA=; b=q+AUWFPGOZF7zXdFRSHr3mzR7sL0VaU8xh2rYzN+sdKjV4tt/8wnapWbaNJw6QbDzG xOaASKVZ5hQMzvq10LfnFWZi3TxICVHZotZmQCRgDzdW2Y5n2Zhg8WBLn0CPPTh4t2aA kPHKx9qD88y7UbjZ2HKUjfZLzz+uiqFhj+nI5mQxQYreyes76jcSwh01JV9e9xacSZ1C Y9KmPkIfRC4waqrfeoBrSfR1TQ0Ph5pAkIjcGPdDo/84AAM73nJvsUSN48VFIlFmhtLm kncleIlRqopdwpJwqkBvUb7XXMWifOiCd7rQ5nlpBgqKJ3ycE7rlzsSAXz3qxsJRyXhJ Yb3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=kgwNwn08; 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-111887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111887-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id jv12-20020a170903058c00b001dcb3b6e55csi87plb.299.2024.03.22.10.53.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 10:53:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=kgwNwn08; 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-111887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111887-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 20A73B21D99 for ; Fri, 22 Mar 2024 17:53:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3D45605DC; Fri, 22 Mar 2024 17:52:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="kgwNwn08" 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 B167F60874; Fri, 22 Mar 2024 17:52:51 +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=1711129973; cv=none; b=ZzxaFD25HmVAFQ55JuamBChNoIlBrOYBGCCQd4U/RIPhGjwhU4z99XemAeyNdCF6blHU1RMVXEJXeas98ZJ5i41zSijHFGXecXnbOSLVzfBUQax26O6aVBEND7ezq6oOwY8+tx+WhM3/06qAjHFl4HiXY+aL0vmg2WBefgtS2AI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711129973; c=relaxed/simple; bh=cPpzkL33TNc8EjbO22UOd0Waan/BeO74C1s1p9UZ/a4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=unCVsHDHhDwrfiiN/OPEFwVNN4kZgZqK5I9mfspxzcj2Nr+J/nZ4/HLJC0h0dGdSZgdfriIF/H+Hw3tMCy6XYwOVgjYzDPsac9HupfDn0tSzw5gRusThwD51Brhe++GQSJZ6gniq3Hd2xx98RWa05h5jaeqIashznQTqj4mtr3s= 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=kgwNwn08; 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 4V1VKb22wkzlgVnF; Fri, 22 Mar 2024 17:52:51 +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=1711129964; x=1713721965; bh=VmpsveN1Jy+pI79mJoSzX1Tm iWIgqpdMBcYQ0YCsro8=; b=kgwNwn08fqIrxHP5H264S72bIhZb5jOd5P/pAbWr 10b43ql298Ll0OdhuZl6sZ+SQPHzPNFSfKJjYVXeh9BY1K2zegzA7vH1mnjPnfjM FKBzy4bDVWu7O8eMuV1EPQBWHCtKrcSWoLPpktF66AS4wUAC/1kJzufGMdnNs7t6 q62nT2xTeE0UTqel4BxzJFRA2elLKTNpfbKk1uNTklo+TMPgN4CM2FgMOUT58Z91 m4vAdjX7Pgn88NAymF5V6woD9zN7GrsuQ+lc29MAkDz8NIJN+P0kxHny8Mi/8bc1 i7RXpEKlbNBrfk2dtM5LEP+NrJzjyXCBIiVKPjVpX+ndeg== 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 CnWJKX_Ztm_X; Fri, 22 Mar 2024 17:52:44 +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 4V1VKK1wLtzlgTGW; Fri, 22 Mar 2024 17:52:36 +0000 (UTC) Message-ID: <99874d1e-ff5c-4e8a-9922-752207119147@acm.org> Date: Fri, 22 Mar 2024 10:52:36 -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 Cc: 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: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/21/24 13:22, Daniel Golle wrote: > On Thu, Mar 21, 2024 at 12:44:19PM -0700, Bart Van Assche wrote: >> Why to add this functionality to the block layer instead of somewhere >> in the drivers/ directory? > > Simply because we need notifications about appearing and disappearing > block devices, or a way to iterate over all block devices in a system. > For both there isn't currently any other interface than using a > class_interface for that, and that requires access to &block_class > which is considered a block subsystem internal. That's an argument for adding an interface to the block layer that implements this functionality but not for adding this code in the block layer. Thanks, Bart.