Re: [RFC PATCH 2/4] spi: cadence-xspi: add ACMD support for SPI NAND
From: Miquel Raynal
Date: Fri Sep 25 2026 - 09:05:54 EST
On 25/09/2026 at 12:59:49 +01, Mark Brown <broonie@xxxxxxxxxx> wrote:
> On Fri, Sep 25, 2026 at 12:23:21PM +0200, Miquel Raynal wrote:
>
>> > As for PROGRAM and ERASE commands I really did not saw any added
>> > value.
>
>> Yes, most of the time is spent in the wait_ready, which is not getting
>> faster with hardware automation.
>
> It might potentially help a heavily loaded system if you can do fewer
> waits, the rest of the tasks running on the system will have more time
> if we're doing fewer waits for interrupts. Not sure it'd be enough to
> write home about though.
Definitely, but this is already possible, one may implement
ctlr->mem_ops->poll_status. This way the core can leverage the hardware
to perform the polling. It is not directly visible on benchmarks,
because it won't reduce much the wait time, but the system load will
decrease.
Thanks,
Miquèl