Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8776739rwp; Wed, 19 Jul 2023 15:26:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGEZaLVcIt1qd8PNUwf96GGPM5RTQZ2gXpEfGTdbkzAfjFjtutbKQZWE4w4NUDWUAbTFzfL X-Received: by 2002:a05:6a20:1385:b0:137:34ac:45ab with SMTP id hn5-20020a056a20138500b0013734ac45abmr2985413pzc.29.1689805574823; Wed, 19 Jul 2023 15:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689805574; cv=none; d=google.com; s=arc-20160816; b=YRcOBmONrG0SrZuQvdRinfsimmOvHgOEWtGGxcCOzwD6+2T7728W53yUqW/9QJTFlK Nc+ZgQx+tyItjp8hU39k6dT/ig9ixG4g4hghDe+oc59C4o+L3X2SYX7KYlKHmfJ7b1e0 bX2hc0OWsIe/Zo26IVxee6dHnVEHHl4O89htM1KV/kIJJ5OsGIlIZNsJDgbcmtrWcqJo W669rhUEGc5H9QSNujPVXRFl5JzLY1gBKC1NLYvYhFCZSZMZ9X15eTf49fHhnvB4rutE tR7kA3RZChSAatstAOY4k5XZTL8J4+CsMBhhW15vMjA/dhhlBnq19Rzw+rWlEtjN29Fj 2SeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date; bh=8T/pGdV18zCBoMdZ9g0wiioI9df4Q4Rox4Haloc5AWk=; fh=O/hjEvlM0nIN8LC6WbIQ4s0L6nmnRMOzajXXMF81As0=; b=beQsAumoFDw1Ai9tc8dt8KNzr1MZnx9+K2afOQBPjmTRl4GHd44KVNgqLrdM0/2xOl TtTa2pY/GdtV5SWPOrWu79nLNCBwvtjbI8b01qQaIDO1gzfC2cAE1v/yGnTIuXhcaoo9 AQNziOQVA1+yXpre4N58Up9+7j4PdA/7wxIirMqE9q/L4xtly9t/nykN17w/039CzNcg AnuCenYEiR6mKWtXVIPSPazG3+KWzFOzEyRl5E3Y/5RLaaeVsXA2jFyz4hQhd6QZX/pr cV1sRpbzvlwQQvCn4mK7cVEWs5r94O1URNEbvgeYwFZVeH9zjhdNKwjzSR0NdnpN9WhA 1XrA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cg15-20020a056a00290f00b0067c12c99c56si4052165pfb.117.2023.07.19.15.26.02; Wed, 19 Jul 2023 15:26:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230245AbjGSWFN (ORCPT + 99 others); Wed, 19 Jul 2023 18:05:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbjGSWFL (ORCPT ); Wed, 19 Jul 2023 18:05:11 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE5C22699; Wed, 19 Jul 2023 15:04:51 -0700 (PDT) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1qMFH4-0008NR-0M; Wed, 19 Jul 2023 22:03:58 +0000 Date: Wed, 19 Jul 2023 23:03:49 +0100 From: Daniel Golle To: Jens Axboe , Ulf Hansson , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Dave Chinner , Matthew Wilcox , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Jan Kara , Daniel Golle , 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: [RFC PATCH 5/6] mtd: ubi: block: set GENHD_FL_NO_NVMEM Message-ID: <077dbe0a6354edc3acded24e2552cfc3f2968903.1689802933.git.daniel@makrotopia.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 As the UBI volumes may already act as a NVMEM providers, emulated ubiblock devices should not be considered NVMEM providers. Signed-off-by: Daniel Golle --- drivers/mtd/ubi/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/ubi/block.c b/drivers/mtd/ubi/block.c index 1d5148371991b..62d9461395b37 100644 --- a/drivers/mtd/ubi/block.c +++ b/drivers/mtd/ubi/block.c @@ -410,7 +410,7 @@ int ubiblock_create(struct ubi_volume_info *vi) ret = -ENODEV; goto out_cleanup_disk; } - gd->flags |= GENHD_FL_NO_PART; + gd->flags |= GENHD_FL_NO_PART | GENHD_FL_NO_NVMEM; gd->private_data = dev; sprintf(gd->disk_name, "ubiblock%d_%d", dev->ubi_num, dev->vol_id); set_capacity(gd, disk_capacity); -- 2.41.0