summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2022-09-28 00:25:08 +0300
committerSimon Glass <sjg@chromium.org>2022-10-29 16:36:33 +0300
commitaa5511e77b8bd8f943c66b6403896d06083b1d92 (patch)
tree6ec1e2e6ec8391d6fbf43479769ed589ea749f0f /include
parent73f8fbc532c3546dd4bf6f267e530a82f04703fa (diff)
downloadu-boot-aa5511e77b8bd8f943c66b6403896d06083b1d92.tar.xz
dm: core: Add note about device_probe idempotence
device_probe returns early when the device is already activated. Add a note to the documentation that it can be used on already activated devices. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/dm/device-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dm/device-internal.h b/include/dm/device-internal.h
index 94844d30d8..f31c470208 100644
--- a/include/dm/device-internal.h
+++ b/include/dm/device-internal.h
@@ -184,8 +184,8 @@ int device_of_to_plat(struct udevice *dev);
/**
* device_probe() - Probe a device, activating it
*
- * Activate a device so that it is ready for use. All its parents are probed
- * first.
+ * Activate a device (if not yet activated) so that it is ready for use.
+ * All its parents are probed first.
*
* @dev: Pointer to device to probe
* Return: 0 if OK, -ve on error