aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-mediatek/patches/250-fix-mmc-erase-timeout.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/boot/uboot-mediatek/patches/250-fix-mmc-erase-timeout.patch')
-rw-r--r--package/boot/uboot-mediatek/patches/250-fix-mmc-erase-timeout.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/boot/uboot-mediatek/patches/250-fix-mmc-erase-timeout.patch b/package/boot/uboot-mediatek/patches/250-fix-mmc-erase-timeout.patch
new file mode 100644
index 00000000000..fd5fdd814b8
--- /dev/null
+++ b/package/boot/uboot-mediatek/patches/250-fix-mmc-erase-timeout.patch
@@ -0,0 +1,11 @@
+--- a/drivers/mmc/mmc_write.c
++++ b/drivers/mmc/mmc_write.c
+@@ -80,7 +80,7 @@ ulong mmc_berase(struct blk_desc *block_
+ u32 start_rem, blkcnt_rem, erase_args = 0;
+ struct mmc *mmc = find_mmc_device(dev_num);
+ lbaint_t blk = 0, blk_r = 0;
+- int timeout_ms = 1000;
++ int timeout_ms = blkcnt;
+
+ if (!mmc)
+ return -1;