mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-12 03:58:47 +01:00
Old command timeout value was too small and it caused I/O errors which led to uncompleted read/write/erase operations and filesystem errors. Timeout adaptation fixes this issue. Changes in sdhci_send_command() function: - change timeout variable to static - increase default command timeout to 100 ms - add definition of max command timeout value, which can be redefined in each board config file - wait for card ready state for max defined time if it doesn't exceed defined maximum or return COMM_ERR Once successfully increased timeout value will be used in next function call. This fix was tested on Goni, Trats, Trats2 boards by testing UMS on MMC storage. Changes v2: - move global variable cmd_timeout into function sdhci_send_command() - change condition "==" to ">=" when comparing time with timeout - print information about timeout increasing and card busy timeout Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> |
||
|---|---|---|
| .. | ||
| arm_pl180_mmci.c | ||
| arm_pl180_mmci.h | ||
| bcm2835_sdhci.c | ||
| bfin_sdh.c | ||
| davinci_mmc.c | ||
| dw_mmc.c | ||
| exynos_dw_mmc.c | ||
| fsl_esdhc.c | ||
| fsl_esdhc_spl.c | ||
| ftsdc010_mci.c | ||
| gen_atmel_mci.c | ||
| Makefile | ||
| mmc.c | ||
| mmc_private.h | ||
| mmc_spi.c | ||
| mmc_write.c | ||
| mv_sdhci.c | ||
| mxcmmc.c | ||
| mxsmmc.c | ||
| omap_hsmmc.c | ||
| pxa_mmc.h | ||
| pxa_mmc_gen.c | ||
| s5p_sdhci.c | ||
| sdhci.c | ||
| sh_mmcif.c | ||
| sh_mmcif.h | ||
| spear_sdhci.c | ||
| tegra_mmc.c | ||
| zynq_sdhci.c | ||