mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
7bda9482e7
commit
e5a34b0c10
|
@ -771,7 +771,8 @@ static void alcor_pre_req(struct mmc_host *mmc,
|
|||
data->host_cookie = COOKIE_UNMAPPED;
|
||||
|
||||
/* FIXME: looks like the DMA engine works only with CMD18 */
|
||||
if (cmd->opcode != 18)
|
||||
if (cmd->opcode != MMC_READ_MULTIPLE_BLOCK
|
||||
&& cmd->opcode != MMC_WRITE_MULTIPLE_BLOCK)
|
||||
return;
|
||||
/*
|
||||
* We don't do DMA on "complex" transfers, i.e. with
|
||||
|
|
Loading…
Reference in New Issue