diff options
author | Daniel Mack <daniel@zonque.org> | 2021-03-24 14:05:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-25 16:49:40 -0700 |
commit | de9c7854e6e1589f639c6352112956d08243b659 (patch) | |
tree | 10a55d219430fbc6e19977dc546a1349f672d5e3 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 479dc497db8322ae486f8ee49020f5600a77a680 (diff) |
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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions