summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2026-08-01 22:12:19 +0800
committerRbb666 <[email protected]>2026-08-03 09:36:21 +0800
commitfe751c152101fc88ad887b06d91e2d96aafc2883 (patch)
tree4875a09c6c20a5c71fee12ff89c8d5ac7f51f7ea /components/drivers/include
parent2b01936f113fe050d8eca5d9e5e8c4fc724889b7 (diff)
[dm][core] Add rt_bus_probe_device API
Add rt_bus_probe_device() to retry driver matching for a registered but unbound device. Use it when an OFW-created platform device is requested again, while preserving native-bus ownership for I2C, SPI, and other non-platform devices. Also instantiate eligible child platform devices after a parent node is registered. Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/core/bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/core/bus.h b/components/drivers/include/drivers/core/bus.h
index ab821240bb..bef8421eaf 100644
--- a/components/drivers/include/drivers/core/bus.h
+++ b/components/drivers/include/drivers/core/bus.h
@@ -41,6 +41,7 @@ rt_err_t rt_bus_for_each_drv(rt_bus_t bus, void *data, int (*fn)(rt_driver_t drv
rt_err_t rt_bus_add_driver(rt_bus_t bus, rt_driver_t drv);
rt_err_t rt_bus_add_device(rt_bus_t bus, rt_device_t dev);
+rt_err_t rt_bus_probe_device(rt_device_t dev);
rt_err_t rt_bus_remove_driver(rt_driver_t drv);
rt_err_t rt_bus_remove_device(rt_device_t dev);