diff options
author | 2021-03-24 14:05:36 +0100 | |
---|---|---|
committer | 2021-03-25 16:49:40 -0700 | |
commit | de9c7854e6e1589f639c6352112956d08243b659 (patch) | |
tree | 10a55d219430fbc6e19977dc546a1349f672d5e3 /net/tipc | |
parent | net: dsa: only unset VLAN filtering when last port leaves last VLAN-aware bridge (diff) | |
download | wireguard-linux-de9c7854e6e1589f639c6352112956d08243b659.tar.xz wireguard-linux-de9c7854e6e1589f639c6352112956d08243b659.zip |
net: axienet: allow setups without MDIO
In setups with fixed-link settings there is no mdio node in DTS.
axienet_probe() already handles that gracefully but lp->mii_bus is
then NULL.
Fix code that tries to blindly grab the MDIO lock by introducing two helper
functions that make the locking conditional.
Signed-off-by: Daniel Mack <daniel@zonque.org>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions