From nobody Tue Dec 16 14:52:17 2025 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 542752F49FC for ; Fri, 5 Dec 2025 19:39:45 +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=1764963587; cv=none; b=gu5L4g8fvop/KWdPAn9a2M0SErl48CjPow38Q667J2nbQhmP/9qxi0bPTO9HOnLYlOtpleiZeG9OVT035YhgRhReGYjt5euK5G/15zXo0uKXEr2ipdsZ8E0FXlrJMer/kD+31cdywyO0ms/o3Jzk/tuik/hTZw9Z/5eW4Q9ZScw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764963587; c=relaxed/simple; bh=mQaaxpYiYEA4WG+VkY9JcwF+LpKCHCFQheQhakl466s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YdKdIhI1yOP2bc6ywk2Nx5QHnNeyLRmyB8gggpN0VvbwBeLUTac85p17zPRwki4Ht1Ov2DRTPqqoNofGQj6VkOKit5Wrt0hWTqiCvHXGn5Mw91t0bNafvb/drv+bldErfQlkup5qyNbOQsCVvoY/LYe/OWOdvJ/4HuVHwyKFuYE= 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=kdl8sj1F; 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="kdl8sj1F" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 175F4C19651; Fri, 5 Dec 2025 19:39:20 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 8EB41606AC; Fri, 5 Dec 2025 19:39:43 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 38787102F18E2; Fri, 5 Dec 2025 20:39:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1764963582; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=GsPfW5nIrd5pUnvoNUZwEFGa4mbzSWlHyDo81A+WvbQ=; b=kdl8sj1F1iOIT4hz0E2OFm3VYpUtyMOasoawoaUZOU4bJdRlkRuR/L5h2wxiuywE2ulpU1 5OJsczM5hBpkRyWlluHcWhpAP9Jo1VA34C6Ta5XZEbFakxra7daw+eYFGAI3ZAQyDCXr+9 sKVUGXfn+6U4Jct+kwy0Grz5r0LOFHCH1qngzo+s4h5axTMBDKD7I7GT52IIKRSp7P41CF hymHESESD6jzDg3HlGIZL/4XbLYln7uigDGjCQopihp5DB26Anl+7TKEr0z2s3HJzZm5VA zoaJb+dPuaZVhvkpJX33okuFuRxUxr1mYSCU1IcvS8jmEfF6xFk3PHMPh7QwZQ== From: Miquel Raynal Date: Fri, 05 Dec 2025 20:38:53 +0100 Subject: [PATCH RFC 2/8] mtd: spinand: Expose spinand_op_is_odtr() 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: <20251205-winbond-v6-18-rc1-cont-read-v1-2-01bc48631c73@bootlin.com> References: <20251205-winbond-v6-18-rc1-cont-read-v1-0-01bc48631c73@bootlin.com> In-Reply-To: <20251205-winbond-v6-18-rc1-cont-read-v1-0-01bc48631c73@bootlin.com> To: Mark Brown , Richard Weinberger , Vignesh Raghavendra , Michael Walle 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 This helper is going to be needed in a vendor driver, so expose it. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/spi/core.c | 2 +- include/linux/mtd/spinand.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index f19150740979..3765fcc95c4a 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -1300,7 +1300,7 @@ static void spinand_manufacturer_cleanup(struct spina= nd_device *spinand) return spinand->manufacturer->ops->cleanup(spinand); } =20 -static bool spinand_op_is_odtr(const struct spi_mem_op *op) +bool spinand_op_is_odtr(const struct spi_mem_op *op) { return op->cmd.dtr && op->cmd.buswidth =3D=3D 8; } diff --git a/include/linux/mtd/spinand.h b/include/linux/mtd/spinand.h index eb8ae164b3aa..a90e873cf693 100644 --- a/include/linux/mtd/spinand.h +++ b/include/linux/mtd/spinand.h @@ -944,6 +944,8 @@ static inline void spinand_set_of_node(struct spinand_d= evice *spinand, nanddev_set_of_node(&spinand->base, np); } =20 +bool spinand_op_is_odtr(const struct spi_mem_op *op); + int spinand_match_and_init(struct spinand_device *spinand, const struct spinand_info *table, unsigned int table_size, --=20 2.51.1