]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: designware: fix descriptor layout and warnings on 64-bit archs
authorBeniamino Galvani <b.galvani@gmail.com>
Sun, 8 May 2016 06:30:15 +0000 (08:30 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 19:39:46 +0000 (15:39 -0400)
commit0e1a3e30deb089cba3f1c01a48443cf8a86b5398
treeda922751f8ceb28cf3f078813d6764a65446bb08
parent5a07abb3705f561221e7ae351beba746b6ae6eb7
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>
drivers/net/designware.c
drivers/net/designware.h