[PATCH RFC 01/16] spi: spi-mem: Handle a corner case while sanitizing ops
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Wed Nov 25 09:58:55 PST 2026
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] spi: spi-mem: missing Fixes trailer for
spi_mem_default_supports_op() fix
--
commit bb612cd08d5fd5887be36ce57a7159e805a4780d
Author: Miquel Raynal <miquel.raynal at bootlin.com>
> spi: spi-mem: Handle a corner case while sanitizing ops
>
> Some mixed mode operations (such as 1S-xD-yD) will be flagged with
> op_is_dtr but will not enter the ODTR checks. As a result, the number of
> command bytes will never be checked.
>
> Reorganize a little bit this helper:
> - If the operation contains a DTR phase, sanitize it.
> - Then sanitize the op, should it be:
> - ODTR (8D-8D-8D)
> - anything else
>
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
[Severity: Low]
This fixes the command-byte check skipped for non-ODTR operations with
DTR phases since 8618271887ca ("spi: spi-mem: Limit octal DTR constraints
to octal DTR situations"). Should this include:
Fixes: 8618271887ca ("spi: spi-mem: Limit octal DTR constraints to octal DTR situations")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-macronix-upstreaming-spi-mem-cycles-v1-0-fd036402fd37@bootlin.com?part=1
More information about the linux-mtd
mailing list