staging: mt7621-mmc: set correct dma mask.
authorNeilBrown <neil@brown.name>
Sun, 9 Dec 2018 05:20:32 +0000 (16:20 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Dec 2018 10:55:39 +0000 (11:55 +0100)
Since commit f8c55dc6e828 ("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: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c

index 7b66f9b0a09413aa9b4d53c1ad6c7ca70f4d1721..0e6c463f988e8ec9a43471b1c87990a053bf3cfa 100644 (file)
@@ -1693,7 +1693,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,