]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: spinand: Give the bus interface to the configuration helper
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 9 Jan 2026 17:18:22 +0000 (18:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 29 Jan 2026 19:21:41 +0000 (20:21 +0100)
commit0a331a1851aedd670b95a2d16c6a82496137378d
tree35e3510df8919be81311e42bb76ef809c2797e6e
parent8e7face6013997f9f74c83187d50c9a0cce52553
mtd: spinand: Give the bus interface to the configuration helper

The chip configuration hook is the one responsible to actually switch
the switch between bus interfaces. It is natural to give it the bus
interface we expect with a new parameter. For now the only value we can
give is SSDR, but this is subject to change in the future, so add a bit
of extra logic in the implementations of this callback to make sure
both the core and the chip driver are aligned on the request.

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