Deep probe allows barebox to probe devices on demand without having to
retry probes due to -EPROBE_DEFER. Most i.MX8M boards in barebox make
use of it, so let's enable it here as well.

Signed-off-by: Jonas Rebmann <j...@pengutronix.de>
---
 arch/arm/boards/protonic-imx8m/board.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/boards/protonic-imx8m/board.c 
b/arch/arm/boards/protonic-imx8m/board.c
index d4bacbc6f0..0f96c3d9c5 100644
--- a/arch/arm/boards/protonic-imx8m/board.c
+++ b/arch/arm/boards/protonic-imx8m/board.c
@@ -16,6 +16,8 @@ static int prt_prt8mm_init_power(void)
        int ret;
        char buf[2];
 
+       of_device_ensure_probed_by_alias("i2c1");
+
        client.addr = 0x60;
        adapter = i2c_get_adapter(1);
        if (!adapter) {
@@ -76,6 +78,7 @@ static const struct of_device_id prt_imx8mm_of_match[] = {
        { /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, prt_imx8mm_of_match);
+BAREBOX_DEEP_PROBE_ENABLE(prt_imx8mm_of_match);
 
 static struct driver prt_prt8mm_board_driver = {
        .name = "board-protonic-imx8mm",

-- 
2.51.0.178.g2462961280


Reply via email to