]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mmc: dw_mmc: Use dma_set_mask_and_coherent() helper
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 10 Oct 2025 03:37:25 +0000 (11:37 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 21 Oct 2025 11:37:39 +0000 (13:37 +0200)
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>
drivers/mmc/host/dw_mmc.c

index 2380ab82812a55a1f1377057046d88c2293226a2..9e74b675e92d51ae58aad2b40a304ad0c95c7fa0 100644 (file)
@@ -3120,9 +3120,8 @@ static void dw_mci_init_dma(struct dw_mci *host)
                        host->dma_64bit_address = 1;
                        dev_info(host->dev,
                                 "IDMAC supports 64-bit address mode.\n");
-                       if (!dma_set_mask(host->dev, DMA_BIT_MASK(64)))
-                               dma_set_coherent_mask(host->dev,
-                                                     DMA_BIT_MASK(64));
+                       if (dma_set_mask_and_coherent(host->dev, DMA_BIT_MASK(64)))
+                               dev_info(host->dev, "Fail to set 64-bit DMA mask");
                } else {
                        /* host supports IDMAC in 32-bit address mode */
                        host->dma_64bit_address = 0;