diff options
author | Xingyu Wu <xingyu.wu@starfivetech.com> | 2023-09-06 12:01:51 +0300 |
---|---|---|
committer | Xingyu Wu <xingyu.wu@starfivetech.com> | 2023-09-07 04:34:13 +0300 |
commit | 706fab8ccb290393c721c1f7e4e26bc0fa9e8d57 (patch) | |
tree | 4e50ff45e9fc99725296828de2d89af23b355b65 /drivers/fastboot/fb_mmc.c | |
parent | 92543ed1f3dc9ec0f70767115170719e93f2833f (diff) | |
download | u-boot-706fab8ccb290393c721c1f7e4e26bc0fa9e8d57.tar.xz |
drivers: fastboot: Fix the error of writing sparse file with fastboot
Add config for max block size to write in MMC with sparse file.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Diffstat (limited to 'drivers/fastboot/fb_mmc.c')
-rw-r--r-- | drivers/fastboot/fb_mmc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/fastboot/fb_mmc.c b/drivers/fastboot/fb_mmc.c index d645ab4d86..ef51a5ed67 100644 --- a/drivers/fastboot/fb_mmc.c +++ b/drivers/fastboot/fb_mmc.c @@ -20,7 +20,11 @@ #include <linux/compat.h> #include <android_image.h> +#ifdef CONFIG_FASTBOOT_STARFIVE_MAX_BLK_WRITE +#define FASTBOOT_MAX_BLK_WRITE CONFIG_FASTBOOT_STARFIVE_MAX_BLK_WRITE /* = 8192 */ +#else #define FASTBOOT_MAX_BLK_WRITE 16384 +#endif #define BOOT_PARTITION_NAME "boot" |