diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-10-02 19:58:11 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-05 11:38:37 +0100 |
commit | b5375509184dc23d2b7fa0c5ed8763899ccc9674 (patch) | |
tree | e9242f762b8ebc1e7b5e21b3be6291bb19435a36 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | ceca777dabc6ea25e13fae6498c27e187a69be0e (diff) | |
download | linux-b5375509184dc23d2b7fa0c5ed8763899ccc9674.tar.gz linux-b5375509184dc23d2b7fa0c5ed8763899ccc9674.tar.bz2 linux-b5375509184dc23d2b7fa0c5ed8763899ccc9674.zip |
net: bgmac: improve handling PHY
1. Use info from DT if available
It allows describing for example a fixed link. It's more accurate than
just guessing there may be one (depending on a chipset).
2. Verify PHY ID before trying to connect PHY
PHY addr 0x1e (30) is special in Broadcom routers and means a switch
connected as MDIO devices instead of a real PHY. Don't try connecting to
it.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions