瀏覽代碼

mmc: sdhci_am654: Add 48 bit DMA mask

SDHCI through ADMA can access 48 bits of physical space.
Add a DMA mask to the MMC device to reflect this.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Faiz Abbas 6 年之前
父節點
當前提交
78f4019fd6
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      drivers/mmc/host/sdhci_am654.c

+ 7 - 0
drivers/mmc/host/sdhci_am654.c

@@ -6,6 +6,7 @@
  *
  */
 #include <linux/clk.h>
+#include <linux/dma-mapping.h>
 #include <linux/module.h>
 #include <linux/pm_runtime.h>
 #include <linux/property.h>
@@ -322,6 +323,12 @@ static int sdhci_am654_probe(struct platform_device *pdev)
 		goto pm_runtime_put;
 	}
 
+	ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(48));
+	if (ret) {
+		dev_err(dev, "error setting dma mask: %d\n", ret);
+		goto pm_runtime_put;
+	}
+
 	ret = sdhci_am654_init(host);
 	if (ret)
 		goto pm_runtime_put;