| Message ID | 20261120-submit-sunxi-nand-vendor-oob-layout-v1-v11-18-9721b1905ef4@gmail.com (mailing list archive) |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-sunxi+bounces-27962-sunxi=pue.re@lists.linux.dev>
X-Original-To: noreply@patchwork.local
Delivered-To: noreply@patchwork.local
Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mxe881.netcup.net (Postfix) with ESMTPS id 8DB901C50E2
for <noreply@patchwork.local>; Sat, 21 Nov 2026 02:12:50 +0100 (CET)
Authentication-Results: mxe881;
dkim=pass header.d=gmail.com;
spf=pass (sender IP is 172.105.105.114)
smtp.mailfrom=linux-sunxi+bounces-27962-noreply=patchwork.local@lists.linux.dev
smtp.helo=tor.lore.kernel.org
Received-SPF: pass (mxe881: domain of lists.linux.dev designates
172.105.105.114 as permitted sender) client-ip=172.105.105.114;
envelope-from=linux-sunxi+bounces-27962-noreply=patchwork.local@lists.linux.dev;
helo=tor.lore.kernel.org;
Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org
[100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id A29096781C
for <noreply@patchwork.local>; Sat, 21 Nov 2026 01:12:43 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795223493;
b=Y/q5Ji7hVKg0v3ln8Ced1qsdHOkUyanydxT42zDzsJFa/6hApWK1cwWcsdwkroB2+DPK
cAaXr3iQ003Vf6oUwM2M9C2G5+F7lTZ+BryspjA/80eHVbBOvskai8d5f7hn9Sd+8pNrz
Kmqa3Eukafbsla6MHXKeXH1HwV8E4ZdytX1vIECLPLxSH5XweBCrJSZXFpxbj4UbLKfus
ftmsTDrhG9euaTTIJ7lzeN/YQ6r2F6hbXLUFhJOg2I0hKWT33UGsXkTzhO4ksAwQVDFCu
8brWlu39+6TQybWIrjk0pgcdXweLi52sVDGLuI442OzLticvEKHcCjeM30wDwCYFfJQ==
ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795223493;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:From:Date:Subject:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding:
Message-Id:References:In-Reply-To:To:Cc:X-Mailer;
bh=KCmwAi76omzV3Ocey3RKQm8GgxKEzZYW/hAI8TU8mC4=;
b=kWJQ1zqd/wJo3HGMFKV7QBmWn/JHZ/o7PKpXwuc+teqz3eD2PR1v7bCF+mUWeNS8JQ1y
qEOd5JDzw2fxe/jjcoN7TsRoXqx8tI9nuQPi4V40yUGz8lS66ShzrcfAcCJj0KHTGM3h8
3DOAr5e3ZaEPQoRichmyzEXGgsQnmmm20sih66d0QaC+UJ3TQUuYOtGy269OwPC1zgMa9
qX6PgA3iAV08DTDhSxPqM3gEc+uY0Bhb/pv1fIGCmam7WE7TywYI1/R057CIGd9eTQiph
JDqwKqAuGDtMgY9mRLQ+bLjcRn/i3akQtOBPkqjhO8wWNc3GXh4jWV4amhGqW8uzR0g==
ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20260707 header.b=dUfJKR5C;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id E4865606AA2E;
Sat, 21 Nov 2026 01:11:32 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
header.a=rsa-sha256 header.s=20260707 header.b=dUfJKR5C
X-Original-To: linux-sunxi@lists.linux.dev
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.remote-ip=209.85.167.178
ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795223492;
b=0B6t83QVGyj2HYtSC4A7gKoEssJsf5Qhwd6XrQriJ2xXkD2EjtfqIb3SG/wVkLQJ+rfC
Y3S6Hyd5rlTd2jVKmOdGclVffedWagSK+balY049vccaVpVzR8d43fPgT2spLn7YtF3Cy
B9GN6MIqeV3OqwaqifUHHwzfcvuu+e78Pv0VDL6I34X0fPyHBNM+EKMXmMYC99MoWXzX8
6+AvuR4a5GjDFu1R0agO1/ORcL0uL6jGaa/FHF5nDCQtTJNzZQTWGi9koXAX4n2WuheTz
l0GILVRy4zQtuoH9DH6hDUZeIIQpt/JlOHImof0Uw+eZ7r4dpapnzS1WfNvQ/TBKGiA==
ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795223492;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
From:Date:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:
Message-Id:References:In-Reply-To:To:Cc:X-Mailer;
bh=KCmwAi76omzV3Ocey3RKQm8GgxKEzZYW/hAI8TU8mC4=;
b=4S/98532+COD9JNwMmQ+oaPr2DtXHedpHmTsruHcBsMkiPGbh8jmtX0+Tubub9hlWsE7
yjdvMLTz286egTWHtGDTwdyxTDwV8Lj1e9+bAQwfp0kf7mk6iTXOFYBqcj/TEJ59ZKkgF
8ahW9fU0kiTWeqCiqBGcRtS8KluRVOqll9y0rFj1f54P5q0MKTMDklYnk8E+bttzci1pb
7010DlNlDLuqixFajz8x1fdQvu5B9U3Sg3LFrb2VqGzVIhIDPth8NUzl50IhoyGIIMlHu
m9lXr1BzMdyjA0jpZXc48kKG5nj/t0WC38qzVzkdESUv1eiU3ZOEHNIXj0mVtIrFXMg==
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20260707 header.b=dUfJKR5C;
arc=none smtp.remote-ip=209.85.167.178
Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com
[209.85.167.178])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest
SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E3B7606A332
for <linux-sunxi@lists.linux.dev>; Sat, 21 Nov 2026 01:11:22 +0000 (UTC)
DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4E3B7606A332
Authentication-Results: smtp.subspace.kernel.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
spf=pass smtp.mailfrom=gmail.com
Received: by mail-oi1-f178.google.com with SMTP id
5614622812f47-4a451915d8aso1058877b6e.2
for <linux-sunxi@lists.linux.dev>;
Fri, 20 Nov 2026 17:11:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795223481; x=1795828281;
darn=lists.linux.dev;
h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
:content-type:mime-version:subject:date:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=KCmwAi76omzV3Ocey3RKQm8GgxKEzZYW/hAI8TU8mC4=;
b=dUfJKR5Co0HiNlns/knQqGqHSozCwHpvG5LIOoYKAgJKRpenRopNjyZmK7xCG8ERwI
PAq8bVsgzkkPG5MVyhXwwDoN7ZQbWdpVXDJ7cma16N9BXU3PrItES3SfQxltxJP+/Jst
VPVVOGNyn65VuPFRqCxZFpZD5WgkQq9fYBl4u62jzRDBwepvZnZhblOMUvtvHb6HWerz
PlkBNvrwYx/g4+RTAP1dZJJBKa6iuV1y2ZTkLbZXhDnQMZSejcX7QlT7ZFq1gTIOJ1jz
uVCUn9NwDEeca3HSQSQtc5I7WgJTnNJExQ12q3cmFRd9jAmo+MMv84Q0BpezbzLN6Vjs
jVzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795223481; x=1795828281;
h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
:content-type:mime-version:subject:date:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=KCmwAi76omzV3Ocey3RKQm8GgxKEzZYW/hAI8TU8mC4=;
b=w4f8PoW0b57SIPWdqyLbT5224hdpWejZLiM9TH5dwFYDuOqekC7Pj/wUZSdGHsI27t
0LAAmMakiQOvNYkK34XACbcsHeyfZL8WRNuCjB+3iJF/Tjnl8nG5uVz2y2a0UryKYax+
JNL25xGoKlL1jDaPy5hJ7zMJ0OvMeBTzvV+DM4TNxcaes2x9wj5gvkv9G7bqqa/VV5h4
76d9CQB/ZIsN7kCnwZLqBeNp3P2nmGqFtKkFOqM9Y+CJTjs27Z5E/Mam4VgYiPiXSLjU
wnl9mLunqZN8qQK157GotYYwj243vOILC1AcXT8j1t6+WuGOSBtcMBmS7iC5RCRNDBDF
OVHg==
X-Forwarded-Encrypted: i=1;
AL+hErEYnxODdUpPdv8s94wAfNAR5JQRSyLaX1ukgfyyHpdoErLua3DxA+JxD62GlL6mKRzaO/rmrXBBVVJUBA==@lists.linux.dev
X-Gm-Message-State: APuU4Z/0XZs5wCNMmHqxSq4SemDEy6H9192LmbNetaXJ6Vxc8S8Z3w+G
o9U1SBHtY8ySM2QblYUOZxg71huB1Jtz3x+GE6SGwg4CdbU4fwt3wLBE
X-Gm-Gg: AYBFou0egTJcIVtB73uqbti+p/0pxPzCo/HIFRHm3NJFKqV6FOPhkFyG3hC7pqGzt8f
wDrYv71q1s1ZTl219S5Ie3XhIIKp1wcC/JyNAINVoYH/UDxa+gwSztJM4T/wmXcDJdvYxHv8vff
VnTMvV660UhyxjK/MwIlqJce3DE0i7Khl2QD0R82/DaWk8/kjBqewP7W+3I1oCxBr4b/Gyj5opV
SnCQm3ofZil9LskCMMUmfAB/MmHVPP74AL0ZG/Q0eL9v+j1cUxg7y9rUazmHxJHCamUXq66vNBp
VmT0JJ//7pD8lx9u1YDITN3rwZfjIU8dlFQDM4ZjMXSf9+2rBbXRU2CNivwFwTbzlio+4qAGwl/
zfs3nPKyU8MlmDg3RtkeuhyaeTJoqU41N12tZCutXBENe0GPe6PmSLcAQ271roSqQu8vFg27kPa
i6ONzBnZCBDpINti1mtJQcQGyFvt2+kDBnAJ4sojToQK3CIPrh7eJ7MwgzIeN1W9gLT6Oe/QPWV
dNlL1zM5C+uv2XkyaXx5Ekq42BKgNIYPMtPeNNKmC0ks5XCctcaY84dPPCL9qvnPBDoXLR+dv5A
/UkoRIq5FffJauUzdE5l9TwOI6IAk6+WwhS8l0FDrD5kdnjpadGY8yrWkKNEhPxCB0Uyu7Wy6Ml
6mx4gJtGGVRlyY/lewTPxIux9qAB83rAp4kyMO4z9mf5fvtJgK/ve/ZIsrZmIeoqVxhAE/OWqVD
V+oCOQtK4p7JIu1sA+K+i732YPXWipkg4X6nWIP6byGkOh/oS8leZHtYTX7sxscyNNH5gNiV5b/
A==
X-Received: by 2002:a05:6808:152b:b0:53c:156b:a16d with SMTP id
5614622812f47-57a0a70b0d0mr5784172b6e.56.1795223481233;
Fri, 20 Nov 2026 17:11:21 -0800 (PST)
Received: from [127.0.1.1] (174-29-1-49.hlrn.qwest.net. [174.29.1.49])
by smtp.gmail.com with ESMTPSA id
5614622812f47-57a3485e3ecsm3291532b6e.9.2026.11.20.17.11.19
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 20 Nov 2026 17:11:20 -0800 (PST)
From: James Hilliard <james.hilliard1@gmail.com>
Date: Fri, 20 Nov 2026 18:10:41 -0700
Subject: [PATCH v11 18/26] mtd: rawnand: sunxi: send all address cycles in
split operations
X-Mailing-List: linux-sunxi@lists.linux.dev
List-Id: <linux-sunxi.lists.linux.dev>
List-Post: <mailto:linux-sunxi@lists.linux.dev>
List-Help: <mailto:linux-sunxi+help@lists.linux.dev>
List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev>
List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev>
List-Owner: <mailto:linux-sunxi+owner@lists.linux.dev>
Precedence: list
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id:
<20261120-submit-sunxi-nand-vendor-oob-layout-v1-v11-18-9721b1905ef4@gmail.com>
References:
<20261120-submit-sunxi-nand-vendor-oob-layout-v1-v11-0-9721b1905ef4@gmail.com>
In-Reply-To:
<20261120-submit-sunxi-nand-vendor-oob-layout-v1-v11-0-9721b1905ef4@gmail.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Clark Williams <clrkwllms@kernel.org>, Steven Rostedt <rostedt@goodmis.org>,
Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Philipp Zabel <p.zabel@pengutronix.de>,
James Hilliard <james.hilliard1@gmail.com>
Cc: Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>, Maxime Ripard <mripard@kernel.org>,
Richard Genoud <richard.genoud@bootlin.com>,
Boris Brezillon <bbrezillon@kernel.org>,
Masahiro Yamada <yamada.masahiro@socionext.com>,
Brian Norris <computersforpeace@gmail.com>, linux-mtd@lists.infradead.org,
linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev,
devicetree@vger.kernel.org
X-Mailer: b4 0.17-dev
X-Rspamd-Server: rspamd-worker-8404
X-Spamd-Result: default: False [-1.19 / 15.00];
BAYES_HAM(-5.50)[100.00%];
RBL_SENDERSCORE(2.00)[172.105.105.114:from];
SUSPICIOUS_RECIPS(1.50)[];
DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed),
No valid DKIM,none];
MAILLIST(-0.18)[generic];
MIME_GOOD(-0.10)[text/plain];
BAD_REP_POLICIES(0.10)[];
HAS_LIST_UNSUB(-0.01)[];
DBL_BLOCKED_OPENRESOLVER(0.00)[tor.lore.kernel.org:helo,tor.lore.kernel.org:rdns];
FROM_HAS_DN(0.00)[];
FORGED_SENDER_MAILLIST(0.00)[];
RCPT_COUNT_TWELVE(0.00)[25];
ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2];
FREEMAIL_CC(0.00)[kernel.org,gmail.com,sholland.org,bootlin.com,socionext.com,lists.infradead.org,lists.linux.dev,vger.kernel.org];
TAGGED_RCPT(0.00)[dt];
RCVD_COUNT_FIVE(0.00)[6];
FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev];
TAGGED_FROM(0.00)[bounces-27962-noreply=patchwork.local];
TO_DN_SOME(0.00)[];
R_SPF_ALLOW(0.00)[+ip4:172.105.105.114:c];
RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,209.85.167.178:received,174.29.1.49:received];
RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.105.105.114:from];
ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG];
FREEMAIL_FROM(0.00)[gmail.com];
FORGED_RECIPIENTS_MAILLIST(0.00)[];
MID_RHS_MATCH_FROM(0.00)[];
FREEMAIL_TO(0.00)[bootlin.com,nod.at,ti.com,linutronix.de,kernel.org,goodmis.org,pengutronix.de,gmail.com];
RCVD_TLS_LAST(0.00)[];
MIME_TRACE(0.00)[0:+];
RCVD_VIA_SMTP_AUTH(0.00)[]
X-Rspamd-Queue-Id: 8DB901C50E2
X-MORS-Enabled: yes
X-MORS-DOMAIN: patchwork.local
X-MORS-HOSTING: hosting172546
X-MORS-USER: hosting172546
X-getmail-retrieved-from-mailbox: INBOX
|
| Series |
mtd: rawnand: sunxi: fix page transfers and controller error recovery
|
|
Commit Message
James Hilliard
Nov. 21, 2026, 1:10 a.m. UTC
When an address instruction exceeds the controller's eight-cycle limit,
the driver can report success without sending all of the requested
address. The parser splits the instruction; nand_subop_get_num_addr_cyc()
returns a count for the current part, but the driver treats it as an end
offset in the original instruction.
For example, an instruction with ten address cycles is accepted by the
parser and split into eight cycles followed by two. The second
suboperation starts at offset eight, so the old loop sends no address
at all while reporting success.
Use the returned count as the loop bound and retain the start offset only
when indexing the original address buffer. The parser limits each
suboperation to the eight cycles supported by the address registers.
Fixes: df5057999f8c ("mtd: rawnand: sunxi: Migrate to ->exec_op()")
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
drivers/mtd/nand/raw/sunxi_nand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/sunxi_nand.c b/drivers/mtd/nand/raw/sunxi_nand.c index f8bc6e3c3ac9..ee68ef9bba33 100644 --- a/drivers/mtd/nand/raw/sunxi_nand.c +++ b/drivers/mtd/nand/raw/sunxi_nand.c @@ -2410,7 +2410,7 @@ static int sunxi_nfc_exec_subop(struct nand_chip *nand, case NAND_OP_ADDR_INSTR: remaining = nand_subop_get_num_addr_cyc(subop, i); start = nand_subop_get_addr_start_off(subop, i); - for (j = 0; j < 8 && j + start < remaining; j++) { + for (j = 0; j < remaining; j++) { u32 addr = instr->ctx.addr.addrs[j + start]; addrs[j / 4] |= addr << (j % 4) * 8;