zephyr/drivers/spi
Ulf Magnusson d930c21e12 drivers: spi: Fix SPI_2_NRF_SPIS-related dependency loop
The following dependency loop existed:

  config SPI_SLAVE
  	bool

  (Defined at drivers/spi/Kconfig:27)

  ...is selected by...

  config SPI_2_NRF_SPIS
  	bool
  	select SPI_SLAVE

  (Defined at drivers/spi/Kconfig.nrfx:210)

  ...is in the choice...

  choice
  	bool
  	depends on SPI_2

  (Defined at drivers/spi/Kconfig.nrfx:192)

  ...that depends on...

  config SPI_2
  	bool
  	depends on SPI_SLAVE

  (Defined at
  arch/x86/soc/intel_quark/quark_se/Kconfig.defconfig.series)

  ...that again depends on SPI_SLAVE

(This might not be a problem in practice, but it'd be difficult to
detect.)

I think the underlying issue is that SPI_2_NRF_SPIS 'select's SPI_SLAVE,
while SPI_2 'depends on' it.

Fix it by having SPI_2_NRF_SPIS 'depend on' SPI_SLAVE as well. This will
require SPI_SLAVE to be explicitly enabled before SPI_2_NRF_SPIS can be
enabled.

No configuration files in Zephyr itself seem to currently enable
SPI_2_NRF_SPIS (and it defaults to n), so no tweaks should be needed
there.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-06-20 15:53:38 -04:00
..
CMakeLists.txt drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver files. 2018-05-15 17:48:18 +03:00
Kconfig spi: Fix missing "depends on !HAS_DTS_SPI" 2018-05-10 15:43:42 -05:00
Kconfig.dw drivers/spi: Enable port 3 and 4 on DW driver 2018-04-04 19:02:35 +02:00
Kconfig.mcux_dspi spi: Refactor mcux dspi shim driver to use clock control interface 2018-05-10 15:43:42 -05:00
Kconfig.nrfx drivers: spi: Fix SPI_2_NRF_SPIS-related dependency loop 2018-06-20 15:53:38 -04:00
Kconfig.sam0 spi: sam0: use Device Tree for configuration. 2018-03-10 11:42:25 -06:00
Kconfig.stm32 drivers/spi: Cleanup the Kconfig files 2018-04-04 19:02:35 +02:00
spi_context.h drivers/spi: Slave async calls require recv frames as successful status 2018-04-13 16:02:03 +02:00
spi_dw.c drivers/spi: Handle the case when tx buf/len is NULL/>0 in DW driver 2018-05-29 16:21:08 -04:00
spi_dw.h drivers/spi: Fix tmod update on DW driver 2018-04-05 12:04:56 +03:00
spi_dw_quark_se_ss_regs.h drivers/spi: Fix typo on parameters type in DW arc regs definitions 2018-04-04 19:02:35 +02:00
spi_dw_regs.h drivers/spi: Add slave mode support to the DesignWare driver 2018-04-04 19:02:35 +02:00
spi_handlers.c spi_handlers: fix some build issues 2018-05-17 23:34:03 +03:00
spi_intel.c drivers/spi: Switch Intel driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_intel.h drivers/spi: Switch Intel driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_intel_regs.h drivers/spi: Switch Intel driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_ll_stm32.c spi: spi_ll_stm32: (fix) Clear OVR bit condition 2018-06-04 12:35:52 -05:00
spi_ll_stm32.h spi: add SPI driver for STM32 family 2017-07-01 08:36:51 -04:00
spi_mcux_dspi.c spi: Refactor mcux dspi shim driver to use clock control interface 2018-05-10 15:43:42 -05:00
spi_nrfx_spi.c drivers: spi: Correct a typo in spi_nrfx_spi.c 2018-04-13 10:26:28 +02:00
spi_nrfx_spim.c drivers: spi: Add shim for nrfx SPIM driver 2018-04-12 14:19:53 -04:00
spi_nrfx_spis.c drivers: spi: Add shim for nrfx SPIS driver 2018-04-13 17:04:16 +02:00
spi_sam0.c spi: Remove SPI legacy API 2018-04-04 19:02:35 +02:00