[U-Boot] [PATCH V2] mmc: dw_mmc: Calculate timeout from transfer length
Simon Glass
sjg at chromium.org
Wed Apr 24 03:54:15 UTC 2019
On Mon, 1 Apr 2019 at 21:39, Marek Vasut <marex at denx.de> 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 multiplication of bus frequency in Hz,
> bus width, DDR mode and converted the mSec. The value is bounded from
> the bottom to 1000 mSec.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Jaehoon Chung <jh80.chung at samsung.com>
> Cc: Simon Glass <sjg at chromium.org>
> ---
> V2: Pull the timeout calculation into separate function
> ---
> drivers/mmc/dw_mmc.c | 24 +++++++++++++++++++++---
> 1 file changed, 21 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list