]> git.baikalelectronics.ru Git - uboot.git/commit
net: sun8i_emac: Fix MAC soft reset
authorAndre Przywara <andre.przywara@arm.com>
Mon, 6 Jul 2020 00:40:42 +0000 (01:40 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 21 Oct 2020 18:14:52 +0000 (23:44 +0530)
commit639750bfd7687eeb3464f3cdbfecce8b32fe1270
tree459be96bd9ded49011363b7776bd85a252103ac2
parent4e13447f3824a65e831e7cc0863f81e57df76404
net: sun8i_emac: Fix MAC soft reset

The EMAC soft reset routine was subtly broken, using an open coded
timeout routine without any actual delay.
Remove the unneeded initial reset bit read, and call wait_for_bit_le32()
to handle the timeout correctly.

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