From: Alexander Duyck Date: Thu, 21 Jul 2011 00:40:45 +0000 (+0000) Subject: ixgbe: Add missing code for enabling overheat sensor interrupt X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~186 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dcba1ea77dda6f6edd51aa2f60281770d1247cf5;p=users%2Fjedix%2Flinux-maple.git ixgbe: Add missing code for enabling overheat sensor interrupt This change adds a small bit of missing code for enabling the overheat sensor (cherry picked from commit 5fdd31f920a5ec8873929750d83ffa777bed6100) Signed-off-by: Alexander Duyck Signed-off-by: Jeff Kirsher Signed-off-by: Joe Jin --- diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 83dadc839f9f..cc3f761e8f01 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c @@ -3542,6 +3542,10 @@ static void ixgbe_setup_gpie(struct ixgbe_adapter *adapter) gpie |= IXGBE_GPIE_VTMODE_64; } + /* Enable Thermal over heat sensor interrupt */ + if (adapter->flags2 & IXGBE_FLAG2_TEMP_SENSOR_CAPABLE) + gpie |= IXGBE_SDP0_GPIEN; + /* Enable fan failure interrupt */ if (adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) gpie |= IXGBE_SDP1_GPIEN;