Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9125029rwp; Wed, 19 Jul 2023 23:14:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGLIOim03y2Wanuru1z/ETrM26NtzsK6KFpUAjNAHcoiXH3EFefH/Y/JyOMsa/WKBOAt78S X-Received: by 2002:a05:6870:808e:b0:1b5:688b:5c24 with SMTP id q14-20020a056870808e00b001b5688b5c24mr630143oab.32.1689833656472; Wed, 19 Jul 2023 23:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689833656; cv=none; d=google.com; s=arc-20160816; b=EyywffmUOnlxyXCVO8AFrK7LZ9nIc8aEg/qvETSgjdLEXywjsm+Qd45FQVuBisn4nG sAJGlKBsM7qWg9fm5ojM9FKbknCJbCdsgvXTmDrE89UmCmoyuSKVWDs+v4Ef9R9t29XE 61x3WcJPU2drpEC0fFrSyA9+vkKrGJ9zJOIik7mqmPQZE88dOsgjx3VwKerfu0uhyYEc SJxsK0IpQc5ZLwuXmz7sdsZf/wY7z2eZVEgW9bewXH7wqdQq9GhmizNZmTrV2MVCCiGA BvhpLf6MLCMVS39EIFsEgvZyza1WhFg0VPqenKdZK5frcaAFn+5lUUqasqFyN9rF/6iY dI3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=nUFL7/Mm7BPR8kB+przAb0OhEflLuBBseviQ3BJv9XI=; fh=xthF9Qpo4ox5SVD/C0Io88DxWMN9924jw+imNv5spC0=; b=xD0fjhVOF7lH/Z0TyxByTMPK+Jjdpp8DZZwNFIpmP33j6xVdSQbCuSLAZOlLTuhKmY DTsDl1jdmyay53CZzkDnyBMYo7jj4ewwCa3HRK5AMmmZSVjtaGBtroZm/dfSI7+FwdoX hUoX+3BY2RV/+j6eKoPNKfmD0z/OTJ1bHtFjEfr+rgthnKKATsimoRBdhDhDNh6Kd3IA jHqp2ACXWzaCJJgFtL1xzy27EaEziwcybw9dM+mhpzZ6THFpvd3gu+z/7ITALFsUB101 LrSA/+ubnPQ/1GDEywSk5JyemA9lWRb5npeo4LQR75Zhsn+G74GjrUZslBXjsFO43FqC 1yLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="KLwUNU/H"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a63de0a000000b0055bce775e67si175025pgg.159.2023.07.19.23.14.03; Wed, 19 Jul 2023 23:14:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="KLwUNU/H"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbjGTGEY (ORCPT + 99 others); Thu, 20 Jul 2023 02:04:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbjGTGEW (ORCPT ); Thu, 20 Jul 2023 02:04:22 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72E081724; Wed, 19 Jul 2023 23:04:19 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id D74F2C0004; Thu, 20 Jul 2023 06:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1689833057; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nUFL7/Mm7BPR8kB+przAb0OhEflLuBBseviQ3BJv9XI=; b=KLwUNU/HXgYZnteyxoUn5AmohuBdHXzopujfXCbx8cF44Qz8QJTIJGrYik1WRX3aR27zOb JtlcjxSq75x4l/MjKwgsYNdnr4bEnhFGgj3l3Hiy3/r+1jNkURLVTCRjjpQkBwjFWUlnt1 MBy3ltHjeUuOL1+oLq5NnJai9KKIYdArGGrJXMzWHePNpa03aFKj86L+Sw6I5fHi69NWBh NKa0Pn4Pasn1VUKcUZ7n29qCtN6jQ2lVhnD/JWLE0prgAvJWG1bTer0gkUa16TcrbQRHJ8 TGB2/o8DFmVblY79u7kO1qX7XwCIzeJls0LFCpaxm4cca19aXESw87rZwzit4Q== Date: Thu, 20 Jul 2023 08:04:09 +0200 From: Miquel Raynal To: Daniel Golle Cc: Jens Axboe , Ulf Hansson , Richard Weinberger , Vignesh Raghavendra , Dave Chinner , Matthew Wilcox , Thomas =?UTF-8?B?V2Vpw59zY2h1aA==?= , Jan Kara , Damien Le Moal , Ming Lei , Min Li , Christian Loehle , Adrian Hunter , Hannes Reinecke , Jack Wang , Florian Fainelli , Yeqi Fu , Avri Altman , Hans de Goede , Ye Bin , Greg Kroah-Hartman , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [RFC PATCH 4/6] mtd: blkdevs: set GENHD_FL_NO_NVMEM Message-ID: <20230720080409.734a312f@xps-13> In-Reply-To: <65171d5da3daba24315ecdfef6727442baae5bbf.1689802933.git.daniel@makrotopia.org> References: <65171d5da3daba24315ecdfef6727442baae5bbf.1689802933.git.daniel@makrotopia.org> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, daniel@makrotopia.org wrote on Wed, 19 Jul 2023 23:03:24 +0100: > As the MTD subsystem already acts as an NVMEM provider, emulated mtdblock > devices should not be considered NVMEM providers. >=20 > Signed-off-by: Daniel Golle > --- > drivers/mtd/mtd_blkdevs.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c > index ff18636e08897..82d5afba6a25a 100644 > --- a/drivers/mtd/mtd_blkdevs.c > +++ b/drivers/mtd/mtd_blkdevs.c > @@ -362,6 +362,7 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) > gd->flags |=3D GENHD_FL_NO_PART; > } > =20 > + gd->flags |=3D GENHD_FL_NO_NVMEM; > set_capacity(gd, ((u64)new->size * tr->blksize) >> 9); > =20 > /* Create the request queue */ Acked-by: Miquel Raynal Thanks, Miqu=C3=A8l