Home
last modified time | relevance | path

Searched hist:"34 d21c9ad8bfc75e132533de6de366cf6f633ae1" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/mmc/
H A Ddw_mmc.c34d21c9ad8bfc75e132533de6de366cf6f633ae1 Tue Jan 19 02:23:36 UTC 2021 Jason Zhu <jason.zhu@rock-chips.com> UPSTREAM: mmc: dw_mmc: Calculate timeout from transfer length

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 10000 mSec.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I168b6ceba917d3e621559a92a63fac78abca6bff
(cherry picked from commit 4e16f0a67d80b4ce11995b870b5d9c8d11266d0d)