This series suggests to isolate stacked/parallel support from spi-nor-core by moving that to SPI controllers and new modules under mtd/spi.
The patchset mainly focuses on removing references to stacked/parallel related items from core. The stacked/parallel support logic itself may have rooms to improve. Rework or further cleanup in stacked/parallel support would be done by other patches after this series is applied. Signed-off-by: Takahiro Kuwano <[email protected]> --- Takahiro Kuwano (11): spi: zynqmp-gqspi: Set priv->is_parallel in child_pre_probe() spi: zynqmp_gqspi: Remove reference to SPI_XFER_LOWER flag. spi: zynqmp_gqspi: Read two bytes of SR and FSR in parallel mode spi: zynq-qspi: Set priv->is_parallel/stacked in child_pre_probe() spi: zynq_qspi: Remove reference to SPI_XFER_LOWER flag. spi: zynq_qspi: Read two bytes of SR and FSR in parallel mode mtd: spi-nor: Migrate stacked/parallel part to new modules mtd: spi-nor: stacked: Cleanup stacked/parallel flags mtd: spi-nor: parallel: Cleanup stacked/parallel flags mtd: spi-nor: Revert stacked/parallel related commits mtd: spi-nor: Call stacked/parallel post init fixups drivers/mtd/spi/Makefile | 4 + drivers/mtd/spi/parallel.c | 412 ++++++++++++++++++++++++++++++++++++++++ drivers/mtd/spi/sf_internal.h | 18 ++ drivers/mtd/spi/spi-nor-core.c | 422 +++++++---------------------------------- drivers/mtd/spi/stacked.c | 389 +++++++++++++++++++++++++++++++++++++ drivers/spi/zynq_qspi.c | 47 +++-- drivers/spi/zynqmp_gqspi.c | 55 ++++-- include/linux/mtd/spi-nor.h | 10 - include/spi.h | 2 - 9 files changed, 973 insertions(+), 386 deletions(-) --- base-commit: e2d51f8db207f7db70dd8104fa1da2cffda419f2 change-id: 20251118-amd-cleanup-c8023872e3cf Best regards, -- Takahiro Kuwano <[email protected]>

