]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: gadget: f_sdp: Add missing spl_board_prepare_for_boot() call
authorMarek Vasut <marex@denx.de>
Tue, 7 Mar 2023 07:42:33 +0000 (08:42 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 3 Apr 2023 22:34:42 +0000 (00:34 +0200)
The spl_board_prepare_for_boot() should be called before jump_to_image_no_args()
to perform board-specific deinitialization before jumping to the next stage.
This board-specific deinitialization can be very much anything, e.g. disable
dcache in case it was enabled, or such.

Add the missing spl_board_prepare_for_boot() call into f_sdp .

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/usb/gadget/f_sdp.c

index 9ea43f29cfbcf8b32c6d3f790cf4b5825c822ca3..4da5a160a098933a581897c5a2dc6c60ea0d9a98 100644 (file)
@@ -865,6 +865,7 @@ static int sdp_handle_in_ep(struct spl_image_info *spl_image,
                        struct spl_image_info spl_image = {};
                        struct spl_boot_device bootdev = {};
                        spl_parse_image_header(&spl_image, &bootdev, header);
+                       spl_board_prepare_for_boot();
                        jump_to_image_no_args(&spl_image);
 #else
                        /* In U-Boot, allow jumps to scripts */