8fd1ce7579
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> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
espi_emul.c | ||
espi_handlers.c | ||
espi_it8xxx2.c | ||
espi_mchp_xec.c | ||
espi_mchp_xec_host_v2.c | ||
espi_mchp_xec_v2.c | ||
espi_mchp_xec_v2.h | ||
espi_npcx.c | ||
espi_saf_mchp_xec.c | ||
espi_saf_mchp_xec_v2.c | ||
espi_utils.h | ||
host_subs_npcx.c | ||
Kconfig | ||
Kconfig.espi_emul | ||
Kconfig.it8xxx2 | ||
Kconfig.npcx | ||
Kconfig.xec |