kernel/modules/other/mlxreg: add new package
[openwrt/openwrt.git] / package / boot / uboot-mediatek / patches / 250-fix-mmc-erase-timeout.patch
1 --- a/drivers/mmc/mmc_write.c
2 +++ b/drivers/mmc/mmc_write.c
3 @@ -80,7 +80,7 @@ ulong mmc_berase(struct blk_desc *block_
4 u32 start_rem, blkcnt_rem, erase_args = 0;
5 struct mmc *mmc = find_mmc_device(dev_num);
6 lbaint_t blk = 0, blk_r = 0;
7 - int timeout_ms = 1000;
8 + int timeout_ms = blkcnt;
9
10 if (!mmc)
11 return -1;