]> git.baikalelectronics.ru Git - uboot.git/commit
net: sun8i_emac: Reduce cache maintenance on TX descriptor init
authorAndre Przywara <andre.przywara@arm.com>
Mon, 6 Jul 2020 00:40:38 +0000 (01:40 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 21 Oct 2020 18:14:02 +0000 (23:44 +0530)
commit3b6320a830a5041807a1541f2b4f312509ef1f75
treeb3de162dd045c17f1c772bf9c9de871ab2418aef
parentdf2b711e880a8bf3aef17a21530cde6ee4522f5b
net: sun8i_emac: Reduce cache maintenance on TX descriptor init

When we initialise the TX descriptors, there is no need yet to clean
them all to memory, as they don't contain any data yet. Later we will
touch and clean each descriptor anyway.
However we tell the MAC about the beginning of the chain, so we have to
clean at least the first descriptor, to make it clear that this is empty
and there are no packets to transfer yet.

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>
drivers/net/sun8i_emac.c