]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: spinand: winbond: Convert W35N specific operation to SPINAND_OP()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 9 Jan 2026 17:18:11 +0000 (18:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 29 Jan 2026 19:21:41 +0000 (20:21 +0100)
commit6ec7ace0127077d1caab6ca1fb0129da8eb5c1de
tree26c765136c465a06e39b12758a7fe5b408eeba20
parent44c9c1b45d50dcbce17c18adb4e79f394f127d57
mtd: spinand: winbond: Convert W35N specific operation to SPINAND_OP()

Winbond W35N* chips require a vendor specific operation to write their
VCR register (a configuration register, typically used for tuning the
number of dummy cycles and switching to a different bus
interface). 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/winbond.c