aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/core/core.c2
-rw-r--r--drivers/mmc/core/mmc_ops.c2
-rw-r--r--drivers/mmc/host/sdhci.c8
-rw-r--r--include/linux/mmc/core.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index d9c1efa2ce15..1935812e4215 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1933,7 +1933,7 @@ static int mmc_do_erase(struct mmc_card *card, unsigned int from,
1933 cmd.opcode = MMC_ERASE; 1933 cmd.opcode = MMC_ERASE;
1934 cmd.arg = arg; 1934 cmd.arg = arg;
1935 cmd.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B | MMC_CMD_AC; 1935 cmd.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B | MMC_CMD_AC;
1936 cmd.cmd_timeout_ms = mmc_erase_timeout(card, arg, qty); 1936 cmd.busy_timeout = mmc_erase_timeout(card, arg, qty);
1937 err = mmc_wait_for_cmd(card->host, &cmd, 0); 1937 err = mmc_wait_for_cmd(card->host, &cmd, 0);
1938 if (err) { 1938 if (err) {
1939 pr_err("mmc_erase: erase error %d, status %#x\n", 1939 pr_err("mmc_erase: erase error %d, status %#x\n",
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c
index e5b5eeb548d1..3377bbfc3585 100644
--- a/drivers/mmc/core/mmc_ops.c
+++ b/drivers/mmc/core/mmc_ops.c
@@ -432,7 +432,7 @@ int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value,
432 cmd.flags |= MMC_RSP_SPI_R1 | MMC_RSP_R1; 432 cmd.flags |= MMC_RSP_SPI_R1 | MMC_RSP_R1;
433 433
434 434
435 cmd.cmd_timeout_ms = timeout_ms; 435 cmd.busy_timeout = timeout_ms;
436 if (index == EXT_CSD_SANITIZE_START) 436 if (index == EXT_CSD_SANITIZE_START)
437 cmd.sanitize_busy = true; 437 cmd.sanitize_busy = true;
438 438
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index d1e1bf52fe52..7f95211e9449 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -675,12 +675,12 @@ static u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd)
675 return 0xE; 675 return 0xE;
676 676
677 /* Unspecified timeout, assume max */ 677 /* Unspecified timeout, assume max */
678 if (!data && !cmd->cmd_timeout_ms) 678 if (!data && !cmd->busy_timeout)
679 return 0xE; 679 return 0xE;
680 680
681 /* timeout in us */ 681 /* timeout in us */
682 if (!data) 682 if (!data)
683 target_timeout = cmd->cmd_timeout_ms * 1000; 683 target_timeout = cmd->busy_timeout * 1000;
684 else { 684 else {
685 target_timeout = data->timeout_ns / 1000; 685 target_timeout = data->timeout_ns / 1000;
686 if (host->clock) 686 if (host->clock)
@@ -1019,8 +1019,8 @@ void sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd)
1019 } 1019 }
1020 1020
1021 timeout = jiffies; 1021 timeout = jiffies;
1022 if (!cmd->data && cmd->cmd_timeout_ms > 9000) 1022 if (!cmd->data && cmd->busy_timeout > 9000)
1023 timeout += DIV_ROUND_UP(cmd->cmd_timeout_ms, 1000) * HZ + HZ; 1023 timeout += DIV_ROUND_UP(cmd->busy_timeout, 1000) * HZ + HZ;
1024 else 1024 else
1025 timeout += 10 * HZ; 1025 timeout += 10 * HZ;
1026 mod_timer(&host->timer, timeout); 1026 mod_timer(&host->timer, timeout);
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h
index 87079fc38011..b27699612888 100644
--- a/include/linux/mmc/core.h
+++ b/include/linux/mmc/core.h
@@ -95,7 +95,7 @@ struct mmc_command {
95 * actively failing requests 95 * actively failing requests
96 */ 96 */
97 97
98 unsigned int cmd_timeout_ms; /* in milliseconds */ 98 unsigned int busy_timeout; /* busy detect timeout in ms */
99 /* Set this flag only for blocking sanitize request */ 99 /* Set this flag only for blocking sanitize request */
100 bool sanitize_busy; 100 bool sanitize_busy;
101 101