From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05862C4338F for ; Sun, 1 Aug 2021 23:46:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C321060F90 for ; Sun, 1 Aug 2021 23:46:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C321060F90 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tGFX1YNRuRymgWepWLGq26Z9NRwRSdCumMclHR8lXxU=; b=Pbr6D3wHa3GQ4h jc+lwAO+b9qNWaLnhC8llrI9GooaHpjUEZ+fgTkzguhcITFdKzgoT0kOieOI+3VW5Q6+igm1+MTHv I3AlYvT0Xs7DVkjRj0ugk87rQZrYo1mM1jWvqHoNAcsc9N1c4oBqgu6Sa3uB6nCIgEc9GqkGQ3shV O3dWRhmJlZLqbAYgcz+TNTZIzCSxs4iK2NQu945WOh0MT85tQSKEwrjXtx9+lI+AbZEIIG1rnS6Lz gp1mzErbxnMRzJiiSvZaLiZUWyo5P3I17Gv+QtlZ4M3S8hv8uJm/3xMsaeKSdcyJTBYymfruG+g0n EOr4tYi9Cta/eahYBSKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mALA0-00EOsB-9H; Sun, 01 Aug 2021 23:46:24 +0000 Received: from bhuna.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e3e3]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAL9C-00EOg9-33 for linux-mtd@lists.infradead.org; Sun, 01 Aug 2021 23:45:35 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 869671F41069 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:06 -0300 Message-Id: <20210801234509.18774-5-ezequiel@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210801234509.18774-1-ezequiel@collabora.com> References: <20210801234509.18774-1-ezequiel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210801_164534_289333_5E786B23 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.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 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/