Skip to contentSkip to conversation

board: mpfs_icicle: fix pointer assignment in board_fdt_blob_setup()

PATCH In review Jamie Gibbons 3 participants 7 messages Sep 30, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: mpfs_icicle: fix pointer assignment in board_fdt_blob_setup()

Correct the assignment in board_fdt_blob_setup() to use *fdtp instead of fdtp, ensuring the caller receives the correct FDT address. This resolves an issue where the device tree pointer was not properly set due to assigning to the local parameter rather than the dereferenced pointer.

Fixes 63a8506580b6 ("board: mpfs_icicle: implement board_fdt_blob_setup()/board_fit_config_name_match()")
---
 board/microchip/mpfs_icicle/mpfs_icicle.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/microchip/mpfs_icicle/mpfs_icicle.c +2 -2
index 30c0d2fff8f..6e5dc66b463 100644
@@ -74,7 +74,7 @@ int board_fit_config_name_match(const char *name)
 
 int board_fdt_blob_setup(void **fdtp)
 {
-	fdtp = (void *)_end;
+	*fdtp = (void *)_end;
 
 	/*
 	 * The devicetree provided by the previous stage is very minimal due to
@@ -85,7 +85,7 @@ int board_fdt_blob_setup(void **fdtp)
 	 */
 	if (IS_ENABLED(CONFIG_OF_BOARD) && !IS_ENABLED(CONFIG_MULTI_DTB_FIT)) {
 		if (gd->arch.firmware_fdt_addr)
-			fdtp = (void *)(uintptr_t)gd->arch.firmware_fdt_addr;
+			*fdtp = (void *)(uintptr_t)gd->arch.firmware_fdt_addr;
 	}
 
 	return 0;
Signature · 1 line
2.43.0
#1 lore raw
Quoted 7 lines · Jamie Gibbons

Correct the assignment in board_fdt_blob_setup() to use *fdtp instead of fdtp, ensuring the caller receives the correct FDT address. This resolves an issue where the device tree pointer was not properly set due to assigning to the local parameter rather than the dereferenced pointer.

Fixes 63a8506580b6 ("board: mpfs_icicle: implement board_fdt_blob_setup()/board_fit_config_name_match()")

This commit is not in master nor next, where is it? I think this is something that can be folded in to another patch and that patch re-posted. Thanks.

Signature · 1 line
Tom
Reviewed-by
#2 lore raw
Quoted 8 lines · Tom Rini
Quoted 6 lines · Jamie Gibbons

Correct the assignment in board_fdt_blob_setup() to use *fdtp instead of fdtp, ensuring the caller receives the correct FDT address. This resolves an issue where the device tree pointer was not properly set due to assigning to the local parameter rather than the dereferenced pointer.

Quoted 5 lines
Quoted 1 line
Fixes 63a8506580b6 ("board: mpfs_icicle: implement board_fdt_blob_setup()/board_fit_config_name_match()")

This commit is not in master nor next, where is it? I think this is something that can be folded in to another patch and that patch re-posted. Thanks.

It should be:

Fixes 7c16ebba1ed ("board: mpfs_icicle: implement board_fdt_blob_setup()/board_fit_config_name_match()")

and the patch is

#3 lore raw
Quoted 11 lines · On Tue, Sep 30, 2025 at 03:51:02PM +0000, [email protected] wrote:
Quoted 10 lines · Tom Rini
Quoted 7 lines · Jamie Gibbons

Correct the assignment in board_fdt_blob_setup() to use *fdtp instead of fdtp, ensuring the caller receives the correct FDT address. This resolves an issue where the device tree pointer was not properly set due to assigning to the local parameter rather than the dereferenced pointer.

Fixes 63a8506580b6 ("board: mpfs_icicle: implement board_fdt_blob_setup()/board_fit_config_name_match()")
Quoted 8 lines
Quoted 3 lines

This commit is not in master nor next, where is it? I think this is something that can be folded in to another patch and that patch re-posted. Thanks.

It should be:

Fixes 7c16ebba1ed ("board: mpfs_icicle: implement board_fdt_blob_setup()/board_fit_config_name_match()")

and the patch is

Ah. And that is in master, so this should be for v2025.10 then?

Signature · 1 line
Tom
#4 lore raw
Quoted 16 lines · Tom Rini
Quoted 15 lines · On Tue, Sep 30, 2025 at 03:51:02PM +0000, [email protected] wrote:
Quoted 13 lines · Tom Rini
Quoted 7 lines · Jamie Gibbons

Correct the assignment in board_fdt_blob_setup() to use *fdtp instead of fdtp, ensuring the caller receives the correct FDT address. This resolves an issue where the device tree pointer was not properly set due to assigning to the local parameter rather than the dereferenced pointer.

Fixes 63a8506580b6 ("board: mpfs_icicle: implement board_fdt_blob_setup()/board_fit_config_name_match()")

This commit is not in master nor next, where is it? I think this is something that can be folded in to another patch and that patch re-posted. Thanks.

Quoted 7 lines
Quoted 4 lines

It should be:

Fixes 7c16ebba1ed ("board: mpfs_icicle: implement board_fdt_blob_setup()/board_fit_config_name_match()")

and the patch is

Ah. And that is in master, so this should be for v2025.10 then?

Yeah, I would say so. It's not working correctly at the moment, it's not just a theoretical problem.

#5 lore raw
Quoted 22 lines · On Tue, Sep 30, 2025 at 04:03:29PM +0000, [email protected] wrote:
Quoted 21 lines · Tom Rini
Quoted 19 lines · On Tue, Sep 30, 2025 at 03:51:02PM +0000, [email protected] wrote:
Quoted 8 lines · Tom Rini
Quoted 6 lines · Jamie Gibbons

Correct the assignment in board_fdt_blob_setup() to use *fdtp instead of fdtp, ensuring the caller receives the correct FDT address. This resolves an issue where the device tree pointer was not properly set due to assigning to the local parameter rather than the dereferenced pointer.

Quoted 5 lines
Quoted 1 line
Fixes 63a8506580b6 ("board: mpfs_icicle: implement board_fdt_blob_setup()/board_fit_config_name_match()")

This commit is not in master nor next, where is it? I think this is something that can be folded in to another patch and that patch re-posted. Thanks.

It should be:

Fixes 7c16ebba1ed ("board: mpfs_icicle: implement board_fdt_blob_setup()/board_fit_config_name_match()")

and the patch is

Quoted 5 lines
Quoted 2 lines

Ah. And that is in master, so this should be for v2025.10 then?

Yeah, I would say so. It's not working correctly at the moment, it's not just a theoretical problem.

I'll edit to have just the correct fixes tag when applying then, thanks.

Signature · 1 line
Tom
#6 lore raw
In reply to Jamie Gibbons
Quoted 8 lines · Jamie Gibbons

Correct the assignment in board_fdt_blob_setup() to use *fdtp instead of fdtp, ensuring the caller receives the correct FDT address. This resolves an issue where the device tree pointer was not properly set due to assigning to the local parameter rather than the dereferenced pointer.

[...]

Applied to u-boot/master, thanks!

[1/1] board: mpfs_icicle: fix pointer assignment in board_fdt_blob_setup()

      commit: 8dee93cfc50992990ea6f1871b128d464929e1f5
Signature · 1 line
Tom