mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jonas Rebmann <jre@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
	 BAREBOX <barebox@lists.infradead.org>
Cc: Jonas Rebmann <jre@pengutronix.de>
Subject: [PATCH 1/2] ARM: i.MX8M: protonic-imx8m: enable deep probe
Date: Thu, 18 Sep 2025 17:03:34 +0200	[thread overview]
Message-ID: <20250918-prt8ml-v1-1-3fd826e0807d@pengutronix.de> (raw)
In-Reply-To: <20250918-prt8ml-v1-0-3fd826e0807d@pengutronix.de>

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 <jre@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	other threads:[~2025-09-18 15:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-18 15:03 [PATCH 0/2] Extend protonic prt8m to support prt8ml Jonas Rebmann
2025-09-18 15:03 ` Jonas Rebmann [this message]
2025-09-18 15:03 ` [PATCH 2/2] ARM: boards: Add support for PRT8ML Jonas Rebmann
2025-09-22  7:35   ` Ahmad Fatoum
2025-09-22  6:31 ` [PATCH 0/2] Extend protonic prt8m to support prt8ml Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250918-prt8ml-v1-1-3fd826e0807d@pengutronix.de \
    --to=jre@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox