Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp693611lqp; Thu, 21 Mar 2024 12:34:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBny4xRa/rfEIAWuppSQCJSthYsCjSwPd42dYm5hsL7Wgp5M9JaW3zLNYN6JniNEX4nWrljDvvG9y8IpMgPgMWyyEBOwxwJ52aqt8JMA== X-Google-Smtp-Source: AGHT+IFP2EcMWVg0rjj6S0Drw58QmFbCfBgo5b6aTWcdlLRLBH2OwaWK3e15qR32EDaiz40RaZTg X-Received: by 2002:a05:6a20:7fa5:b0:1a0:a06e:41cf with SMTP id d37-20020a056a207fa500b001a0a06e41cfmr630583pzj.32.1711049668730; Thu, 21 Mar 2024 12:34:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711049668; cv=pass; d=google.com; s=arc-20160816; b=Ek+iBZwhRP6s+xAyePaKNHdJqkoVz8r2ju2zA4CKijzVBJfAkL9wksZRozDrCNidsd 2s3BFsJqO7PjiaEiVnN4mukSFtujNL/9Ep2GlASaWglSuObBQMkFUC/LnLeEZyx/oKAQ 4P6j1nlp4BmvSStGy0iP3a1pLmhM+fqgSl8qDFPLcG5C949mk0xF8EX259QXn1ikfX2D d0WBeAkUieyVvyknwmX7NSJs8l2jFwcOc2BLgKzx3oxZCz0OXYLl7UjsZxbfOfQawRgw lBtoIEVX/l2IhbV8Fyn6OpcASrczYyGl2PnjuOcBbsqAYwh/dVhp/lpjs6MXKX+CDlgf y5Ng== 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:to :from:date; bh=gTfXWY2emDizTs6oi4roqsnKokxlKCu2plYO4nS+BPE=; fh=3Ay0fG3swzXuvpLryN6GcJlSn7kOqPZ2vxPz4z4ZjiM=; b=Fs126KcyRR5MbM4tqQ1YYpt1N55QGdUEJOczfEG65J45htB6YoqooWXBevLmOjNHRf DBP55Tz1rRgu2YhI97pqPCeFpsLqVeNoyD6SCaEadxac8B7a2wjkgO0FDf9KHDu1iSC0 xQ4hlTdK5xKIA5TAVVaDQ+le0ZYu4K8IHT65KQVnKJT7MN2fsI0MLpawO38eV0oCx8Si XHEyGa68Ws07QWuv9DCSroSVMZkWy55iXLq+bG5YDkTdg7nz1FgWKBXPdKjRpi0MKEpY JRFRqEByKLNniEnCqTzwUFdnzhCCoAseuwpKhWBFOLJmwdD6S4d0bjKD6bPEcZUZk08/ LTlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-110593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110593-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o13-20020a62f90d000000b006e6ac6f27b3si304116pfh.318.2024.03.21.12.34.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 12:34:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-110593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110593-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4B664284B19 for ; Thu, 21 Mar 2024 19:34:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE0B713443F; Thu, 21 Mar 2024 19:34:19 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 377BC132C37; Thu, 21 Mar 2024 19:34:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711049658; cv=none; b=MTIRbaIyGguKAZ5EZFxDNsHbz1lx3nvwhZYllMR4edrXciTEv0yIwXmmNxqtGU/AKgF7hezkBWXi436Yog91lCGiOx0PpNlCa75MiiHirYJHAXR0vjP7ZSLN8dCPGEmZ6aEwKuar84OVOdvQJzYykxJWrCIW+ENO8wDqf5QMPds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711049658; c=relaxed/simple; bh=riNJOLS1PDkHeYFfgxlyU2hpU4+11KYkJC8sj8wJoVw=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rBnRT1fSOg6UQFuQwR6lXwuJ9EDf6VqJr6afi62135KFoDK7KzdcMkO7W+gnkci/9dneScer+LWGqUmQ5p+vSA+4SOg+J3nKPQKl2zOB8+Ec4Q4sOtN88uZBlubNfRorSpLpa/UwfRaV5epfS0UpQrXyGMHOqdWAMJNCcRNcvRU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1rnOAj-0000Ex-2q; Thu, 21 Mar 2024 19:33:54 +0000 Date: Thu, 21 Mar 2024 19:33:49 +0000 From: Daniel Golle To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Jens Axboe , Daniel Golle , 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: [PATCH 3/8] block: add new genhd flag GENHD_FL_NVMEM Message-ID: <89abd9ab93783da0e8934ebc03d66559f78f6060.1711048433.git.daniel@makrotopia.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: 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, }; enum { -- 2.44.0