diff options
author | Beniamino Galvani | 2016-05-08 08:30:15 +0200 |
---|---|---|
committer | Tom Rini | 2016-05-27 15:39:46 -0400 |
commit | 0e1a3e30deb089cba3f1c01a48443cf8a86b5398 (patch) | |
tree | da922751f8ceb28cf3f078813d6764a65446bb08 /drivers/net/designware.h | |
parent | 5a07abb3705f561221e7ae351beba746b6ae6eb7 (diff) |
net: designware: fix descriptor layout and warnings on 64-bit archs
All members of the DMA descriptor must be 32-bit, even on 64-bit
architectures: change the type to u32 to ensure this. Also, fix
other warnings.
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Use phys_addr_t not unsigned long long to test that we're within
DMA'able memory]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/net/designware.h')
-rw-r--r-- | drivers/net/designware.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/designware.h b/drivers/net/designware.h index ed6344cc28f..d48df7bc59d 100644 --- a/drivers/net/designware.h +++ b/drivers/net/designware.h @@ -110,8 +110,8 @@ struct eth_dma_regs { struct dmamacdescr { u32 txrx_status; u32 dmamac_cntl; - void *dmamac_addr; - struct dmamacdescr *dmamac_next; + u32 dmamac_addr; + u32 dmamac_next; } __aligned(ARCH_DMA_MINALIGN); /* |