diff options
author | Andre Przywara <andre.przywara@arm.com> | 2020-07-06 03:40:39 +0300 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2020-10-21 21:14:16 +0300 |
commit | eaeadb50ea4d65e6fdbde7224b089dca6a41ff1e (patch) | |
tree | 138e4c487209aa81e4ee18cd13546bf0928b3884 /drivers/net/sun8i_emac.c | |
parent | ed909de5d3300f473e5ee5a520267c3e04b43b76 (diff) | |
download | u-boot-eaeadb50ea4d65e6fdbde7224b089dca6a41ff1e.tar.xz |
net: sun8i_emac: Drop unneeded cache invalidation before sending
There is no reason to invalidate a TX descriptor before we are setting
it up, as we will only write to a field.
Remove the not needed invalidate_dcache_range() call.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Tested-by: Amit Singh Tomar <amittomer25@gmail.com> # Pine64+
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'drivers/net/sun8i_emac.c')
-rw-r--r-- | drivers/net/sun8i_emac.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 335c85f3c2..45130e1ba1 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c @@ -624,9 +624,6 @@ static int sun8i_emac_eth_send(struct udevice *dev, void *packet, int length) uintptr_t data_end = data_start + roundup(length, ARCH_DMA_MINALIGN); - /* Invalidate entire buffer descriptor */ - invalidate_dcache_range(desc_start, desc_end); - desc_p->ctl_size = length | EMAC_DESC_CHAIN_SECOND; memcpy((void *)data_start, packet, length); |