diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2023-04-07 18:11:29 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-12 09:21:27 +0100 |
commit | db21973263f8c56750cb610f1d5e8bee00a513b9 (patch) | |
tree | a696415859c1f5cc8da78dec1f0d7360d436f353 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ea449f7fa0bf3fcd02e04a770b9ff707bf5e8f96 (diff) |
net: ethernet: stmmac: dwmac-rk: fix optional phy regulator handling
The usual devm_regulator_get() call already handles "optional"
regulators by returning a valid dummy and printing a warning
that the dummy regulator should be described properly. This
code open coded the same behaviour, but masked any errors that
are not -EPROBE_DEFER and is quite noisy.
This change effectively unmasks and propagates regulators errors
not involving -ENODEV, downgrades the error print to warning level
if no regulator is specified and captures the probe defer message
for /sys/kernel/debug/devices_deferred.
Fixes: 2e12f536635f ("net: stmmac: dwmac-rk: Use standard devicetree property for phy regulator")
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.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