From nobody Tue Feb 10 04:17:30 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 453C9313E2F for ; Thu, 5 Feb 2026 19:07:21 +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=1770318441; cv=none; b=E1lafsh0KoxqemDnEmnRbVd5AtCC+s9YNJe3gg9zCuOG/yDv6lJKvbTvGZcPuZjOTMrxb6l7jBZNP/uRzwLEqzh5iiKc+OwlQoVMSAGcPqLDKWlcx6vMhNng7tHYtBZjmrfTeIGv7sdeJObOC4ueeZNoPfkKQizX22HFXx67/2w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770318441; c=relaxed/simple; bh=0ZtYMNIrVVrkdSY3M3AQ9WB/wN01k0rFv3mR889UOsc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PKsVlkZDsxQtGFSGhl25aU7EE6VqhqpCwAX93iDfMCRz8mfbBAxJW5dvgIx9cOlNEWrgmqVNR4Q0JfSzVWg9jhb68o92vpN7iX8geQxFgL4JWsREdwV85dm6HyjP+ETXhueHEk4VZk5objhedUJNATRAEDvUaa4rRGdKOyKfrNc= 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=ciHAmq+n; 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="ciHAmq+n" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 9F210C243B7; Thu, 5 Feb 2026 19:07:24 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 64BFF6074D; Thu, 5 Feb 2026 19:07:18 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E2208119D178B; Thu, 5 Feb 2026 20:07:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1770318437; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=dYYkOMmkvYm09ui+5e6ZadWbVo/SG1FMXVi2GURuVG8=; b=ciHAmq+nFySpzxqrOxnRMm491XzCE3ClAKpYW74F8w8q08takX5II9/7Nk/xgQyhIByA3b vD4f+Git2Nrq5ypf7ZFmDJF6i+48n8KG89drsVwtyu7bDdA5QBFreqZ1c8feMYvA8I4b8O ytC7XhvkgtsEEfK567U6lWksCetzINMiyyKcWt0VWM95EcK8kMQcPuIqFjlNKZUDnM/URq k0XyoK/ls801GlMSGAmMMmxdXhg1gyb4RGb68mp/bXkAOJ5FVLF2YcXzgRtmrpIQEgJkOP OyaeKqe3+3tF7N19oRwuU1B81REHxTU8un9CFOK3wdj9mIEZ38u/y7EUyowy7A== From: Miquel Raynal Date: Thu, 05 Feb 2026 20:07:01 +0100 Subject: [PATCH DO NOT MERGE RFC 4/4] spi: cadence-qspi: Retrieve DQS capability using the core helper 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: <20260205-winbond-nand-next-phy-tuning-v1-4-5e7d3976f0f1@bootlin.com> References: <20260205-winbond-nand-next-phy-tuning-v1-0-5e7d3976f0f1@bootlin.com> In-Reply-To: <20260205-winbond-nand-next-phy-tuning-v1-0-5e7d3976f0f1@bootlin.com> To: Mark Brown , Richard Weinberger , Vignesh Raghavendra Cc: Thomas Petazzoni , praneeth@ti.com, u-kumar1@ti.com, p-mantena@ti.com, a-dutta@ti.com, s-k6@ti.com, 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 is just a suggestion for Santhosh on how to get the DQS capability information without the DT property, to introduce in his Cadence QSPI PHY tuning series: https://lore.kernel.org/linux-spi/87v7gbdwdh.fsf@bootlin.com/T/#t This patch shall not be applied as-is and is just given as an FYI. Signed-off-by: Miquel Raynal --- drivers/spi/spi-cadence-quadspi.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-qu= adspi.c index 4f799f747346..0809846a6ef0 100644 --- a/drivers/spi/spi-cadence-quadspi.c +++ b/drivers/spi/spi-cadence-quadspi.c @@ -3476,6 +3476,12 @@ static int cqspi_mem_op_execute_tuning(struct spi_me= m *mem, if (!cqspi->ddata->execute_tuning) return -EOPNOTSUPP; =20 + /* + * FIXME: maybe this boolean could be queried when needed by + * saving a pointer to the spi memory somewhere? + */ + cqspi->f_pdata->has_dqs =3D spi_mem_has_dqs(mem); + return cqspi->ddata->execute_tuning(mem, read_op, write_op); } =20 @@ -3517,8 +3523,6 @@ static int cqspi_of_get_flash_pdata(struct platform_d= evice *pdev, f_pdata->non_phy_clk_rate =3D f_pdata->cqspi->ddata->get_non_phy_clk_rate(f_pdata->cqspi); =20 - f_pdata->has_dqs =3D of_property_read_bool(np, "spi-has-dqs"); - return 0; } =20 --=20 2.51.1