From fe350df05e06d92a4106b5ad1e0d94b5b9c4831c Mon Sep 17 00:00:00 2001 From: David Keitel Date: Thu, 4 Feb 2016 10:03:38 -0800 Subject: [PATCH] soc: qcom: subsys-pil-tz: initialize DMA ops Initialize the DMA operations for the MDT data DMA allocation. Change-Id: If8eae5e91b4145be8d9e5eeeb28c14cda88e617f Signed-off-by: David Keitel --- drivers/soc/qcom/subsys-pil-tz.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/qcom/subsys-pil-tz.c b/drivers/soc/qcom/subsys-pil-tz.c index 4437126de8d7..5751b827ac58 100644 --- a/drivers/soc/qcom/subsys-pil-tz.c +++ b/drivers/soc/qcom/subsys-pil-tz.c @@ -587,6 +587,8 @@ static int pil_init_image_trusted(struct pil_desc *pil, ret = scm_pas_enable_bw(); if (ret) return ret; + arch_setup_dma_ops(&dev, 0, 0, NULL, 0); + dev.coherent_dma_mask = DMA_BIT_MASK(sizeof(dma_addr_t) * 8); dma_set_attr(DMA_ATTR_STRONGLY_ORDERED, &attrs);