From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.85.4 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795771637; b=tJVv8B1rUNMV3vzcjW5/fhM89VQ5TlYEwyfh5k0hWH7s0/JrcX3x4EaII3EDJ5q2Kw2Z WVdHYYmD+W5QtIWXXCQqBhGcuWWQ7opmsK4xIZE0MiLoJX2+d8WidC1onxgY5JXqoLjwO 7kJ6dqkUmLlVaN9+NjRQJYBYMDsGkHZcDfVE0itmgUv216wmDb3JqUhOdgjGkfbV1zR+f xiKN//wscWXBw2WM52vrq1lPPMXYUgHO6PJcH1dXJgs/i3wBa+KlH+SdCwMPKZLK5//XU AEVuRWdXlGqo8Or7tjOE7RUW2KtjuFhmjlaVFlEH5cBr0Wsks54Or9v7vtV+XxDXR0w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795771637; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:In-Reply-To:References:User-Agent:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=o20Chm5YYzyaeShfBE58QenD/TWPt7pCsFjGMWvzNHA=; b=lbkRQ8Llu587CWe7TuNfUfn7Tl+1oA/0so9o1yfr8wcgTo+6vDuw3paY2s93ct1rf4R6 9NcDT5k6f3AYoTcfv3zNYeBRKH7ggPqg3IBoe5OPZxa4NKMHQ2IPpsw6El/7xRnmXldL2 nbVqUyakaPF04oXck0ocd+cpHlaoLB+fwMEpP3UOEZxELY58eNxh2Vgdz1SIVki2MdtYl jT+ZxKyZn61L5wJqe7/7L4bH57/I1FnT+LGE8GPDaAfx//2FbDCA/ZD9KQ9ubB2S4ONXh Qyczjo6LEsOA3ncSvjNuDV2gkmVu59nRE+BXmA9M3BGf5tuEKu7unW5ZDsq82t15MQA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=trvrwwFz; arc=none smtp.remote-ip=185.246.85.4 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80BA2606A335 for ; Fri, 27 Nov 2026 09:27:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 80BA2606A335 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.a=rsa-sha256 header.s=dkim header.b=trvrwwFz Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id C9BED4E41795; Fri, 27 Nov 2026 09:27:14 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 95EA86049C; Fri, 27 Nov 2026 09:27:14 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id F000911E68208; Fri, 27 Nov 2026 10:27:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795771632; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=o20Chm5YYzyaeShfBE58QenD/TWPt7pCsFjGMWvzNHA=; b=trvrwwFzIqo2mUgfCxEptebF7FC7y/AzHQOQ5RYBZaN48jnVYFsV/W4buUoneXleDhApJs vKj9Tb5BKKmMalB7t0LOb41kEqiwtLp5HFo9hMHopgo8OqljYBPJuJMXa25LEBh2INj+va DkmJxqNVBnIGI8opMsNR3eDy74fDKL+2EeLWr6H0DM2XZALMh206vlO6x0vp1kyX/JY9PH 8UCnxY7D6c2rl2LrUicu9sNjUDirGuGp7ZgEUq1NLQNRX2kA6b7NyfK1tU7raQHJThee1E arIMOI6DDxRJ6iZD50GBDIPaMPaJ3j0kNzryMJKcEwlN/XLan7X4jHmV9lykbg== From: Miquel Raynal To: Bough Chen Cc: Mark Brown , Liang Yang , Feng Chen , Xianwei Zhao , Han Xu , Conor Dooley , Valentina Fernandez , Daire McNamara , Haibo Chen , Jyan Chou , Yu-Chun Lin , Maxime Coquelin , Alexandre Torgue , Pratyush Yadav , Michael Walle , Takahiro Kuwano , Richard Weinberger , Vignesh Raghavendra , Thomas Petazzoni , Alvin Zhou , Cheng Ming Lin , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, imx@lists.linux.dev, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH RFC 10/16] spi: nxp-xspi: Consume dummy cycles directly In-Reply-To: <20261127090720.2zu37yavojz7fze6@shlinux89> (Bough Chen's message of "Fri, 27 Nov 2026 17:07:20 +0800") References: <20261125-macronix-upstreaming-spi-mem-cycles-v1-0-fd036402fd37@bootlin.com> <20261125-macronix-upstreaming-spi-mem-cycles-v1-10-fd036402fd37@bootlin.com> <20261127090720.2zu37yavojz7fze6@shlinux89> User-Agent: mu4e 1.12.12; emacs 30.2 Date: Fri, 27 Nov 2026 10:27:04 +0100 Message-ID: <87tsl2tyjb.fsf@bootlin.com> X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Hello, > On Wed, Nov 25, 2026 at 06:51:24PM +0100, Miquel Raynal wrote: >> The spi-mem layer is now capable of providing the dummy phase in cycle >> units rather than bytes, provided that drivers advertize the dummy_cycle >> capability. Since this controller is consuming cycles and currently >> converts bytes into cycles, flag it capable to consume cycles directly >> and drop the extra conversions. >>=20 >> Signed-off-by: Miquel Raynal >> --- >> drivers/spi/spi-nxp-xspi.c | 12 +++++------- > > Hi Miquel, > > Can you help also add the changes for spi-nxp-fspi.c? > flexspi and xspi of NXP have the similar driver structure. Yes, flexspi will also be part of v2. I would be very happy if you could provide test results for the NXP controllers! Thanks for the feedback, I will send a v2 soon. Miqu=C3=A8l