mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-20 13:18:38 +00:00
Patch to support cheap / slow mmc card during kernel loading
This commit is contained in:
parent
320d6bfe2b
commit
e84cc68218
1 changed files with 12 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
diff -Nur a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
|
||||
--- a/drivers/mmc/sunxi_mmc.c 2016-02-25 10:30:30.000000000 +0800
|
||||
+++ b//drivers/mmc/sunxi_mmc.c 2016-02-25 10:46:07.723851155 +0800
|
||||
|
||||
@@ -269,6 +269,6 @@
|
||||
unsigned i;
|
||||
unsigned *buff = (unsigned int *)(reading ? data->dest : data->src);
|
||||
unsigned byte_cnt = data->blocksize * data->blocks;
|
||||
- unsigned timeout_msecs = byte_cnt >> 8;
|
||||
+ unsigned timeout_msecs = byte_cnt >> 6;
|
||||
if (timeout_msecs < 2000)
|
||||
timeout_msecs = 2000;
|
Loading…
Add table
Add a link
Reference in a new issue