Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1304740lqp; Fri, 22 Mar 2024 10:50:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAxKlo3s736EkLya6NDg+rg3ChZGo3qDVXaQuPpZOMNzWaOL9JiBmcqRrid6eN7DLs1TDwn71nUV7QabMrxwxiP9zbI6CvC9tZx7G08g== X-Google-Smtp-Source: AGHT+IHMospn6PaB2m1U+yXgrYio716qNwZxqabVIXIQOh1Rss28OjDDg5tJ4A7/VqHkKpsGkSi6 X-Received: by 2002:a05:622a:289:b0:431:36a7:f573 with SMTP id z9-20020a05622a028900b0043136a7f573mr257564qtw.20.1711129819983; Fri, 22 Mar 2024 10:50:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711129819; cv=pass; d=google.com; s=arc-20160816; b=hxRyoa22xcs8a7V4rEQiClm2df11x1anweki1z3VcVvNsXbRmR0YLud5km8qbTd1Hb si0A+LBfzcAMSwas+/btlZg/RuCAHpqUfteTEtzPTIP5FUvWesM6vnUqI/EvWwDjsEHM ZoFeT86mAvIXthIbE6CBmWw+8JwG0XZ0qHsP+gd1muBehmOFrk5z4prD998tL+IA00a+ /fUw99wenk0VylOfwQkrqJu2NN3rDwkMa413euaNAK9jHU15xJBy4LZpVimJpVt7NbJm tagjXvrxjbF0fXhRtxq98rbmiTtLh6hDWX0raXLewUeCLNj5lhHEylY3PaXjWfZz3jCz fAnA== 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=afZlcm9O07bvpHWZp13m44cgMjqanzjz1tGTAZQ/1YM=; fh=b+aENsSTaAQk8KcOuyetFSa59SXzy3jJvBBwlFF8Yd4=; b=U08SJ29qnXNemCnj7mKfEe8wn1FkFGviRrZ35yYMLEw2iTqh5Rcl8f0bsxNU9/hZy+ OM1X7cCjtWCGBoPM1LeL5CIiX0CZAuwhBewQcRZHiDOTWXL6QspDMUsOZfbWju+5Hv4l Tc1+KFLHBB8ahldBLC4utE0MAP6Me8NH2z+ZCONz4VjhZrva43ZNOFq3hiNo43l51T83 XkDqAR3G49X9UTNRxCNSfGDxMFRWmHejswSO2p4wxQQdTzcrbw99aam8X9hCouIrnjR1 PcPafdFWrSxAadz/xcu18I10ZGfdiQLr1lVNexW5zKREvu0Aj1I5tKQFHQaCrou3nwzo M3cQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=Qpsv8DC7; 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-111883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bv11-20020a05622a0a0b00b0042f3094e01asi53354qtb.787.2024.03.22.10.50.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 10:50:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=Qpsv8DC7; 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-111883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111883-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B38F71C222D1 for ; Fri, 22 Mar 2024 17:50:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FF66605B2; Fri, 22 Mar 2024 17:50:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="Qpsv8DC7" Received: from 008.lax.mailroute.net (008.lax.mailroute.net [199.89.1.11]) (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 804D5604A6; Fri, 22 Mar 2024 17:50:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711129811; cv=none; b=E36O6beB75Cz2TVsAV/6FjcJUlVgAns/PbxEZYNLLZ2NboFWGmKzNME8GGLWYCQMiOvrs+m9GcS/02xloLSGBNQJxCTJEdcPfQwlUHgZ8+cF3qeXleat3xGXsdvoE4mEqucnLgMQ6hHC0Lq8r8JvpCmuKwX3AMk27xQxq6LNhrI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711129811; c=relaxed/simple; bh=tlaxGcQqSo4rsMaZE0sbNHeXStqfwgVpWciJkli4y+E=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=pUdmeTAQO5IdjmOQ9QU9XcsGdDjoTvA6OADnPdZRhI4Lr4xzq23GpEGoGCR81dpjPu+FHn93Cz7d1ClkNDpWQ43cyvHjLvXo00BnHdy2YHqAJpT+0WTIpPIlDcYwV9Hj4MrPIAsPQP9/pzIvFP7GwZ00tUENYPEfyYFI+MG5cNs= 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=Qpsv8DC7; arc=none smtp.client-ip=199.89.1.11 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 008.lax.mailroute.net (Postfix) with ESMTP id 4V1VGR4j9Yz6Cnk95; Fri, 22 Mar 2024 17:50:07 +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=1711129797; x=1713721798; bh=afZlcm9O07bvpHWZp13m44cg Mjqanzjz1tGTAZQ/1YM=; b=Qpsv8DC7mL/Qcs4xoiwBfXcBY4Y5RAIaatVQz7e0 NmTdbhx1Xsns+fOdYL4hRE0TSmqH/tkSqTJUfxTbNyGRIE37amKlWJ4sOG/4J9Rq E1OlRyafw/bvMN6lPbKPVjJOARn9tI5lwiLNOWFpPp3xY18La+U79Q21j3TRjlFW lTuANy7O79bywNMmr3DDk5u73ZNtChsWQ2S637Yrcdw2tU2esITNy61wtZSVyDwF auUIvSZmBhD9AD/zmrt+L8xNEeGCgA27jur2s4MC/uU795KGEP3p1XkAOuDP9PvO 6b4Q0VUPCVm6smHq/cZwoEBSZdEwWvG4HyveTE0u6aEm8g== X-Virus-Scanned: by MailRoute Received: from 008.lax.mailroute.net ([127.0.0.1]) by localhost (008.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id WDCEdahPUwBV; Fri, 22 Mar 2024 17:49:57 +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 008.lax.mailroute.net (Postfix) with ESMTPSA id 4V1VG64fZqz6Cnk8t; Fri, 22 Mar 2024 17:49:50 +0000 (UTC) Message-ID: <7027ccdc-878a-420e-a7ea-5156e1d67b8a@acm.org> Date: Fri, 22 Mar 2024 10:49:48 -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 3/8] block: add new genhd flag GENHD_FL_NVMEM 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: <89abd9ab93783da0e8934ebc03d66559f78f6060.1711048433.git.daniel@makrotopia.org> From: Bart Van Assche In-Reply-To: <89abd9ab93783da0e8934ebc03d66559f78f6060.1711048433.git.daniel@makrotopia.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/21/24 12:33, Daniel Golle wrote: > Add new flag to destinguish block devices which may act as an NVMEM > provider. > > Signed-off-by: Daniel Golle > --- > include/linux/blkdev.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h > index c3e8f7cf96be9..f2c4f280d7619 100644 > --- a/include/linux/blkdev.h > +++ b/include/linux/blkdev.h > @@ -81,11 +81,13 @@ struct partition_meta_info { > * ``GENHD_FL_NO_PART``: partition support is disabled. The kernel will not > * scan for partitions from add_disk, and users can't add partitions manually. > * > + * ``GENHD_FL_NVMEM``: the block device should be considered as NVMEM provider. > */ > enum { > GENHD_FL_REMOVABLE = 1 << 0, > GENHD_FL_HIDDEN = 1 << 1, > GENHD_FL_NO_PART = 1 << 2, > + GENHD_FL_NVMEM = 1 << 3, > }; What would break if this flag wouldn't exist? Thanks, Bart.