bootstd: use ARCH_DMA_MINALIGN in memalign() when allocating memory
PATCH 1/1 bootstd: use ARCH_DMA_MINALIGN in memalign() when allocating memory
Use ARCH_DMA_MINALIGN in memalign() when allocating memory to read the script from the media.
Note: this patch depends on the previous patch
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
Signed-off-by Tony Dinh <[email protected]>
---
boot/bootmeth_script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
boot/bootmeth_script.c +1 -1
@@ -99,7 +99,7 @@ static int script_read_bootflow_file(struct udevice *bootstd,if (!bflow->subdir)return log_msg_ret ("prefix" , -ENOMEM ); - ret =bootmeth_alloc_file (bflow,0x10000 ,1 ); + ret =bootmeth_alloc_file (bflow,0x10000 ,ARCH_DMA_MINALIGN );if (ret)return log_msg_ret ("read" , ret);
Signature · 1 line
2.39.2
Quoted 5 lines · Tony Dinh
Use
ARCH_DMA_MINALIGNinmemalign()when allocating memory to read the script from the media.
Quoted 8 lines
Note: this patch depends on the previous patch
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/Signed-off-by Tony Dinh <[email protected]>---
boot/bootmeth_script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
Quoted 17 lines
boot/bootmeth_script.c +1
-2@@ -99,7 +99,7 @@ static int script_read_bootflow_file(struct udevice *bootstd,if (!bflow->subdir)return log_msg_ret ("prefix" , -ENOMEM ); - ret =bootmeth_alloc_file (bflow,0x10000 ,1 ); + ret =bootmeth_alloc_file (bflow,0x10000 ,ARCH_DMA_MINALIGN );if (ret)return log_msg_ret ("read" , ret); --2.39.2
Quoted 9 lines · Tony Dinh
Use
ARCH_DMA_MINALIGNinmemalign()when allocating memory to read the script from the media.Note: this patch depends on the previous patch
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/Signed-off-by Tony Dinh <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom