Skip to content
Commit 28f69b9a authored by Yousong Zhou's avatar Yousong Zhou Committed by Hans de Goede
Browse files

sunxi: mmc: set transfer timeout according to byte_cnt.



Originally a timeout value of 2 seconds was used regardless of the size
of data to be transfered.  This prevented slow devices from working
correctly while there was no much gain for faster devices, e.g. it takes
3708ms for a transfer of uImage of size 1899008 bytes.

Signed-off-by: default avatarYousong Zhou <yszhou4tech@gmail.com>
Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 92369844
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment