From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Fabian Pfitzner <f.pfitzner@pengutronix.de>, barebox@lists.infradead.org
Subject: Re: [PATCH] ARM: karo-tx6: enable deep-probe
Date: Tue, 11 Nov 2025 13:12:26 +0100 [thread overview]
Message-ID: <4b544666-9d5d-42b2-b542-90250e1145cf@pengutronix.de> (raw)
In-Reply-To: <20251111114915.1289377-2-f.pfitzner@pengutronix.de>
Hi,
On 11/11/25 12:49 PM, Fabian Pfitzner wrote:
Please write commit messages, e.g.,
We have two baseboards using this SoM mainline sharing the same board
code that is not yet deep probe compatible, because they expect i2c0 to
be available at device_initcall level.
Make the board code deep probe compatible and enable deep probe for all
boards using this SoM. Out-of-tree board code will need to adapt
accordingly, so note that in the migration guide.
> Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
> ---
> Documentation/migration-guides/migration-2025.11.0.rst | 4 ++++
> arch/arm/boards/karo-tx6x/board.c | 2 ++
> arch/arm/dts/imx6dl-tx6u.dts | 2 +-
> arch/arm/dts/imx6q-tx6q.dts | 2 +-
> 4 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/migration-guides/migration-2025.11.0.rst b/Documentation/migration-guides/migration-2025.11.0.rst
> index a9c7abb66e..fa8140f615 100644
> --- a/Documentation/migration-guides/migration-2025.11.0.rst
> +++ b/Documentation/migration-guides/migration-2025.11.0.rst
> @@ -18,3 +18,7 @@ Karo TX6X
> The barebox update handler for this SoM no longer unconditionally updates
> /dev/mmc3.boot0, but instead it now updates the inactive boot partition
> on /dev/mmc3 and then sets it as active allowing for power-fail safety.
> +
> +Deep probe has been enabled for this board. Out-of-tree board code for these
> +SoMs must either ensure devices are available as the in-tree code does or they
> +should add ``barebox,disable-deep-probe`` to their top level device tree node.
This will probably not be part of v2025.11.0, can you add this (with a
heading) to Documentation/migration-guides/migration-master.rst instead?
It will then land in the appropriate release.
Thanks,
Ahmad
> diff --git a/arch/arm/boards/karo-tx6x/board.c b/arch/arm/boards/karo-tx6x/board.c
> index 43e23f00cd..1924660c11 100644
> --- a/arch/arm/boards/karo-tx6x/board.c
> +++ b/arch/arm/boards/karo-tx6x/board.c
> @@ -54,6 +54,8 @@ static int setup_pmic_voltages(void)
> int bus = 0;
> uint8_t reg;
>
> + of_device_ensure_probed_by_alias("i2c0");
> +
> adapter = i2c_get_adapter(bus);
> if (!adapter) {
> pr_err("i2c bus %d not found\n", bus);
> diff --git a/arch/arm/dts/imx6dl-tx6u.dts b/arch/arm/dts/imx6dl-tx6u.dts
> index 1055de9d80..c23673d729 100644
> --- a/arch/arm/dts/imx6dl-tx6u.dts
> +++ b/arch/arm/dts/imx6dl-tx6u.dts
> @@ -8,6 +8,6 @@
> / {
> model = "Ka-Ro electronics TX6U-801x Module";
> compatible = "karo,imx6dl-tx6dl", "fsl,imx6dl";
> - barebox,disable-deep-probe;
> + barebox,deep-probe;
> };
>
> diff --git a/arch/arm/dts/imx6q-tx6q.dts b/arch/arm/dts/imx6q-tx6q.dts
> index c2aacfc415..daf9549ea5 100644
> --- a/arch/arm/dts/imx6q-tx6q.dts
> +++ b/arch/arm/dts/imx6q-tx6q.dts
> @@ -8,6 +8,6 @@
> / {
> model = "Ka-Ro electronics TX6Q Module";
> compatible = "karo,imx6q-tx6q", "fsl,imx6q";
> - barebox,disable-deep-probe;
> + barebox,deep-probe;
> };
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2025-11-11 12:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-11 11:49 Fabian Pfitzner
2025-11-11 12:12 ` Ahmad Fatoum [this message]
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=4b544666-9d5d-42b2-b542-90250e1145cf@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=f.pfitzner@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