summaryrefslogtreecommitdiff
path: root/include/dm/root.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-01-14 11:43:01 -0600
committerTom Rini <trini@konsulko.com>2025-01-14 11:43:01 -0600
commite17be5a07ad6947c13c39936be812a65e694ecee (patch)
tree92f8addda6ee3a888101a736c1fb7c5e5d5f719c /include/dm/root.h
parent4eb937058ffd9d413929f566246eb684efe8eab5 (diff)
parent6995f2c8be901b5f3f4183ccc4a58c209e8bce52 (diff)
Merge patch series "Adjust how autoprobe is implemented"
Simon Glass <sjg@chromium.org> says: This little series makes a minor change to how autoprobe is implemented, as discussed on the list. Link: https://lore.kernel.org/r/20240626235717.272219-1-marex@denx.de Link: https://lore.kernel.org/r/20241120153642.861633-1-sjg@chromium.org
Diffstat (limited to 'include/dm/root.h')
-rw-r--r--include/dm/root.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/dm/root.h b/include/dm/root.h
index 5651b868c8b..286bd9a2ddd 100644
--- a/include/dm/root.h
+++ b/include/dm/root.h
@@ -137,6 +137,21 @@ int dm_scan_other(bool pre_reloc_only);
int dm_init_and_scan(bool pre_reloc_only);
/**
+ * dm_autoprobe() - Probe devices which are marked for probe-after-bind
+ *
+ * This probes all devices with a DM_FLAG_PROBE_AFTER_BIND flag. It checks the
+ * entire tree, so parent nodes need not have the flag set.
+ *
+ * It recursively probes parent nodes, so they do not need to have the flag
+ * set themselves. Since parents are always probed before children, if a child
+ * has the flag set, then its parent (and any devices up the chain to the root
+ * device) will be probed too.
+ *
+ * Return: 0 if OK, -ve on error
+ */
+int dm_autoprobe(void);
+
+/**
* dm_init() - Initialise Driver Model structures
*
* This function will initialize roots of driver tree and class tree.