Re: [U-Boot] [PATCH V2] mmc: dw_mmc: Calculate timeout from transfer length

2019-04-23 Thread Simon Glass
On Mon, 1 Apr 2019 at 21:39, Marek Vasut wrote: > > The current 4-minute data transfer timeout is misleading and broken. > Instead of such a long wait, calculate the timeout duration based on > the length of the data transfer. The current formula is the transfer > length in bits, divided by a mult

[U-Boot] [PATCH V2] mmc: dw_mmc: Calculate timeout from transfer length

2019-04-01 Thread Marek Vasut
The current 4-minute data transfer timeout is misleading and broken. Instead of such a long wait, calculate the timeout duration based on the length of the data transfer. The current formula is the transfer length in bits, divided by a multiplication of bus frequency in Hz, bus width, DDR mode and