]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: spinand: Add support for setting a bus interface
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 9 Jan 2026 17:18:20 +0000 (18:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 29 Jan 2026 19:21:41 +0000 (20:21 +0100)
commit20387f2fe509eba46ecf758da052786d7b1203fb
treebf8d47bf6d973bc8c5d0795f4e2ef3ec6c6f3a8c
parentbe0b86c648bf811237cc17e274e9f9488fccb772
mtd: spinand: Add support for setting a bus interface

Create a bus interface enumeration, currently only containing the
one we support: SSDR, for single SDR, so any operation whose command is
sent over a single data line in SDR mode, ie. any operation matching
1S-XX-XX.

The main spinand_device structure gets a new parameter to store this
enumeration, for now unused. Of course it is set to SSDR during the SSDR
templates initialization to further clarify the state we are in at the
moment.

This member is subject to be used to know in which bus configuration we
and be updated by the core when we switch to faster mode(s).

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/spi/core.c
include/linux/mtd/spinand.h