From 501b4f27c5f8e114cc56762e30105112e86b885c Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 25 Jul 2026 13:47:01 +0200 Subject: kapi: fix driver probing Previously, a driver was only bound after probing was successful. However, if the probing itself relies (directly or indirectly) on the device having a bound driver, probing fails. This patchset introduces a new device state to mark that we are currently probing and thus the bound driver is not yet definitively bound to the device. This allows us to bind early, without violating the perceived device state. --- kapi/kapi/devices/device.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'kapi') diff --git a/kapi/kapi/devices/device.hpp b/kapi/kapi/devices/device.hpp index c8b32b8b..3f8a52d7 100644 --- a/kapi/kapi/devices/device.hpp +++ b/kapi/kapi/devices/device.hpp @@ -19,6 +19,7 @@ namespace kapi::devices { uninitialized, present, + probing, bound, failed, removed, -- cgit v1.2.3