Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp659799lqs; Tue, 5 Mar 2024 12:24:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWUYGfV0ncmMKv3JQoWApvMlaioPCBz5gq4V+ythTd1R78btHx6eiCK8tNOwjuPBxTb6338KFQcMwvNZ6CO1Mk4YdQcfVgxmbRM+ooHCw== X-Google-Smtp-Source: AGHT+IEdO837aZgKDnpSxEBnxQAAqs3V2k6GzkujaK1llZIKtOnbG3qOhIoqywSutjzuCZ4BKGME X-Received: by 2002:a17:906:1693:b0:a45:a6e1:30d3 with SMTP id s19-20020a170906169300b00a45a6e130d3mr2122473ejd.60.1709670284682; Tue, 05 Mar 2024 12:24:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709670284; cv=pass; d=google.com; s=arc-20160816; b=DXdYpCwsX2cWxvkD7lZvysxxr5/lJkTABe+p4nVQCM5+AzQFbqJAfFq+0k8nJRRqnl MhwmIRBBVjzBu29WCHgcv/6etP4nAXVeZo6B4MZLx0WVgqrc1yk4GbAopoU+aGqS5+bi gJV1m6E6UVaHgxFgvbaGuW3u2KadAH9VaW/69giqY1qnzDjF1qot0irC9sFK+YoWbQzo W27M+/ODU0tNd8Mswrg8hdBqN6kDBr8IBOrPyBwV95JxoprPe+LN5vy05v00RpGfijrS pOTp6vU1AipgRNODCyhZ73BFl8AXXi/t1okXRZM3pW7euzcmev4GtdZnrqHjD3brMdby w4JQ== 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:cc :to:from:date; bh=JARry9Z7jnpZZg0cy3HV2X+pcQa78I9ub9WRbRrPM+E=; fh=j7lw218M085b9rPtj+QACqlnmqhhsdWy5wQ1oNVKNQg=; b=gqz5E7iwrhK4xGkqbYld1gs6LG8WLgckiC82O4w5/ghoR+fW/EPrrAAbd3S7XKyDw/ XCV6YXT8DyHnz7q5/+NJgn58x/3/1jb44qUxM/I5Etv+CnkaVVR8u2ecjDpjGs3XPh+q MPw3cAKUDgpVpRLbYGrUAGdgU+cZYaBdm2TkbHsdLAB9lvpLx/jtNR1tBM+qzEgmb/Xe c8qpVbgc6mycgVVG1dv/Pr2lXFOI/TV1cursVmOpbMop/ZkdtYFrnZDfBNJUCmZbeqCo nOynrFeZjiAKUQY+JTdxpvv+WoO5v6hkf6BpU4t5KRKAaDe8shWTuefRilqlt69GBMR2 ySUg==; 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-92955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92955-linux.lists.archive=gmail.com@vger.kernel.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 x14-20020a170906710e00b00a442ebff480si5172900ejj.443.2024.03.05.12.24.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 12:24:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92955-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; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-92955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92955-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 68CAE1F2C649 for ; Tue, 5 Mar 2024 20:24:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E1C6128817; Tue, 5 Mar 2024 20:24:09 +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 4665112BE8C; Tue, 5 Mar 2024 20:24:07 +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=1709670248; cv=none; b=LD/qTgf/E8iwv+E+ZLHFRD4ZxL7lQjYL93JkdqcyJ2o31s3yKOEiw044S+QSHNaEhpBHOSnNUGBghCpyeL6qFbTtzahn5KB6NMCNwze4tBNKos21eXnyh6ZURijPKBuv4HD8zySAiz1OF8gDtljX7hxjzZl4I/I6j/X6y4nsXAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709670248; c=relaxed/simple; bh=2Quus8bwOAvZ26pD2KZKwCchqWnTAr6TMdGV+yLI5KI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kz7IKQ1C/5iRjfqkaFF9CZhF1Ha+kvySQ+qha55NDIMVxvMBSwr4/VaEMxchLhX6x+nqgze/kL6fDjqYF/Kkr2nQWZxKM8+y1uSRXK4SH1KSWvv/OgxSxHwYBCV7S82ZD2slVP/qFbXjNVhGrpozMLHrKHD3N+vOrsEf4jM2x5Q= 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 1rhbKG-0001ND-2V; Tue, 05 Mar 2024 20:23:48 +0000 Date: Tue, 5 Mar 2024 20:23:44 +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?= , Christian Brauner , Li Lingfeng , Damien Le Moal , Min Li , Adrian Hunter , Hannes Reinecke , Christian Loehle , Avri Altman , Bean Huo , Yeqi Fu , Victor Shih , Christophe JAILLET , "Ricardo B. Marliere" , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-block@vger.kernel.org Cc: Diping Zhang , Jianhui Zhao , Jieying Zeng , Chad Monroe , Adam Fox , John Crispin Subject: [RFC PATCH v2 3/8] block: add new genhd flag GENHD_FL_NVMEM Message-ID: 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 715c9201008a6..03e4b1fd5060d 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