Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: tmio: Fix timeout value for command request

Fix the problem which timeout occurs at the time of command request with
several cards.

The timeout value was insufficient as a verification of several cards,
so it was changed 5 seconds from 2 seconds.

Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Takeshi Kihara and committed by
Ulf Hansson
0df9d2ea 05c441ef

+4 -2
+4 -2
drivers/mmc/host/tmio_mmc_pio.c
··· 83 83 return --host->sg_len; 84 84 } 85 85 86 + #define CMDREQ_TIMEOUT 5000 87 + 86 88 #ifdef CONFIG_MMC_DEBUG 87 89 88 90 #define STATUS_TO_TEXT(a, status, i) \ ··· 232 230 */ 233 231 if (IS_ERR_OR_NULL(mrq) 234 232 || time_is_after_jiffies(host->last_req_ts + 235 - msecs_to_jiffies(2000))) { 233 + msecs_to_jiffies(CMDREQ_TIMEOUT))) { 236 234 spin_unlock_irqrestore(&host->lock, flags); 237 235 return; 238 236 } ··· 820 818 ret = tmio_mmc_start_command(host, mrq->cmd); 821 819 if (!ret) { 822 820 schedule_delayed_work(&host->delayed_reset_work, 823 - msecs_to_jiffies(2000)); 821 + msecs_to_jiffies(CMDREQ_TIMEOUT)); 824 822 return; 825 823 } 826 824