summaryrefslogtreecommitdiff
path: root/kernel/configs
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-11-05 10:34:39 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-09-19 13:22:19 +0100
commita8ba15f31356f0044f264d677d7f2a56b8599f8e (patch)
tree66548d673a529c2464858af9877fa7172f7b0c15 /kernel/configs
parentf896f17eb7d719e4420d0f9f79a9c091b04e7b46 (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 'kernel/configs')
0 files changed, 0 insertions, 0 deletions