]> 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)
commite841785bdf71821f73057f53a4478dd728f598c3
treea0acdf91231de68cef7bb1754cf5325e3931fbf3
parent3974be1254d1dc0996cbc3724c18450037b15a1e
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