net: phy: nxp-tja11xx: log critical health state
authorOleksij Rempel <o.rempel@pengutronix.de>
Wed, 11 Aug 2021 06:37:12 +0000 (08:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Aug 2021 09:51:45 +0000 (10:51 +0100)
commite0ba60509d64a7e91d13d28c247db59bf39d9837
treece71f901f2c07ebb15e68ea236a5f1734c0aa7df
parent445af0d25992a92f2caf9c0e089cc7030d6b4eec
net: phy: nxp-tja11xx: log critical health state

TJA1102 provides interrupt notification for the critical health states
like overtemperature and undervoltage.

The overtemperature bit is set if package temperature is beyond 155C°.
This functionality was tested by heating the package up to 200C°

The undervoltage bit is set if supply voltage drops beyond some critical
threshold. Currently not tested.

In a typical use case, both of this events should be logged and stored
(or send to some remote system) for further investigations.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/nxp-tja11xx.c