[PATCH] virtio: mmio: Return error codes on probe failures

Tom Rini trini at konsulko.com
Wed Apr 22 21:51:21 CEST 2026


On Tue, 07 Apr 2026 09:49:00 +0000, Kuan-Wei Chiu wrote:

> 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.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] virtio: mmio: Return error codes on probe failures
      commit: 70101c3217aec849d509040554ef0cf7c0f1ef56
-- 
Tom




More information about the U-Boot mailing list