Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1206955pxy; Sun, 1 Aug 2021 16:47:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvJAHXIL+Fpsw8YfjlrNmEBdbh1+dWAhKRg1HDHAhMwWs92u5NX+gHCbBykezQZBZ6W8eZ X-Received: by 2002:aa7:cd96:: with SMTP id x22mr16468428edv.102.1627861660220; Sun, 01 Aug 2021 16:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627861660; cv=none; d=google.com; s=arc-20160816; b=rhNg4tearkb1F1V2GJhTYCavf3hcz2tMcp/cdSdrA2bG/vDf16JlYCuaqo03VeRNVt 37Xgx8c4MAns9klBuyzzOIUKBKfxq2V5uzxYU++Tbg9UlntOHJmGZWtmfaWFfChD34/x eloSdDvRYlJWaNTUwGNGbDNN+VwD3afxmkGjkQ0SiAAWAfuQuMkKt62wsgratqhPquS+ oP2yJu3aJoXWx0IB8jgdsMRtkqIFxtZMvb+Tg6lPgsrTSWAijadLUj+I7L+fOpu98Krd ezOKj0/9+y9RxL1gK98kav1MBtkS4KFfC2b89OkUgWIwXaT2DuyzqQqdcBAG/GB86d61 xkLA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=F3sPOIJtFKjRc+yF8hc0H1IWqOScIco7TGN5raISFfA=; b=LlIO8AvBE3pq5R38mK289TJoxYCb3OV4T7rrYDrWBQIzVuurNdymFlSXBXQG/SXmQq oltQ6KpumjhRm4SqP+XUR2ajzJVubR1ZupBWdZBN9sMSph+nXiNi8f8PWDQ/2IZywm6e PrvP1oiPI86ZhV3u7H6MIdoRTDkXe2FXK8UsXyBv/vGIKqsBM54SA3t/w3SRhxvMh4Ad 6cZa6ZqmofM1I+uKZutcev/3xRX6WhtSa3tsNosiksK/oC2rV2yyUS+nAU+FvDuDbx5g VtqbZO40h+axD8oV1tuSqXSCYaLWFvGDMS2T+cUgGXGs+lrMsvBFbp/Wb7wo+GQJ70WJ MdNw== 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 hr13si1533862ejc.116.2021.08.01.16.47.17; Sun, 01 Aug 2021 16:47:40 -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 S231877AbhHAXpn (ORCPT + 99 others); Sun, 1 Aug 2021 19:45:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231931AbhHAXpm (ORCPT ); Sun, 1 Aug 2021 19:45:42 -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 1C5B5C06175F for ; Sun, 1 Aug 2021 16:45:34 -0700 (PDT) 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 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