OSDN Git Service

soc: qcom: subsys-pil-tz: initialize DMA ops
authorDavid Keitel <dkeitel@codeaurora.org>
Thu, 4 Feb 2016 18:03:38 +0000 (10:03 -0800)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:07:42 +0000 (11:07 -0700)
Initialize the DMA operations for the MDT data
DMA allocation.

Change-Id: If8eae5e91b4145be8d9e5eeeb28c14cda88e617f
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
drivers/soc/qcom/subsys-pil-tz.c

index 4437126..5751b82 100644 (file)
@@ -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);