提交 ec30f11e 编写于 作者: U Ulf Hansson

mmc: rtsx_usb: Use the provided busy timeout from the mmc core

Instead of using a fixed 3s timeout for commands with R1B responses,
convert to use the per request calculated busy timeout from the mmc core.

This is needed to cope with requests that requires longer timeout, for
example erase/discard commands.
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
Tested-by: NMichał Pecio <michal.pecio@gmail.com>
上级 4b7d4545
...@@ -342,7 +342,7 @@ static void sd_send_cmd_get_rsp(struct rtsx_usb_sdmmc *host, ...@@ -342,7 +342,7 @@ static void sd_send_cmd_get_rsp(struct rtsx_usb_sdmmc *host,
} }
if (rsp_type == SD_RSP_TYPE_R1b) if (rsp_type == SD_RSP_TYPE_R1b)
timeout = 3000; timeout = cmd->busy_timeout ? cmd->busy_timeout : 3000;
if (cmd->opcode == SD_SWITCH_VOLTAGE) { if (cmd->opcode == SD_SWITCH_VOLTAGE) {
err = rtsx_usb_write_register(ucr, SD_BUS_STAT, err = rtsx_usb_write_register(ucr, SD_BUS_STAT,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册