Skip to content

Commit f8609c2

Browse files
andy-shevVinod Koul
authored andcommitted
dw_dmac: use 'u32' for LLI structure members, not dma_addr_t
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>
1 parent 93aad1b commit f8609c2

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

‎drivers/dma/dw_dmac.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,8 @@ static void dwc_scan_descriptors(struct dw_dma *dw, struct dw_dma_chan *dwc)
414414
static inline void dwc_dump_lli(struct dw_dma_chan *dwc, struct dw_lli *lli)
415415
{
416416
dev_printk(KERN_CRIT, chan2dev(&dwc->chan),
417-
" desc: s0x%llx d0x%llx l0x%llx c0x%x:%x\n",
418-
(unsigned long long)lli->sar,
419-
(unsigned long long)lli->dar,
420-
(unsigned long long)lli->llp,
421-
lli->ctlhi, lli->ctllo);
417+
" desc: s0x%x d0x%x l0x%x c0x%x:%x\n",
418+
lli->sar, lli->dar, lli->llp, lli->ctlhi, lli->ctllo);
422419
}
423420

424421
static void dwc_handle_error(struct dw_dma *dw, struct dw_dma_chan *dwc)

‎drivers/dma/dw_dmac_regs.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ static inline struct dw_dma *to_dw_dma(struct dma_device *ddev)
219219
/* LLI == Linked List Item; a.k.a. DMA block descriptor */
220220
struct dw_lli {
221221
/* values that are not changed by hardware */
222-
dma_addr_t sar;
223-
dma_addr_t dar;
224-
dma_addr_t llp; /* chain to next lli */
222+
u32 sar;
223+
u32 dar;
224+
u32 llp; /* chain to next lli */
225225
u32 ctllo;
226226
/* values that may get written back: */
227227
u32 ctlhi;

0 commit comments

Comments
 (0)