未验证 提交 f98ac45a 编写于 作者: A AmadeusGhost 提交者: GitHub

ramips: fix mmc driver (#3285)

Since commit f8c55dc ("MIPS: use generic dma noncoherent ops for
simple noncoherent platforms") changed MIPS dma handling, the mmc
driver fails because it doesn't have a dma mask is set.

So set the correct dma mask.
Signed-off-by: NNeilBrown <neil@brown.name>
Signed-off-by: NDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Co-authored-by: NDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
上级 c9f2c9c4
......@@ -2284,7 +2284,7 @@ static int msdc_drv_probe(struct platform_device *pdev)
host->mrq = NULL;
//init_MUTEX(&host->sem); /* we don't need to support multiple threads access */
mmc_dev(mmc)->dma_mask = NULL;
dma_coerce_mask_and_coherent(mmc_dev(mmc), DMA_BIT_MASK(32));
/* using dma_alloc_coherent*/ /* todo: using 1, for all 4 slots */
host->dma.gpd = dma_alloc_coherent(&pdev->dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册