diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-11-05 10:34:39 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2021-02-15 13:22:14 +0000 |
commit | 87eaab109be51ba371b622ed1820985d2543a1cd (patch) | |
tree | b0a522e1c9dfa1438656c69d05d64ab933a3e96f /.clang-format | |
parent | 7780d2808ee92a70261c083e4f6f0eecf63a28c1 (diff) |
net: phy: make phy_error() report which PHY has failed
phy_error() is called from phy_interrupt() or phy_state_machine(), and
uses WARN_ON() to print a backtrace. The backtrace is not useful when
reporting a PHY error.
However, a system may contain multiple ethernet PHYs, and phy_error()
gives no clue which one caused the problem.
Replace WARN_ON() with a call to phydev_err() so that we can see which
PHY had an error, and also inform the user that we are halting the PHY.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions