mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
net: phy: print stack trace in phy_error
So far phy_error() silently stops the PHY state machine. If the network driver doesn't inform about a MDIO error then the user may wonder why his network is down. Let's print the stack trace to facilitate search for the root cause of the error. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2b3e88ea65
commit
fa7b28c11b
@ -730,6 +730,8 @@ void phy_stop_machine(struct phy_device *phydev)
|
||||
*/
|
||||
static void phy_error(struct phy_device *phydev)
|
||||
{
|
||||
WARN_ON(1);
|
||||
|
||||
mutex_lock(&phydev->lock);
|
||||
phydev->state = PHY_HALTED;
|
||||
mutex_unlock(&phydev->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user