Skip to content
Commit 8fd1ce75 authored by Tristan Honscheid's avatar Tristan Honscheid Committed by Carles Cufí
Browse files

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: default avatarTristan Honscheid <honscheid@google.com>
parent 7fba7d39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment