| Message ID | d1dec0e27adf1e4a466336b19b87f153b4613b08.1787272661.git.daniel@makrotopia.org |
|---|---|
| State | Under Review |
| Delegated to: | Daniel Golle |
| Headers | show
Return-Path:
<openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org>
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@legolas.ozlabs.org
Authentication-Results: legolas.ozlabs.org;
dkim=pass (2048-bit key;
unprotected) header.d=lists.openwrt.org header.i=@lists.openwrt.org
header.a=rsa-sha256 header.s=bombadil.20210309 header.b=TibkfuYk;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org
(client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;
envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org;
receiver=patchwork.ozlabs.org)
Received: from bombadil.infradead.org (bombadil.infradead.org
[IPv6:2607:7c80:54:3::133])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)
(No client certificate requested)
by legolas.ozlabs.org (Postfix) with ESMTPS id 4hXLlJ07LBz1y7v
for <incoming@patchwork.ozlabs.org>; Sun, 30 Aug 2026 02:47:23 +1000 (AEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.openwrt.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding:
Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe
:List-Id:In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:
Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;
bh=XtGv+0LrSgB/hwgozHqpUo5g0W87fGJrA6+nllEDjV4=; b=TibkfuYkL/d/2F0wXlc1Ih45bT
z4brlWERSWK4z+MRM41Bd2G+zwBgQWkx+X61FkViFa81gzNFZ9u/KTUGIS4/szdev3s4yP3rCUFLw
fxg51qKUeyjxqzoIGqeIB42PeL3BMJGA97EswCxZuzld8qyfXo3qlZ+UblxIvt8fzpb1oTQcHtF3l
KZwS1zVfWjq/SgSSHVZEYv93YpVXWq24Fzqn8+tCgAHIxlPlOei7YIo2R9i2YeHx0lH8b3ig2y5zn
Lp8ZnnX3dPBm7uM6lL5rNIsc6CgTsDGRxB8I8ruqxEPcq/zkd1t/xuYx9vdUdGVrr3Tz79TlWaoF0
/ebwhLIA==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux))
id 1x0LkT-000000075wc-2QOz;
Sat, 29 Aug 2026 16:17:41 +0000
Received: from pidgin.makrotopia.org ([2a07:2ec0:3002::65])
by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux))
id 1wyDdf-0000000FYPS-3iby
for openwrt-devel@lists.openwrt.org;
Sun, 23 Aug 2026 19:13:53 +0000
Received: from local
by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256)
(Exim 4.99)
(envelope-from <daniel@makrotopia.org>)
id 1wyDdX-000000001lw-0Jko;
Sun, 23 Aug 2026 19:13:43 +0000
Date: Sun, 23 Aug 2026 20:13:39 +0100
From: Daniel Golle <daniel@makrotopia.org>
To: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
Daniel Golle <daniel@makrotopia.org>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Michael Trimarchi <michael@amarulasolutions.com>,
Frieder Schrempf <frieder.schrempf@kontron.de>,
Quentin Schulz <quentin.schulz@cherry.de>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
"Lucien.Jheng" <lucienzx159@gmail.com>,
Casey Connolly <casey.connolly@linaro.org>,
Michal Simek <michal.simek@amd.com>,
Johan Jonker <jbx6244@gmail.com>,
Aristo Chen <aristo.chen@canonical.com>,
Nora Schiffer <nora.schiffer@ew.tq-group.com>,
Rasmus Villemoes <rv@rasmusvillemoes.dk>,
Weijie Gao <weijie.gao@mediatek.com>, Peng Fan <peng.fan@nxp.com>,
Vincent Jardin <vjardin@free.fr>,
Neil Armstrong <neil.armstrong@linaro.org>,
Randolph Sapp <rs@ti.com>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Genoud <richard.genoud@bootlin.com>,
u-boot@lists.u-boot-project.org, openwrt-devel@lists.openwrt.org
Subject: [PATCH 4/9] mtd: nand: spi: drop the eager ubi_blk binding
Message-ID:
<d1dec0e27adf1e4a466336b19b87f153b4613b08.1787272661.git.daniel@makrotopia.org>
References: <cover.1787272661.git.daniel@makrotopia.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <cover.1787272661.git.daniel@makrotopia.org>
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20260823_121351_946767_C6EDAC91
X-CRM114-Status: UNSURE ( 9.39 )
X-CRM114-Notice: Please train this message.
X-Spam-Score: -1.9 (-)
X-Spam-Report: Spam detection software,
running on the system "bombadil.infradead.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: spinand_bind() binds a ubi_blk device at bind time. Now
that
"cmd: ubi: create a ubi_blk device when attaching UBI" binds one
generically
when UBI is attached -- with an identical result, only lazily [...]
Content analysis details: (-1.9 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.0 DMARC_MISSING Missing DMARC policy
X-Mailman-Approved-At: Sat, 29 Aug 2026 09:17:39 -0700
X-BeenThere: openwrt-devel@lists.openwrt.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org>
List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>,
<mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>
List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/>
List-Post: <mailto:openwrt-devel@lists.openwrt.org>
List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help>
List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>,
<mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org>
Errors-To:
openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org
|
| Series |
boot: add imagemap on-demand image loading from storage
|
expand
|
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 14af4264612..fb8ca0a787d 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -1654,9 +1654,6 @@ static int spinand_bind(struct udevice *dev) if (ret) return ret; } - - if (CONFIG_IS_ENABLED(UBI_BLOCK)) - return ubi_bind(dev); } return 0;
spinand_bind() binds a ubi_blk device at bind time. Now that "cmd: ubi: create a ubi_blk device when attaching UBI" binds one generically when UBI is attached -- with an identical result, only lazily and for any flash type -- the SPI-NAND-specific eager call is redundant. Drop it to avoid the duplicate code path (a ubi_blk is unusable before UBI is attached anyway). The mtd_blk binding is kept: bare mtd_blk access to SPI-NAND remains available for users who want it. Signed-off-by: Daniel Golle <daniel@makrotopia.org> --- drivers/mtd/nand/spi/core.c | 3 --- 1 file changed, 3 deletions(-)