Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mmc: dw_mmc: Use dma_set_mask_and_coherent() helper

Use dma_set_mask_and_coherent() instead. No functional changes.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Shawn Lin and committed by
Ulf Hansson
cb24b4a9 b7e61480

+2 -3
+2 -3
drivers/mmc/host/dw_mmc.c
··· 3120 3120 host->dma_64bit_address = 1; 3121 3121 dev_info(host->dev, 3122 3122 "IDMAC supports 64-bit address mode.\n"); 3123 - if (!dma_set_mask(host->dev, DMA_BIT_MASK(64))) 3124 - dma_set_coherent_mask(host->dev, 3125 - DMA_BIT_MASK(64)); 3123 + if (dma_set_mask_and_coherent(host->dev, DMA_BIT_MASK(64))) 3124 + dev_info(host->dev, "Fail to set 64-bit DMA mask"); 3126 3125 } else { 3127 3126 /* host supports IDMAC in 32-bit address mode */ 3128 3127 host->dma_64bit_address = 0;