aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorTony Dinh <mibodhi@gmail.com>2023-09-19 14:27:21 -0700
committerTom Rini <trini@konsulko.com>2023-10-09 15:24:31 -0400
commitdeb746e0f6a22696e5c752e56755436e7e39d028 (patch)
tree8790233b89798ee52f1a0d8104acc27c6654d486 /boot
parentce743f168a31526508a06280e2c6b9c531a0360c (diff)
downloadu-boot-deb746e0f6a22696e5c752e56755436e7e39d028.zip
u-boot-deb746e0f6a22696e5c752e56755436e7e39d028.tar.gz
u-boot-deb746e0f6a22696e5c752e56755436e7e39d028.tar.bz2
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. Ref: https://lore.kernel.org/u-boot/CAJaLiFy05F3Cr4X4G2mVkppXnBEFZrHQ+5CngYN8eJPg8ENWkg@mail.gmail.com/T/#m26daadc2463fe653b814a94e6309e5e6bb6be1d1 Note: this patch depends on the previous patch https://patchwork.ozlabs.org/project/uboot/patch/20230917230649.30357-1-mibodhi@gmail.com/ Signed-off-by: Tony Dinh <mibodhi@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot')
-rw-r--r--boot/bootmeth_script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/bootmeth_script.c b/boot/bootmeth_script.c
index 58c57a2..345114d 100644
--- a/boot/bootmeth_script.c
+++ b/boot/bootmeth_script.c
@@ -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);