]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dw_dmac: use 'u32' for LLI structure members, not dma_addr_t
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 13 Jul 2012 08:09:33 +0000 (11:09 +0300)
committerVinod Koul <vinod.koul@linux.intel.com>
Mon, 16 Jul 2012 06:33:07 +0000 (12:03 +0530)
Use 'u32' for the LLI structure members, which are defined by hardware to be
32-bit. dma_addr_t is much more vague about its actual size.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/dw_dmac.c
drivers/dma/dw_dmac_regs.h

index 600634982b4c0f93f65734ef18ad61e36e95e066..57beb5c8e3fd2bf15eda13c7464525398534fc07 100644 (file)
@@ -414,11 +414,8 @@ static void dwc_scan_descriptors(struct dw_dma *dw, struct dw_dma_chan *dwc)
 static inline void dwc_dump_lli(struct dw_dma_chan *dwc, struct dw_lli *lli)
 {
        dev_printk(KERN_CRIT, chan2dev(&dwc->chan),
-                       "  desc: s0x%llx d0x%llx l0x%llx c0x%x:%x\n",
-                       (unsigned long long)lli->sar,
-                       (unsigned long long)lli->dar,
-                       (unsigned long long)lli->llp,
-                       lli->ctlhi, lli->ctllo);
+                       "  desc: s0x%x d0x%x l0x%x c0x%x:%x\n",
+                       lli->sar, lli->dar, lli->llp, lli->ctlhi, lli->ctllo);
 }
 
 static void dwc_handle_error(struct dw_dma *dw, struct dw_dma_chan *dwc)
index e248481ad5f1f27a3927b12d1b970ea1ad865a9a..50830bee087a65eac6178e9111b72db9cbe0c49a 100644 (file)
@@ -219,9 +219,9 @@ static inline struct dw_dma *to_dw_dma(struct dma_device *ddev)
 /* LLI == Linked List Item; a.k.a. DMA block descriptor */
 struct dw_lli {
        /* values that are not changed by hardware */
-       dma_addr_t      sar;
-       dma_addr_t      dar;
-       dma_addr_t      llp;            /* chain to next lli */
+       u32             sar;
+       u32             dar;
+       u32             llp;            /* chain to next lli */
        u32             ctllo;
        /* values that may get written back: */
        u32             ctlhi;