From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Bough Chen <haibo.chen@oss.nxp.com>
Cc: sashiko-reviews@lists.linux.dev, Mark Brown <broonie@kernel.org>,
Liang Yang <liang.yang@amlogic.com>,
Feng Chen <feng.chen@amlogic.com>,
Xianwei Zhao <xianwei.zhao@amlogic.com>, Han Xu <han.xu@nxp.com>,
Conor Dooley <conor.dooley@microchip.com>,
Valentina Fernandez <valentina.fernandezalanis@microchip.com>,
Daire McNamara <daire.mcnamara@microchip.com>,
Haibo Chen <haibo.chen@nxp.com>,
Jyan Chou <jyanchou@realtek.com>,
Yu-Chun Lin <eleanor.lin@realtek.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Pratyush Yadav <pratyush@kernel.org>,
Michael Walle <mwalle@kernel.org>,
Takahiro Kuwano <takahiro.kuwano@infineon.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Alvin Zhou <alvinzhou@mxic.com.tw>,
Cheng Ming Lin <chengminglin@mxic.com.tw>,
linux-amlogic@lists.infradead.org, imx@lists.linux.dev,
linux-stm32@st-md-mailman.stormreply.com,
linux-mtd@lists.infradead.org, Frank.Li@kernel.org,
neil.armstrong@linaro.org
Subject: Re: [PATCH RFC 08/16] spi: fsl-qspi: Consume dummy cycles directly
Date: Fri, 27 Nov 2026 10:24:11 +0100 [thread overview]
Message-ID: <87zeuutyo4.fsf@bootlin.com> (raw)
In-Reply-To: <20261127085632.44irp2necxfqbbn2@shlinux89> (Bough Chen's message of "Fri, 27 Nov 2026 16:56:32 +0800")
>> [Severity: High]
>> Does fsl_qspi_mem_caps also need .dummy_cycles = true?
>>
>> fsl_qspi_mem_caps only sets .per_op_freq = true. Without .dummy_cycles =
>> true, spi_mem_convert_dummy() converts any dummy cycles to op->dummy.nbytes
>> and sets op->dummy.ncycles = 0 before invoking the driver callbacks. As a
>> result, op->dummy.ncycles is always 0 in fsl_qspi_supports_op() and
>> fsl_qspi_prepare_lut(), so dummy validation is skipped and LUT_DUMMY is
>> never programmed into the hardware LUT for operations requiring dummy
>> cycles.
>
> Correct, need .dummy_cycles = true
Yes, I forgot to add the capability there.
WARNING: multiple messages have this Message-ID (diff)
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Bough Chen <haibo.chen@oss.nxp.com>
Cc: sashiko-reviews@lists.linux.dev, Mark Brown <broonie@kernel.org>,
Liang Yang <liang.yang@amlogic.com>,
Feng Chen <feng.chen@amlogic.com>,
Xianwei Zhao <xianwei.zhao@amlogic.com>, Han Xu <han.xu@nxp.com>,
Conor Dooley <conor.dooley@microchip.com>,
Valentina Fernandez <valentina.fernandezalanis@microchip.com>,
Daire McNamara <daire.mcnamara@microchip.com>,
Haibo Chen <haibo.chen@nxp.com>,
Jyan Chou <jyanchou@realtek.com>,
Yu-Chun Lin <eleanor.lin@realtek.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Pratyush Yadav <pratyush@kernel.org>,
Michael Walle <mwalle@kernel.org>,
Takahiro Kuwano <takahiro.kuwano@infineon.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Alvin Zhou <alvinzhou@mxic.com.tw>,
Cheng Ming Lin <chengminglin@mxic.com.tw>,
linux-amlogic@lists.infradead.org, imx@lists.linux.dev,
linux-stm32@st-md-mailman.stormreply.com,
linux-mtd@lists.infradead.org, Frank.Li@kernel.org,
neil.armstrong@linaro.org
Subject: Re: [PATCH RFC 08/16] spi: fsl-qspi: Consume dummy cycles directly
Date: Fri, 27 Nov 2026 10:24:11 +0100 [thread overview]
Message-ID: <87zeuutyo4.fsf@bootlin.com> (raw)
In-Reply-To: <20261127085632.44irp2necxfqbbn2@shlinux89> (Bough Chen's message of "Fri, 27 Nov 2026 16:56:32 +0800")
>> [Severity: High]
>> Does fsl_qspi_mem_caps also need .dummy_cycles = true?
>>
>> fsl_qspi_mem_caps only sets .per_op_freq = true. Without .dummy_cycles =
>> true, spi_mem_convert_dummy() converts any dummy cycles to op->dummy.nbytes
>> and sets op->dummy.ncycles = 0 before invoking the driver callbacks. As a
>> result, op->dummy.ncycles is always 0 in fsl_qspi_supports_op() and
>> fsl_qspi_prepare_lut(), so dummy validation is skipped and LUT_DUMMY is
>> never programmed into the hardware LUT for operations requiring dummy
>> cycles.
>
> Correct, need .dummy_cycles = true
Yes, I forgot to add the capability there.
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
WARNING: multiple messages have this Message-ID (diff)
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Bough Chen <haibo.chen@oss.nxp.com>
Cc: sashiko-reviews@lists.linux.dev, Mark Brown <broonie@kernel.org>,
Liang Yang <liang.yang@amlogic.com>,
Feng Chen <feng.chen@amlogic.com>,
Xianwei Zhao <xianwei.zhao@amlogic.com>, Han Xu <han.xu@nxp.com>,
Conor Dooley <conor.dooley@microchip.com>,
Valentina Fernandez <valentina.fernandezalanis@microchip.com>,
Daire McNamara <daire.mcnamara@microchip.com>,
Haibo Chen <haibo.chen@nxp.com>,
Jyan Chou <jyanchou@realtek.com>,
Yu-Chun Lin <eleanor.lin@realtek.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Pratyush Yadav <pratyush@kernel.org>,
Michael Walle <mwalle@kernel.org>,
Takahiro Kuwano <takahiro.kuwano@infineon.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Alvin Zhou <alvinzhou@mxic.com.tw>,
Cheng Ming Lin <chengminglin@mxic.com.tw>,
linux-amlogic@lists.infradead.org, imx@lists.linux.dev,
linux-stm32@st-md-mailman.stormreply.com,
linux-mtd@lists.infradead.org, Frank.Li@kernel.org,
neil.armstrong@linaro.org
Subject: Re: [PATCH RFC 08/16] spi: fsl-qspi: Consume dummy cycles directly
Date: Fri, 27 Nov 2026 10:24:11 +0100 [thread overview]
Message-ID: <87zeuutyo4.fsf@bootlin.com> (raw)
In-Reply-To: <20261127085632.44irp2necxfqbbn2@shlinux89> (Bough Chen's message of "Fri, 27 Nov 2026 16:56:32 +0800")
>> [Severity: High]
>> Does fsl_qspi_mem_caps also need .dummy_cycles = true?
>>
>> fsl_qspi_mem_caps only sets .per_op_freq = true. Without .dummy_cycles =
>> true, spi_mem_convert_dummy() converts any dummy cycles to op->dummy.nbytes
>> and sets op->dummy.ncycles = 0 before invoking the driver callbacks. As a
>> result, op->dummy.ncycles is always 0 in fsl_qspi_supports_op() and
>> fsl_qspi_prepare_lut(), so dummy validation is skipped and LUT_DUMMY is
>> never programmed into the hardware LUT for operations requiring dummy
>> cycles.
>
> Correct, need .dummy_cycles = true
Yes, I forgot to add the capability there.
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2026-11-27 9:24 UTC|newest]
Thread overview: 144+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 17:51 [PATCH RFC 00/16] spi: spi-mem: Express the dummy phase using cycles when relevant Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` [PATCH RFC 01/16] spi: spi-mem: Handle a corner case while sanitizing ops Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:58 ` sashiko-bot
2026-11-25 17:58 ` sashiko-bot
2026-11-25 17:58 ` sashiko-bot
2026-11-27 8:46 ` Bough Chen
2026-11-27 8:46 ` Bough Chen
2026-11-27 8:46 ` Bough Chen
2026-11-27 8:46 ` Bough Chen
2026-11-27 9:18 ` Miquel Raynal
2026-11-27 9:18 ` Miquel Raynal
2026-11-27 9:18 ` Miquel Raynal
2026-11-27 9:18 ` Miquel Raynal
2026-11-25 17:51 ` [PATCH RFC 02/16] spi: spi-mem: Stop checking the dummy buswidth against board wiring Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-27 8:53 ` Bough Chen
2026-11-27 8:53 ` Bough Chen
2026-11-27 8:53 ` Bough Chen
2026-11-27 8:53 ` Bough Chen
2026-11-27 9:23 ` Miquel Raynal
2026-11-27 9:23 ` Miquel Raynal
2026-11-27 9:23 ` Miquel Raynal
2026-11-27 9:23 ` Miquel Raynal
2026-11-25 17:51 ` [PATCH RFC 03/16] spi: spi-mem: Add support for dummy cycles Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 18:07 ` sashiko-bot
2026-11-25 18:07 ` sashiko-bot
2026-11-25 18:07 ` sashiko-bot
2026-11-25 17:51 ` [PATCH RFC 04/16] spi: amlogic-spifc-a1: Consume dummy cycles directly Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` [PATCH RFC 05/16] spi: amlogic-spifc-a1: Fix a typo in a macro Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` [PATCH RFC 06/16] spi: amlogic: spifc-a4: Consume dummy cycles directly Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:59 ` sashiko-bot
2026-11-25 17:59 ` sashiko-bot
2026-11-25 17:59 ` sashiko-bot
2026-11-25 17:51 ` [PATCH RFC 07/16] spi: cadence-qspi: " Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` [PATCH RFC 08/16] spi: fsl-qspi: " Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:58 ` sashiko-bot
2026-11-25 17:58 ` sashiko-bot
2026-11-25 17:58 ` sashiko-bot
2026-11-27 8:56 ` Bough Chen
2026-11-27 8:56 ` Bough Chen
2026-11-27 8:56 ` Bough Chen
2026-11-27 9:24 ` Miquel Raynal [this message]
2026-11-27 9:24 ` Miquel Raynal
2026-11-27 9:24 ` Miquel Raynal
2026-11-25 17:51 ` [PATCH RFC 09/16] spi: microchip-core-qspi: " Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 18:06 ` sashiko-bot
2026-11-25 18:06 ` sashiko-bot
2026-11-25 18:06 ` sashiko-bot
2026-11-25 17:51 ` [PATCH RFC 10/16] spi: nxp-xspi: " Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-27 9:07 ` Bough Chen
2026-11-27 9:07 ` Bough Chen
2026-11-27 9:07 ` Bough Chen
2026-11-27 9:07 ` Bough Chen
2026-11-27 9:27 ` Miquel Raynal
2026-11-27 9:27 ` Miquel Raynal
2026-11-27 9:27 ` Miquel Raynal
2026-11-27 9:27 ` Miquel Raynal
2026-11-25 17:51 ` [PATCH RFC 11/16] spi: nxp-xspi: Fix a comment Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-27 9:08 ` Bough Chen
2026-11-27 9:08 ` Bough Chen
2026-11-27 9:08 ` Bough Chen
2026-11-27 9:08 ` Bough Chen
2026-11-25 17:51 ` [PATCH RFC 12/16] spi: rtk-nor: Consume dummy cycles directly Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 18:02 ` sashiko-bot
2026-11-25 18:02 ` sashiko-bot
2026-11-25 18:02 ` sashiko-bot
2026-11-25 17:51 ` [PATCH RFC 13/16] spi: sn-f-ospi: " Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 18:01 ` sashiko-bot
2026-11-25 18:01 ` sashiko-bot
2026-11-25 18:01 ` sashiko-bot
2026-11-25 17:51 ` [PATCH RFC 14/16] spi: stm32-ospi: " Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 18:12 ` sashiko-bot
2026-11-25 18:12 ` sashiko-bot
2026-11-25 18:12 ` sashiko-bot
2026-11-25 17:51 ` [PATCH RFC 15/16] spi: stm32-qspi: " Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 18:14 ` sashiko-bot
2026-11-25 18:14 ` sashiko-bot
2026-11-25 18:14 ` sashiko-bot
2026-11-25 17:51 ` [PATCH RFC 16/16] mtd: spi-nor: Express the dummy phase in cycles Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 17:51 ` Miquel Raynal
2026-11-25 18:08 ` sashiko-bot
2026-11-25 18:08 ` sashiko-bot
2026-11-25 18:08 ` sashiko-bot
2026-11-26 11:09 ` [PATCH RFC 00/16] spi: spi-mem: Express the dummy phase using cycles when relevant Miquel Raynal
2026-11-26 11:09 ` Miquel Raynal
2026-11-26 11:09 ` Miquel Raynal
2026-11-26 11:09 ` Miquel Raynal
2026-11-27 9:33 ` Tudor Ambarus
2026-11-27 9:33 ` Tudor Ambarus
2026-11-27 9:33 ` Tudor Ambarus
2026-11-27 9:33 ` Tudor Ambarus
2026-11-27 13:02 ` Miquel Raynal
2026-11-27 13:02 ` Miquel Raynal
2026-11-27 13:02 ` Miquel Raynal
2026-11-27 13:02 ` Miquel Raynal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zeuutyo4.fsf@bootlin.com \
--to=miquel.raynal@bootlin.com \
--cc=Frank.Li@kernel.org \
--cc=alexandre.torgue@foss.st.com \
--cc=alvinzhou@mxic.com.tw \
--cc=broonie@kernel.org \
--cc=chengminglin@mxic.com.tw \
--cc=conor.dooley@microchip.com \
--cc=daire.mcnamara@microchip.com \
--cc=eleanor.lin@realtek.com \
--cc=feng.chen@amlogic.com \
--cc=haibo.chen@nxp.com \
--cc=haibo.chen@oss.nxp.com \
--cc=han.xu@nxp.com \
--cc=imx@lists.linux.dev \
--cc=jyanchou@realtek.com \
--cc=liang.yang@amlogic.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=mwalle@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=pratyush@kernel.org \
--cc=richard@nod.at \
--cc=sashiko-reviews@lists.linux.dev \
--cc=takahiro.kuwano@infineon.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=valentina.fernandezalanis@microchip.com \
--cc=vigneshr@ti.com \
--cc=xianwei.zhao@amlogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.