From: Michal Suchanek Date: Tue, 27 Sep 2022 21:25:08 +0000 (+0200) Subject: dm: core: Add note about device_probe idempotence X-Git-Tag: v2025.01-rc5-pxa1908~1230^2~2 X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=aa5511e77b8bd8f943c66b6403896d06083b1d92;p=u-boot.git 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 --- 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