]> git.baikalelectronics.ru Git - uboot.git/commit
net: sun8i-emac: Bail out on PHY error
authorAndre Przywara <andre.przywara@arm.com>
Mon, 6 Jul 2020 00:40:32 +0000 (01:40 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 21 Oct 2020 18:12:11 +0000 (23:42 +0530)
commit2a0e26270838a1103a48aeb504a3102dd0152d8c
treed4d561ed2f212c52c5d48a7963716766ea5f3775
parent6662570ea4a312c88ac20b9fed1eb0d3bc5db74a
net: sun8i-emac: Bail out on PHY error

When phy_startup() returns with an error, because there is no link or
the user interrupted the process, we shall stop the _start() routine
and return with an error, instead of proceeding anyway.

This fixes pointless operations when there is no Ethernet cable
connected, for instance.

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