aboutsummaryrefslogtreecommitdiff
path: root/kapi
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-07-25 13:47:01 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-07-25 13:47:01 +0200
commit501b4f27c5f8e114cc56762e30105112e86b885c (patch)
treeaad41040df57e2980e6275396d2f7f6aa557000e /kapi
parentb8e2f74374f7ab8dc82f923eb7333e4226cc5fdb (diff)
downloadkernel-501b4f27c5f8e114cc56762e30105112e86b885c.tar.xz
kernel-501b4f27c5f8e114cc56762e30105112e86b885c.zip
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.
Diffstat (limited to 'kapi')
-rw-r--r--kapi/kapi/devices/device.hpp1
1 files changed, 1 insertions, 0 deletions
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,