diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-07-03 11:36:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-07-03 12:44:51 +0200 |
commit | 3c1444e866b14dc5aee9d9e6f14c3162b38f5ff5 (patch) | |
tree | 0594f744b5969a8f1d01aff4de59458a58f040de /arch/sandbox | |
parent | edf7d02b236602d56cf806e4dbddec94923057d0 (diff) | |
download | barebox-3c1444e866b14dc5aee9d9e6f14c3162b38f5ff5.tar.gz barebox-3c1444e866b14dc5aee9d9e6f14c3162b38f5ff5.tar.xz |
sandbox: dts: skip reboot mode without hostfile
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>
Link: https://lore.barebox.org/20230703093655.2073607-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/board/hostfile.c | 2 | ||||
-rw-r--r-- | arch/sandbox/dts/sandbox.dts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index d3fe8bcb90..ca21703544 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 75c633c590..6a0ae77d65 100644 --- a/arch/sandbox/dts/sandbox.dts +++ b/arch/sandbox/dts/sandbox.dts @@ -56,7 +56,7 @@ }; 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 */ |