Re: [PATCH RFC 02/16] spi: spi-mem: Stop checking the dummy buswidth against board wiring
From: Miquel Raynal
Date: Fri Nov 27 2026 - 04:23:50 EST
>> - if (op->dummy.nbytes &&
>> - spi_check_buswidth_req(mem, op->dummy.buswidth, true))
>> - return false;
>> + /*
>> + * The dummy phase implies no actual transmission nor reception.
>> + * Its buswidth therefore does not matter much.
>> + */
>>
> Hi Miquel,
>
> With this change, do you plan to add the linked patch back?
> Setting the dummy buswidth to match the data buswidth is more reasonable.
No I do not. Doing this would only paper over the problem for certain
cases and would for instance break many of the SPI NAND cases. Those
chips currently derive a number of dummy bytes based on the dummy
buswidth, which is the same as in the address phase. So changing this in
spi-mem or drivers would break this assumption. Either your controller
has a cycle oriented dummy phase, in which case there should be no
problem once converted (see the patches below) or it is byte oriented
and the mode should likely be refused.
But maybe if you tell me what you have in mind we can search for a
solution for it.
Thanks,
Miquèl