Thread (1 message) 1 message, 1 author, 2013-06-12

[PATCH 2/9] dma: pl330: use dma_addr_t for describing bus addresses

From: Vinod Koul <hidden>
Date: 2013-06-12 05:31:54
Also in: linux-devicetree, linux-iommu

On Tue, Jun 11, 2013 at 10:07:12AM +0530, Jassi Brar wrote:
On 11 June 2013 00:04, Will Deacon [off-list ref] wrote:
quoted
The microcode bus address (pl330_dmac.mcode_bus) is currently a u32,
which fails to compile when building on a system with 64-bit bus
addresses.

This patch uses dma_addr_t to represent the address instead.

Acked-by: Jassi Brar <redacted>
quoted
Cc: Jassi Brar <redacted>
Cc: Vinod Koul <redacted>
Signed-off-by: Will Deacon <redacted>
Applied, thanks

--
~Vinod
quoted
---
 drivers/dma/pl330.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 22e2a8f..f1bc593 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -501,7 +501,7 @@ struct pl330_dmac {
        /* Maximum possible events/irqs */
        int                     events[32];
        /* BUS address of MicroCode buffer */
-       u32                     mcode_bus;
+       dma_addr_t              mcode_bus;
        /* CPU address of MicroCode buffer */
        void                    *mcode_cpu;
        /* List of all Channel threads */
--
1.8.2.2

-- 
Linaro.org ? Open source software for ARM SoCs | Follow Linaro
http://facebook.com/pages/Linaro/155974581091106  -
http://twitter.com/#!/linaroorg - http://linaro.org/linaro-blog
-- 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help