spinand: call SPI setup_for_spinand if supported
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 7 Apr 2025 20:01:55 +0000 (22:01 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 17 Apr 2025 01:57:35 +0000 (19:57 -0600)
commit5ff602a3519b2efd9aa84b3bb364f782349e7fa2
tree83232859c9b853c82fa348c073e85a0e23906cbb
parentef45b9c395f92d9239d6c363b1f5a89f6a53f2e6
spinand: call SPI setup_for_spinand if supported

Call SPI setup_for_spinand() if supported and defined to configure the
SPI slave for the attached NAND. This is needed to configure the SPI
with the NAND page size and spare size for correct configuration of the
device.

Call it as soon as the NAND is detected to correctly handle SPI
controller with select_op_variant detection.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
drivers/mtd/nand/spi/core.c