Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Heiner Kallweit and committed by
David S. Miller
fa7b28c1 2b3e88ea

+2
+2
drivers/net/phy/phy.c
··· 730 730 */ 731 731 static void phy_error(struct phy_device *phydev) 732 732 { 733 + WARN_ON(1); 734 + 733 735 mutex_lock(&phydev->lock); 734 736 phydev->state = PHY_HALTED; 735 737 mutex_unlock(&phydev->lock);