bnxt_en: Event handler for Thermal event
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 27 Sep 2023 03:57:32 +0000 (20:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Oct 2023 10:23:01 +0000 (11:23 +0100)
commita19b4801457b0806c0153dc344f548c6f8615896
treeb953465cbb7a2fc27794ee8f657d7a4e1b253231
parent3d9cf962067bef73757f987e3b30928b036499d8
bnxt_en: Event handler for Thermal event

Newer FW will send a new async event when it detects that
the chip's temperature has crossed the configured threshold value.
The driver will now notify hwmon and will log a warning message.

Link: https://lore.kernel.org/netdev/20230815045658.80494-13-michael.chan@broadcom.com/
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_hwmon.c
drivers/net/ethernet/broadcom/bnxt/bnxt_hwmon.h