From nobody Tue Feb 10 01:34:58 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 6EC16366DBB for ; Fri, 9 Jan 2026 17:18:39 +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=1767979121; cv=none; b=IvMzzBOGpfusX2pv4Ls7yEUWHTJDnMiTwQsRpeQr7ow2zk9aiZ3rM7IRACL1XJrh/orrHwLu0PRFMfYwBFjisYZI8fOkMv3VNkNkATzPyS5XGMZ7VsBewFNBtzygl2j/i3o2ZZGqpzI6CCn0pe7OMzoMXs0PtysGwsD3Bw6id7w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767979121; c=relaxed/simple; bh=e6AA+GM1Ciksp1i22yflYcy1vdvWSgpRsIlKD+ggmmI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aotHCsVAZ3iLW3ba0bUO5jQyWVRqlSHNcI8A4T0neZTnqYaSA2brvGcblishyzAmyFqDGaWTPbG8TeyCo8FNpn1wb9oKGmnZcRUR0KQR3Zyb6k9Tw5g6GI6YCZDdZgQVt9aGjeT0+X48l+BGtWmR0yEf+YJSqCC2pP5vdYYJXIM= 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=uiD8NIYz; 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="uiD8NIYz" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id CFF56C1F6E9; Fri, 9 Jan 2026 17:18:11 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 25432606C6; Fri, 9 Jan 2026 17:18:38 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9609C103C89B8; Fri, 9 Jan 2026 18:18:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1767979117; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=lnokEMFB4NwttnDPKwrpdjjcxdmg3b5O6SJBXL7NJ0s=; b=uiD8NIYzaeFDctQYhOWJnQb5qr6Y7NUQoL60Npic3ffuF6iUrJ3fJAWmWTJxoIYp72dheG gr+7OgafM9T50STuFGgMKNcnYcMG7NW5QX7OUhkTH+zdXBRgf+0hf/EdJ5Yu8KXweaeKkW fNqcq0oJYRQscOgAUbsijhM+p/CtDT213TxCkA1KMr+IStc+VTQb0a9Rq7cskzIBNqS0T2 zyxh9F6v4CwxRH5qCJGY9ZlsebSk77ZW83+MdBWghv1YVo9LBtqrVq3usPa+IoJtHUl3ma qsX6f105OSUxJgjP9lsjnGzfuUhMtD6A5xOEizlVL/xYFT14aEzbeQwbfC0XRA== From: Miquel Raynal Date: Fri, 09 Jan 2026 18:18:14 +0100 Subject: [PATCH v2 16/27] mtd: spinand: winbond: Register W25N vendor specific operation 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-16-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 Provide the Winbond W25N specific "select target" operation to let the core verify it is supported by the controller before using it. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/spi/winbond.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c index 3003ad7e83ee..36053f35ee5e 100644 --- a/drivers/mtd/nand/spi/winbond.c +++ b/drivers/mtd/nand/spi/winbond.c @@ -105,6 +105,9 @@ spinand_fill_winbond_write_vcr_op(struct spinand_device= *spinand, u8 reg, void * SPI_MEM_OP_NO_DUMMY, \ SPI_MEM_OP_DATA_OUT(1, buf, 1)) =20 +static SPINAND_OP_VARIANTS(winbond_w25_ops, + SPINAND_WINBOND_SELECT_TARGET_1S_0_1S(NULL)); + static struct spi_mem_op spinand_fill_winbond_select_target_op(struct spinand_device *spinand, void= *valptr) { @@ -497,6 +500,7 @@ static const struct spinand_info winbond_spinand_table[= ] =3D { &write_cache_variants, &update_cache_variants), 0, + SPINAND_INFO_VENDOR_OPS(&winbond_w25_ops), SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL), SPINAND_SELECT_TARGET(w25m02gv_select_target)), SPINAND_INFO("W25N02JW", /* high-speed 1.8V */ --=20 2.51.1