Commit 84519a4b authored by NeilBrown's avatar NeilBrown Committed by Greg Kroah-Hartman

staging: mt7621-mmc: set correct dma mask.

Since commit f8c55dc6 ("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: default avatarNeilBrown <neil@brown.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 370e0a71
...@@ -1693,7 +1693,7 @@ static int msdc_drv_probe(struct platform_device *pdev) ...@@ -1693,7 +1693,7 @@ static int msdc_drv_probe(struct platform_device *pdev)
host->mrq = NULL; host->mrq = NULL;
//init_MUTEX(&host->sem); /* we don't need to support multiple threads access */ //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 */ /* using dma_alloc_coherent*/ /* todo: using 1, for all 4 slots */
host->dma.gpd = dma_alloc_coherent(&pdev->dev, host->dma.gpd = dma_alloc_coherent(&pdev->dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment