spi: Build coverage cleanups and improvements

Merge series from Mark Brown <broonie@kernel.org>:

This series opens up build coverage of a bunch of SPI drivers by
allowing build under COMPILE_TEST where possible, while also adding
appropriate architecture specific dependencies to a couple of drivers
that didn't have them so they don't show up in builds when they're not
useful.  We also have one fix for the dependencies of the s3c24xx driver
which was turned up in the process of doing this.
This commit is contained in:
Mark Brown 2023-03-06 13:30:34 +00:00
commit 1ef5decf69
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -276,7 +276,7 @@ config SPI_COLDFIRE_QSPI
config SPI_DAVINCI
tristate "Texas Instruments DaVinci/DA8x/OMAP-L/AM1x SoC SPI controller"
depends on ARCH_DAVINCI || ARCH_KEYSTONE
depends on ARCH_DAVINCI || ARCH_KEYSTONE || COMPILE_TEST
select SPI_BITBANG
help
SPI master controller for DaVinci/DA8x/OMAP-L/AM1x SPI modules.
@ -357,7 +357,7 @@ config SPI_FALCON
config SPI_FSI
tristate "FSI SPI driver"
depends on FSI
depends on FSI || COMPILE_TEST
help
This enables support for the driver for FSI bus attached SPI
controllers.
@ -406,7 +406,8 @@ config SPI_HISI_SFC_V3XX
config SPI_NXP_FLEXSPI
tristate "NXP Flex SPI controller"
depends on ARCH_LAYERSCAPE || HAS_IOMEM
depends on ARCH_LAYERSCAPE || COMPILE_TEST
depends on HAS_IOMEM
help
This enables support for the Flex SPI controller in master mode.
Up to four slave devices can be connected on two buses with two
@ -777,6 +778,7 @@ config SPI_PXA2XX_PCI
config SPI_ROCKCHIP
tristate "Rockchip SPI controller driver"
depends on ARCH_ROCKCHIP || COMPILE_TEST
help
This selects a driver for Rockchip SPI controller.
@ -818,7 +820,7 @@ config SPI_RSPI
config SPI_QCOM_QSPI
tristate "QTI QSPI controller"
depends on ARCH_QCOM
depends on ARCH_QCOM || COMPILE_TEST
help
QSPI(Quad SPI) driver for Qualcomm QSPI controller.