]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5791e1571ebcbf5acde81dc7937bb46639fc4b89
treece71f901f2c07ebb15e68ea236a5f1734c0aa7df
parent2b4f802fd6fd82d2aa55ce2cf6c3ae535003091c
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