“fcbb539f279f7d854bd49819b889fea0612909f8”上不存在“arch/git@gitcode.net:openeuler/kernel.git”
提交 0c47f6ae 编写于 作者: K Kuninori Morimoto 提交者: Ulf Hansson

mmc: sh_mobile_sdhi: use .enable_dma

tmio_mmc_dma has .enable_dma callback now.
let's use it.
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 16935250
...@@ -158,6 +158,11 @@ static int sh_mobile_sdhi_multi_io_quirk(struct mmc_card *card, ...@@ -158,6 +158,11 @@ static int sh_mobile_sdhi_multi_io_quirk(struct mmc_card *card,
return blk_size; return blk_size;
} }
static void sh_mobile_sdhi_enable_dma(struct tmio_mmc_host *host, bool enable)
{
sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ? 2 : 0);
}
static int sh_mobile_sdhi_probe(struct platform_device *pdev) static int sh_mobile_sdhi_probe(struct platform_device *pdev)
{ {
const struct of_device_id *of_id = const struct of_device_id *of_id =
...@@ -230,6 +235,7 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) ...@@ -230,6 +235,7 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev)
} }
} }
dma_priv->filter = shdma_chan_filter; dma_priv->filter = shdma_chan_filter;
dma_priv->enable = sh_mobile_sdhi_enable_dma;
mmc_data->alignment_shift = 1; /* 2-byte alignment */ mmc_data->alignment_shift = 1; /* 2-byte alignment */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册