[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191219210503.GR17475@lunn.ch>
Date: Thu, 19 Dec 2019 22:05:03 +0100
From: Andrew Lunn <andrew@...n.ch>
To: David Miller <davem@...emloft.net>
Cc: rmk+kernel@...linux.org.uk, f.fainelli@...il.com,
hkallweit1@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH net] net: phy: make phy_error() report which PHY has
failed
> I think I agree with Heiner that it is valuable to know whether the
> error occurred from the interrupt handler or the state machine (and
> if the state machine, where that got called from).
>
> So I totally disagree with removing the backtrace, sorry.
Russell does have a point about the backtrace not giving an indication
of which phy experienced the error. So adding the phydev_err() call,
which will prefix the print with an identifier for the PHY, is a good
idea. So we should add that, and keep the WARN().
Andrew
Powered by blists - more mailing lists