]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: spinand: Gather all the bus interface steps in one single function
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 9 Jan 2026 17:18:19 +0000 (18:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 29 Jan 2026 19:21:41 +0000 (20:21 +0100)
commitbe0b86c648bf811237cc17e274e9f9488fccb772
treef6f2686a1251f1d1633662fe3e29e33990f615df
parentef1ed296fb9d9246256e1b5b2cf2e86e85606ac3
mtd: spinand: Gather all the bus interface steps in one single function

Writing the quad enable bit in one helper and doing the chip
configuration in another does not make much sense from a bus interface
setup point of view.

Instead, let's create a broader helper which is going to be in charge of
all the bus configuration steps at once. This will specifically allow to
transition to octal DDR mode, and even fallback to quad (if suppoorted)
or single mode otherwise.

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