diff options
Diffstat (limited to 'drivers/mmc/host/at91_mci.c')
-rw-r--r-- | drivers/mmc/host/at91_mci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/at91_mci.c b/drivers/mmc/host/at91_mci.c index 576d7cb0b3ec..8ec317802347 100644 --- a/drivers/mmc/host/at91_mci.c +++ b/drivers/mmc/host/at91_mci.c | |||
@@ -328,7 +328,7 @@ static void at91_mci_handle_transmitted(struct at91mci_host *host) | |||
328 | data = cmd->data; | 328 | data = cmd->data; |
329 | if (!data) return; | 329 | if (!data) return; |
330 | 330 | ||
331 | if (cmd->data->flags & MMC_DATA_MULTI) { | 331 | if (cmd->data->blocks > 1) { |
332 | pr_debug("multiple write : wait for BLKE...\n"); | 332 | pr_debug("multiple write : wait for BLKE...\n"); |
333 | at91_mci_write(host, AT91_MCI_IER, AT91_MCI_BLKE); | 333 | at91_mci_write(host, AT91_MCI_IER, AT91_MCI_BLKE); |
334 | } else | 334 | } else |
@@ -439,7 +439,7 @@ static void at91_mci_send_command(struct at91mci_host *host, struct mmc_command | |||
439 | 439 | ||
440 | if (data->flags & MMC_DATA_STREAM) | 440 | if (data->flags & MMC_DATA_STREAM) |
441 | cmdr |= AT91_MCI_TRTYP_STREAM; | 441 | cmdr |= AT91_MCI_TRTYP_STREAM; |
442 | if (data->flags & MMC_DATA_MULTI) | 442 | if (data->blocks > 1) |
443 | cmdr |= AT91_MCI_TRTYP_MULTIPLE; | 443 | cmdr |= AT91_MCI_TRTYP_MULTIPLE; |
444 | } | 444 | } |
445 | else { | 445 | else { |