Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ac9ea69 authored by San Mehat's avatar San Mehat Committed by Daniel Walker
Browse files

mmc: msm_sdcc: Fix the dma exec function to use the proper delays



Signed-off-by: default avatarSan Mehat <san@google.com>
Signed-off-by: default avatarDaniel Walker <dwalker@codeaurora.org>
parent 91bb6495
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -179,14 +179,15 @@ msmsdcc_dma_exec_func(struct msm_dmov_cmd *cmd)
{
	struct msmsdcc_host *host = (struct msmsdcc_host *)cmd->data;

       writel(host->cmd_timeout, host->base + MMCIDATATIMER);
       writel((unsigned int)host->curr.xfer_size, host->base + MMCIDATALENGTH);
       writel(host->cmd_pio_irqmask, host->base + MMCIMASK1);
       writel(host->cmd_datactrl, host->base + MMCIDATACTRL);
	msmsdcc_writel(host, host->cmd_timeout, MMCIDATATIMER);
	msmsdcc_writel(host, (unsigned int)host->curr.xfer_size, MMCIDATALENGTH);
	msmsdcc_writel(host, host->cmd_pio_irqmask, MMCIMASK1);
	msmsdcc_writel(host, host->cmd_datactrl, MMCIDATACTRL);

	if (host->cmd_cmd) {
		msmsdcc_start_command_exec(host,
                       (u32)host->cmd_cmd->arg, (u32)host->cmd_c);
					   (u32) host->cmd_cmd->arg,
					   (u32) host->cmd_c);
	}
	host->dma.active = 1;
}