]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Add DM_FLAG_PROBE_AFTER_BIND flag
authorMarek Vasut <marex@denx.de>
Fri, 22 Apr 2022 13:15:53 +0000 (15:15 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 28 Apr 2022 13:26:43 +0000 (09:26 -0400)
commit6bdba91d202805696b1724bbc2a9b74a690e5ab5
tree8b63349bf905b4b66764235a1361a79f3c2a2b20
parent30d0ab1b8c117e73fc21ac289b2cb2796a7d66be
dm: core: Add DM_FLAG_PROBE_AFTER_BIND flag

Introduce DM_FLAG_PROBE_AFTER_BIND flag, which can be set by driver or
uclass in .bind(), to indicate such driver instance should be probe()d
once binding of all devices is complete.

This is useful in case the driver determines that hardware initialization
is mandatory on boot, and such initialization happens only in probe().
This also solves the inability to call device_probe() from .bind().

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Sean Anderson <seanga2@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Steven Lawrance <steven.lawrance@softathome.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/core/root.c
include/dm/device.h