From nobody Tue Feb 10 10:59:26 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB729366DD3 for ; Fri, 9 Jan 2026 17:18:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767979108; cv=none; b=XT03PwgXAoJV03Vse5u2JKgpeiOlTrolwV7zCg7+VqOVrSqALrIeNKzrsJlVTvWsckItYA+DkCDIAJGbtRxl00MA8prCGfbIngSuSRTytQ+Mk8TV1Tlgu/xX2jWLsWBngH2q6TiOXZ/speCrBCTw2F+jpmskbGv/4g+22/uwIVQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767979108; c=relaxed/simple; bh=IJQIQ1qPwnyGsodqhdDYlPN0s9/YWzU7C+O/2+1S0xM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aY2OyVhDN0ray/HFj6u2owvf24ov1YbAzI+l085umNb/19Lc01dEXe8RAI4gSNev69ceUNWn2fAzdokhjvp+gC6s5y9qHh/WlOhH05hsMfjAyR9WiLjQmSerHe1FGfQdNo7RyIH9egBW0T9NVicATEAJe8Wc6gmdMbibdRlxkMU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=wVJ+MX0p; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="wVJ+MX0p" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 1D020C1F6E9; Fri, 9 Jan 2026 17:17:59 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 64C0A606C6; Fri, 9 Jan 2026 17:18:25 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B60D9103C89AD; Fri, 9 Jan 2026 18:18:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1767979104; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=v22HJHx8//qB5/a5Mqzhu2mFFylXUtBtPnkP97yMpsw=; b=wVJ+MX0pEoXe/7NLlNWUtxxBoI/lzU9mojd2jzQG93nDEXa3RsmSGhB2bptt7G/SnTRLBZ 4fVO/5/czzugN6vkX+kUET3HUqmF7ItOAUTQCFXdFN23Fvu+caG/fpIpu9+D7N1tKjLayU aygZjlNhJmmDNDdS0lfgK/tGMdWbBrUBmZJr2ecHtKLAOGYkY6BcZZFvbiRrLsfFBFHn46 Nk1ZS8cYeFI8tW4tkX6/4m7X0O4FV3mdBenwQeSlCBOKAjNkbzAZA1KuWVAOhaCuh2E3TC v+4o/eg0J7/n3tVsTOWbLFUwp4Ec+6vRljUCyKTi43fewgVX+rLrkF8QsmWjKQ== From: Miquel Raynal Date: Fri, 09 Jan 2026 18:18:03 +0100 Subject: [PATCH v2 05/27] mtd: spinand: Add missing check Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260109-winbond-v6-17-rc1-oddr-v2-5-1fff6a2ddb80@bootlin.com> References: <20260109-winbond-v6-17-rc1-oddr-v2-0-1fff6a2ddb80@bootlin.com> In-Reply-To: <20260109-winbond-v6-17-rc1-oddr-v2-0-1fff6a2ddb80@bootlin.com> To: Mark Brown , Richard Weinberger , Vignesh Raghavendra Cc: Tudor Ambarus , Pratyush Yadav , Thomas Petazzoni , Steam Lin , Santhosh Kumar K , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Miquel Raynal X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 The update cache variant is mandatory, both read and write versions are being checked, but not this one. All chip drivers seem to implement this variant, so there should be no breakage. Reviewed-by: Tudor Ambarus Signed-off-by: Miquel Raynal --- The core has been like that since the begining, I do not think this patch should be backported, hence no Fixes tag. This barely qualifies as a fix anyway. --- drivers/mtd/nand/spi/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 62447801abb1..8acea0372f21 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -1432,6 +1432,9 @@ int spinand_match_and_init(struct spinand_device *spi= nand, =20 op =3D spinand_select_op_variant(spinand, info->op_variants.update_cache); + if (!op) + return -ENOTSUPP; + spinand->op_templates.update_cache =3D op; =20 return 0; --=20 2.51.1