diff options
author | Daniel Drake <drake@endlessm.com> | 2019-03-26 03:04:15 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2019-04-15 05:55:54 -0400 |
commit | e5a34b0c1071e6b6b6cfca4c6887c39cd403dd77 (patch) | |
tree | ed4df9ab8f480a02e47c68aca968e557c0169df0 | |
parent | 7bda9482e7ed4d27d83c1f9cb5cbe3b34ddac3e8 (diff) |
mmc: alcor: enable DMA for writes
Enable the DMA codepath for writes as well as reads.
This improves write speed from 1mb/sec to 2mb/sec (tested with dd).
The original ampe_stor vendor driver also uses DMA for writes.
Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/alcor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/alcor.c b/drivers/mmc/host/alcor.c index 7c8f203f9a24..3e2efbf3cf8c 100644 --- a/drivers/mmc/host/alcor.c +++ b/drivers/mmc/host/alcor.c | |||
@@ -771,7 +771,8 @@ static void alcor_pre_req(struct mmc_host *mmc, | |||
771 | data->host_cookie = COOKIE_UNMAPPED; | 771 | data->host_cookie = COOKIE_UNMAPPED; |
772 | 772 | ||
773 | /* FIXME: looks like the DMA engine works only with CMD18 */ | 773 | /* FIXME: looks like the DMA engine works only with CMD18 */ |
774 | if (cmd->opcode != 18) | 774 | if (cmd->opcode != MMC_READ_MULTIPLE_BLOCK |
775 | && cmd->opcode != MMC_WRITE_MULTIPLE_BLOCK) | ||
775 | return; | 776 | return; |
776 | /* | 777 | /* |
777 | * We don't do DMA on "complex" transfers, i.e. with | 778 | * We don't do DMA on "complex" transfers, i.e. with |