Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1019528lqb; Wed, 29 May 2024 19:16:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYFUDBZcy/GfCcTLywiTEQICFpuVuhsSdRV+XCSB5ohaMvO2JZyQ2FKrUKeVoFxKHe01peF/1rA2bHBhxaYfuXanD8VFHkDbjjo5yoYQ== X-Google-Smtp-Source: AGHT+IHxEUGrS2J8X/37RXt8VU6AtfTjxwg0sZLP4Xx4ynBzS/BMu7sVmrAz909Os3w2SvHC9jCh X-Received: by 2002:a05:6808:1993:b0:3c9:717b:2fff with SMTP id 5614622812f47-3d1dcca7658mr848116b6e.22.1717035416397; Wed, 29 May 2024 19:16:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717035416; cv=pass; d=google.com; s=arc-20160816; b=PojuXvc0swmECFJMt4ibl6TNR0IJWHao2J2wi3nzDhKMePrL3Y/aSoqM09XFoZC5wa AKJ+bWAaHS3Tjg2Wu/ijtRd8ZJN8TQ+1umTt5P/2POiI+YIapVSnxCYWFfWq4XMdVG1x mWcfeZoCm2rWW0CrWGpGdeRc9klfEzs4CV5X/jljcFb3m9YUJ8hzG3qnq+rw7zGE9sbE GKevYY6PIXSN2He4jz/svAlf4iYfb7YYRJ9Mv81EnSifZOwI1cCTYOXLyOVH/WXNCIGg mfoAYluFzm7nCTj8KGsfevarty6QMTM8vdqfWx9i8Nxlg4mm16gtrsQ7lHIi2JhIV13N m+BA== 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=6GA+cw4EVgSwVtdMkHvpgYcCiDam5G8/PhdQp1BfjJ8=; fh=PTscWTIHcoR2vyQtw5VESTy9e97dUqI8eGwoqj4vbiM=; b=x8tStxtdJYWA0ILXpZT5/WlIg2UcBzGlbZJdlGqTmzxo0TFqpH8U8g5UgI/EF2EeXG JhjASqA24UputtVzAYumu2szFqrLS2s2ZqPvET4EFr7/5YYuOKriBB0qKBhsEUue5s/i CpPPvdi7AIUIY/lxcqDL7LpCpmf2T+OguAecH0Z6dIEQjfqA3YCtPeQM+zPv3lAne4dz EOIEzsnA+dXekqE1II9L3kf4D2h3w92UTxmNXIAAhbFXio1ypYJzY5OjEqMdfPXKPlMk YMwD9It9nkJRxuXxDydBbZ5/Rs/1oD+YNv7drPXEqor+/aTuQD+J0bfATWg96xcwW7EX qgOg==; 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-194885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194885-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ad7375bd42si113474236d6.194.2024.05.29.19.16.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 19:16:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-194885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194885-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D7D501C23701 for ; Thu, 30 May 2024 02:16:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 246A01C6BE; Thu, 30 May 2024 02:16:02 +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 33A441C2AD; Thu, 30 May 2024 02:16:00 +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=1717035361; cv=none; b=Yf7mfOeNOoXzN273K73Zp25laV3vLdfph1pRuA64yfC4gtszapAjMd6aEtM1CXMQ1oMvc+2wtI2gwt+GcmDKmOeO2HmbUlHo1+kgjHi434tdfUN+435gIVSiZG/OaeTjlooDe9H+PNy9VVMRgjgvUdr8Zbp4HgMireydlMDG7EQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717035361; c=relaxed/simple; bh=m34IzQbYV7M9yK88DF0P7kP3OWiFqCk8AKxKQuzB5bs=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Rl2Nh51vy1R15rqwTStqZzWacxmPYkn+wEBaOzQtIDj6Z1zKCmx1Xjg3NBpiworcWcDbyykcCJl4Se2jm0G5IDcHuLzLQSnIfzh4feSQHRI/JzrGNNkcfjYqQHwW/4/nxtJDCE2/S+0TS9OvSyCOYWNHE8HDA0LGa624kboXGp0= 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.97.1) (envelope-from ) id 1sCVKY-000000004jd-18lv; Thu, 30 May 2024 02:15:50 +0000 Date: Thu, 30 May 2024 03:15:46 +0100 From: Daniel Golle To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Jens Axboe , Srinivas Kandagatla , Daniel Golle , Dave Chinner , Jan Kara , Christian Brauner , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Al Viro , Li Lingfeng , Christian Heusel , Min Li , Avri Altman , Adrian Hunter , Hannes Reinecke , Mikko Rapeli , Yeqi Fu , Victor Shih , Christophe JAILLET , Li Zhijian , "Ricardo B. Marliere" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-block@vger.kernel.org Subject: [PATCH v2 9/9] mmc: block: set GENHD_FL_NVMEM Message-ID: <927d02524c467351c546c4245a2eaf19030e8316.1717031992.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: Set flag to consider MMC block devices as NVMEM providers. Signed-off-by: Daniel Golle --- drivers/mmc/core/block.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index cd3ee6d69aaa..577e7ae5df14 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -2516,6 +2516,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, md->disk->major = MMC_BLOCK_MAJOR; md->disk->minors = perdev_minors; md->disk->first_minor = devidx * perdev_minors; + md->disk->flags = GENHD_FL_NVMEM; md->disk->fops = &mmc_bdops; md->disk->private_data = md; md->parent = parent; -- 2.45.1