Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1206724pxy; Sun, 1 Aug 2021 16:47:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsGeehSowUY0Rji4H80hcIUUjOYohKM5pnknxEzvUry3c0rl5pygiSwmld2dqzMzZCdE1X X-Received: by 2002:a17:906:b094:: with SMTP id x20mr12745034ejy.257.1627861626656; Sun, 01 Aug 2021 16:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627861626; cv=none; d=google.com; s=arc-20160816; b=dFdESVB4XYRqfqx5Dpq5jxDgI2J9Finn6c9R4Al2/ohTAVU8J6CiNh3nKn0OIaLTOd AZ2pF8GHgMWezdxrHeU74/+diyy02QftGWWJr3cC3rmPx92n5GbDa7uLjk9LVlg9q1/K hxVZq695CPibkf2/EZUi7V/3lDyDWNx/ffRhFXqw5dSzINyTxL2mP6a0A2MwS/lVn1tK aa2YRhP9VP32ZIFRcOsTMFdRYhuzGr2wDBpmBDd38hQlXxxOi9qB342FlCjwcc9B3gxD QInOWypXVGOmdpmG8TtyMwIkREHGwt4iXDMkEO/AQxdXf2TgCiKeNeKtCKONCYx7q9dp ilew== 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 :message-id:date:subject:cc:to:from; bh=F3sPOIJtFKjRc+yF8hc0H1IWqOScIco7TGN5raISFfA=; b=FXEn1407rrdiOr/WUQ3Me+fO+raCSaGvhQMuGFeRGAeqCcW84tYJerL7KkwOBa1m0n IPoxqvXF0AHra1MR0ZszEw5ERukjq0akOUiKylHFLEK5gYkKvqk0qg7F8yw9FdzsdLQ7 n6cgGyKfD27x0kTUjrZBH5A3siuYjo6wLTTMIUVqg/VjaGJ/jwItV0z2u77MYzL2OHFU hV1v0k9kp6gfmSUQ0EfDBErZKS/g7qnRPsgnBamQN0uQAemywW7f5FgGctD+hraIsz1f qShR70Z7wICdb+Vp7d/rCKPOrWboxBLf7gtYYpL7UW8VVrB4MMFoan7UoNgc/SvT8O0N Og0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si9130616ejs.201.2021.08.01.16.46.43; Sun, 01 Aug 2021 16:47:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231361AbhHAXpb (ORCPT + 99 others); Sun, 1 Aug 2021 19:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230255AbhHAXpa (ORCPT ); Sun, 1 Aug 2021 19:45:30 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7449AC06175F for ; Sun, 1 Aug 2021 16:45:22 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 917BD1F41069 From: Ezequiel Garcia To: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Richard Weinberger Cc: Miquel Raynal , Vignesh Raghavendra , Ezequiel Garcia Subject: [PATCH 0/3] mtdblock: Advertise about UBI and UBI block Date: Sun, 1 Aug 2021 20:45:02 -0300 Message-Id: <20210801234509.18774-1-ezequiel@collabora.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard, and everyone else: Browsing the internet for "JFFS2 mtd" results in tutorials, articles and github.gists0 that point to mtdblock. In fact, even the MTD wiki mentions that JFFS2 needs mtdblock to mount a rootfs: http://www.linux-mtd.infradead.org/faq/jffs2.html Moreover, I suspect there may be lots of users that still believe mtdblock is somehow needed to mount SquashFS. I've taken a verbose route and added a pr_warn warning if the devices are NAND. I don't think using NAND without UBI is too wise, and given the amount of outdated tutorials I believe some advertising will help. These patches are compile-tested only, as I don't have devices ready to test, but I can undust some boards and do some experiments if you think it's needed. Oh, and PS: We also need to update the wiki. Ezequiel Garcia (3): mtdblock: Update old JFFS2 mention in Kconfig mtdblock: Add comment about UBI block devices mtdblock: Warn if the added for a NAND device drivers/mtd/Kconfig | 10 ++++++---- drivers/mtd/mtdblock.c | 4 ++++ drivers/mtd/mtdblock_ro.c | 4 ++++ 3 files changed, 14 insertions(+), 4 deletions(-) -- 2.32.0