From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH master] sandbox: dts: skip reboot mode without hostfile
Date: Mon, 3 Jul 2023 12:45:02 +0200 [thread overview]
Message-ID: <20230703104502.GL18491@pengutronix.de> (raw)
In-Reply-To: <20230703093655.2073607-1-a.fatoum@pengutronix.de>
On Mon, Jul 03, 2023 at 11:36:55AM +0200, Ahmad Fatoum wrote:
> The stickypage hostfile won't probe if the file is missing, yet because
> it's compatible to simple-mfd, its child nodes will be probed and fail
> their probe, because the hostfile itself was missing.
>
> Fix this by only probing hostfile children if the parent probe concludes
> successfully.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> arch/sandbox/board/hostfile.c | 2 +-
> arch/sandbox/dts/sandbox.dts | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks
Sascha
>
> diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
> index d3fe8bcb9036..ca21703544af 100644
> --- a/arch/sandbox/board/hostfile.c
> +++ b/arch/sandbox/board/hostfile.c
> @@ -184,7 +184,7 @@ static int hf_probe(struct device *dev)
> of_parse_partitions(cdev, np);
> of_partitions_register_fixup(cdev);
>
> - return 0;
> + return of_platform_populate(np, NULL, dev);
> }
>
> static __maybe_unused struct of_device_id hostfile_dt_ids[] = {
> diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts
> index 75c633c5909f..6a0ae77d65bd 100644
> --- a/arch/sandbox/dts/sandbox.dts
> +++ b/arch/sandbox/dts/sandbox.dts
> @@ -56,7 +56,7 @@ y {
> };
>
> stickypage: stickypage {
> - compatible = "barebox,hostfile", "syscon", "simple-mfd";
> + compatible = "barebox,hostfile", "syscon";
> barebox,filename = "$build/stickypage.bin";
> reg = <0 0 0 4096>;
> barebox,cdev; /* no caching allowed */
> --
> 2.39.2
>
>
>
--
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:[~2023-07-03 10:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-03 9:36 Ahmad Fatoum
2023-07-03 10:45 ` Sascha Hauer [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=20230703104502.GL18491@pengutronix.de \
--to=sha@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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