sunxi: mmc: set transfer timeout according to byte_cnt.
authorYousong Zhou <yszhou4tech@gmail.com>
Sat, 29 Aug 2015 13:26:11 +0000 (21:26 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:15 +0000 (12:19 +0200)
commit5438875c4ddfae1ac65a8fd2f7fb4f6b8b27bdba
tree5395cbc5d6b9ffc8a3b5587f88b7f0ec069bdada
parent855223d60063176d5d613d488c10cf48483e9b3e
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: Yousong Zhou <yszhou4tech@gmail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/mmc/sunxi_mmc.c