mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
net: zynq_gem: Dont flush dummy descriptors
Dont flush dummy descriptors as they are already allocated from a region with dcache off. Tested this on Zynq(zc702) and ZynqMP(zcu102) boards. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
dea004e41a
commit
f0b94c4bcd
1 changed files with 0 additions and 4 deletions
|
@ -407,10 +407,6 @@ static int zynq_gem_init(struct udevice *dev)
|
|||
dummy_rx_bd->addr = ZYNQ_GEM_RXBUF_WRAP_MASK |
|
||||
ZYNQ_GEM_RXBUF_NEW_MASK;
|
||||
dummy_rx_bd->status = 0;
|
||||
flush_dcache_range((ulong)&dummy_tx_bd, (ulong)&dummy_tx_bd +
|
||||
sizeof(dummy_tx_bd));
|
||||
flush_dcache_range((ulong)&dummy_rx_bd, (ulong)&dummy_rx_bd +
|
||||
sizeof(dummy_rx_bd));
|
||||
|
||||
writel((ulong)dummy_tx_bd, ®s->transmit_q1_ptr);
|
||||
writel((ulong)dummy_rx_bd, ®s->receive_q1_ptr);
|
||||
|
|
Loading…
Reference in a new issue