]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: selftests: Do not fail if PHY is not attached
authorJose Abreu <Jose.Abreu@synopsys.com>
Mon, 9 Mar 2020 08:36:20 +0000 (09:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 03:13:16 +0000 (20:13 -0700)
commite3a894fc3f884cd04b5d6d52918b1d409830acd9
treea0acdf91231de68cef7bb1754cf5325e3931fbf3
parent621ea64771a7b1df64d7d28c3d29011b160cea24
net: stmmac: selftests: Do not fail if PHY is not attached

If a PHY is not attached, we can still run the tests with MAC loopback
mode. Return -EOPNOTSUPP error code in PHY loopback test so that global
status is not a failure.

Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c