From nobody Tue Feb 10 19:17:22 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 6A233341046; Fri, 19 Dec 2025 19:23:20 +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=1766172202; cv=none; b=hjSU4ZAIy3VgxsemvVmzt530KrHgOkDo4FJBkuYK9Jpfjr7r+h7NBvvic/rQ+5nOf+d2gyTF7MY9lW9jGseDLkNOzKRguI7v3PhLY7wjxvwbEzDDLNm6ofN9KeEj0zJIBKpidkVkXNpcLLyy76EfPGwbdaEq9F3cgVZZ8nmpkAk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766172202; c=relaxed/simple; bh=MdZ3d8nEN8aYHL4QEwKmkoUUdnztQwqgvokaNOhd5UY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=poZOKrl3HAzit0wwaoGOW75XCUyLmPUUuMyYJAlOxhw0X4GCnLkBbcc9A2NNF/jfg6tCtg0mQcya6+I1ZpF6gZBBhul8qXeoUUk/0nfX+36it2yVasrM5hGxLS3yu8/A6BXC+mUn77xDVlmj2QOigLWXDiCinuLQd4cdxD8AJU8= 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=caKo3UjO; 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="caKo3UjO" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 5E4D8C1B210; Fri, 19 Dec 2025 19:22:54 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 207516071D; Fri, 19 Dec 2025 19:23:19 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CBC1910AA95EC; Fri, 19 Dec 2025 20:23:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1766172198; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Kwu3Bk7SfRQkZlA6MLoy4o6YT2zdfxSbLAm4sFOyrsQ=; b=caKo3UjOGaLXrv/ZFGhXdhDMlR7OAlBQNL/zBitE/z7xQtjCTDWQmgehg2uxgZXRMquWzJ mts4WivPqM/KRgWPZ36DIwI7GrVo4FVEYZjiHSJYFEjFlWZ9egCpjDghBWP3kC3UnwzffV 8LdL9a71h//Bz2Lsd3iKRy81YEndsImflrHq6GLGeJuMjmgbLtJ7xmp182wVbEgMgsItbL R5Qz5UYeeFljs43am/WQ2cQ6XBeacLHlirKWHNfZGb0fPT/QtBotIq4gM8F6Zv87WYuMp5 8q6VFcBjkfHaVr/KXjJJGsotaY3MZve4HRoLztjH/+9l8GHUNdtyAZm6KuEuIg== From: Miquel Raynal Date: Fri, 19 Dec 2025 20:22:08 +0100 Subject: [PATCH 06/13] spi: cadence-qspi: Make sure we filter out unsupported ops 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: <20251219-schneider-6-19-rc1-qspi-v1-6-8ad505173e44@bootlin.com> References: <20251219-schneider-6-19-rc1-qspi-v1-0-8ad505173e44@bootlin.com> In-Reply-To: <20251219-schneider-6-19-rc1-qspi-v1-0-8ad505173e44@bootlin.com> To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Vaishnav Achath Cc: Thomas Petazzoni , =?utf-8?q?Herv=C3=A9_Codina?= , Wolfram Sang , Vignesh Raghavendra , Santhosh Kumar K , Pratyush Yadav , Pascal Eberhard , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, "Miquel Raynal (Schneider Electric)" X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 The Cadence driver does not support anything else than repeating the command opcode twice while in octal DTR mode. Make this clear by checking for this in the ->supports_op() hook. Signed-off-by: Miquel Raynal Reviewed-by: Pratyush Yadav --- drivers/spi/spi-cadence-quadspi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-qu= adspi.c index 8f78d1c44663..f59f3a8dccf5 100644 --- a/drivers/spi/spi-cadence-quadspi.c +++ b/drivers/spi/spi-cadence-quadspi.c @@ -1537,6 +1537,10 @@ static bool cqspi_supports_mem_op(struct spi_mem *me= m, return false; if (op->data.nbytes && op->data.buswidth !=3D 8) return false; + + /* A single opcode is supported, it will be repeated */ + if ((op->cmd.opcode >> 8) !=3D (op->cmd.opcode & 0xFF)) + return false; } else if (!all_false) { /* Mixed DTR modes are not supported. */ return false; --=20 2.51.1