summaryrefslogtreecommitdiff
path: root/tools/binman/test/53_symbols.dts
diff options
context:
space:
mode:
authorKuan-Wei Chiu <[email protected]>2026-04-07 09:49:00 +0000
committerTom Rini <[email protected]>2026-04-22 11:07:55 -0600
commit70101c3217aec849d509040554ef0cf7c0f1ef56 (patch)
tree998e1ca58b719deba637de8393bbaa6e49107605 /tools/binman/test/53_symbols.dts
parent7fbed708d92879a8b199f5113d5e3c3db51c43d3 (diff)
virtio: mmio: Return error codes on probe failuresHEADmaster
Currently, virtio_mmio_probe() returns 0 when it encounters an invalid magic value, an unsupported version, or a dummy device (ID 0). In U-Boot's driver model, returning 0 indicates a successful probe. This causes the system to incorrectly register and activate invalid or placeholder devices, potentially leading to undefined behavior or crashes later on. Update the probe function to return appropriate error codes (-ENODEV for invalid magic values and dummy devices, and -ENXIO for unsupported versions). This fix correctly instructs the DM to abort the binding process. Fixes: fdc4aca89ecb ("virtio: Add virtio over mmio transport driver") Signed-off-by: Kuan-Wei Chiu <[email protected]> Acked-by: Daniel Palmer <[email protected]>
Diffstat (limited to 'tools/binman/test/53_symbols.dts')
0 files changed, 0 insertions, 0 deletions