zephyr/drivers/spi
Tristan Honscheid 8fd1ce7579 emul: Only add enabled DT nodes to bus emulators
The eSPI, I2C, and SPI emulators use devicetree macros to build an array
of devices on the virtual bus. Currently, they will add device nodes that
are not status-okay. This leads to linker errors because the respective
device drivers would not have instantiated device structs for these
nodes --assuming the driver was even compiled. This can be frustrating
if nodes need to be disabled for debugging or configuration purposes.

Update the bus emulators to only consider status-okay nodes by changing
the macros used to iterate over bus devices.

Signed-off-by: Tristan Honscheid <honscheid@google.com>
2023-07-12 09:25:18 +02:00
..
CMakeLists.txt
Kconfig
Kconfig.andes_atcspi200
Kconfig.b91
Kconfig.bitbang
Kconfig.cc13xx_cc26xx
Kconfig.dw
Kconfig.esp32
Kconfig.gd32
Kconfig.gecko
Kconfig.litex
Kconfig.mchp_mss_qspi
Kconfig.mcux_dspi
Kconfig.mcux_flexcomm
Kconfig.mcux_lpspi
Kconfig.npcx_fiu
Kconfig.nrfx
Kconfig.nxp_s32
Kconfig.oc_simple
Kconfig.opentitan
Kconfig.pl022
Kconfig.psoc6
Kconfig.pw
Kconfig.rv32m1_lpspi
Kconfig.sam
Kconfig.sam0
Kconfig.sifive
Kconfig.smartbond
Kconfig.spi_emul
Kconfig.stm32
Kconfig.test
Kconfig.xec_qmspi
Kconfig.xlnx
Kconfig.xmc4xxx
spi_andes_atcspi200.c
spi_andes_atcspi200.h
spi_b91.c
spi_bitbang.c
spi_cc13xx_cc26xx.c
spi_context.h
spi_dw_regs.h
spi_dw.c
spi_dw.h
spi_emul.c
spi_esp32_spim.c
spi_esp32_spim.h
spi_gd32.c
spi_gecko.c
spi_handlers.c
spi_litespi.c
spi_litespi.h
spi_ll_stm32.c
spi_ll_stm32.h
spi_mchp_mss_qspi.c
spi_mcux_dspi.c
spi_mcux_flexcomm.c
spi_mcux_lpspi.c
spi_npcx_fiu.c
spi_nrfx_spi.c
spi_nrfx_spim.c
spi_nrfx_spis.c
spi_nxp_s32.c
spi_nxp_s32.h
spi_oc_simple.c
spi_oc_simple.h
spi_opentitan.c
spi_pl022.c
spi_psoc6.c
spi_pw.c
spi_pw.h
spi_rtio.c
spi_rv32m1_lpspi.c
spi_sam.c
spi_sam0.c
spi_sifive.c
spi_sifive.h
spi_signal.c
spi_smartbond.c
spi_test.c
spi_xec_qmspi_ldma.c
spi_xec_qmspi.c
spi_xlnx_axi_quadspi.c
spi_xmc4xxx.c