]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: xilinx: axi_emac: Fix dma descriptors for 64bit and compilation warnings
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Thu, 3 Sep 2020 14:36:43 +0000 (08:36 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 23 Sep 2020 08:31:40 +0000 (10:31 +0200)
commitf9d3b318832762ec8005b702b1724c0166e0aa36
treea7c914a4193185543371ccd5bea66c782e252fea
parentabe450322e9eb8b42ab7f8fa4f86cea0c6b476cc
net: xilinx: axi_emac: Fix dma descriptors for 64bit and compilation warnings

There are compilation warnings showing up when we compile AXI ethernet
driver for 64bit architectures. Fix them, so that it works on both 32
and 64 bit architectures.

DMA descriptors are not taking care of 64bit addresses. To fix it,
change axidma_bd members as below:

next ==> next_desc
reserverd1 ==> next_desc_msb
phys ==> buf_addr
reserverd2 ==> buf_addr_msb

and update next_desc and buf_addr with lower 32 bits of the addresses,
update next_desc_msb and buf_addr_msb with upper 32 bits of the 64bit
addresses.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/xilinx_axi_emac.c