diff options
author | Bartosz Golaszewski <[email protected]> | 2020-06-26 17:53:24 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-06-26 13:40:09 -0700 |
commit | 1dba6995731e1c1a8ea167aea74c0a917b437e6c (patch) | |
tree | a8bb711b72bc12da3f4b22f3a86e502c20209b1a /tools/perf/scripts/python/check-perf-trace.py | |
parent | 333740981f94fa80326cc8e5d2da105f17bc1dd5 (diff) |
net: phy: reset the PHY even if probe() is not implemented
Currently we only call phy_device_reset() if the PHY driver implements
the probe() callback. This is not mandatory and many drivers (e.g.
realtek) don't need probe() for most devices but still can have reset
GPIOs defined. There's no reason to depend on the presence of probe()
here so pull the reset code out of the if clause.
Signed-off-by: Bartosz Golaszewski <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions