]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: spinand: macronix: Convert vendor specific operation to SPINAND_OP()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 9 Jan 2026 17:18:09 +0000 (18:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 29 Jan 2026 19:21:40 +0000 (20:21 +0100)
commitb347cdc89beb12e531ebbfda77c37c6446285a40
tree8a959a725fde98787351e71055f6854358e516c5
parent88b0e3584acb905c41252b7917013ecf7c0518bc
mtd: spinand: macronix: Convert vendor specific operation to SPINAND_OP()

Macronix chips require a vendor specific operation to read the ECC
status register. Instead of defining this op only in the function that
needs it, hiding it from the core, make it a proper define like all
other spi-mem operations, and implement the necessary
spinand_fill_*_op() helper to make the SPINAND_OP() macro work. This way
we can use it from any function without any extra handling outside of
this helper when we will convert the core to support octal DDR busses.

Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/spi/macronix.c