ice: Do not check INTEVENT bit for OICR interrupts
authorBen Shelton <[email protected]>
Wed, 11 Apr 2018 19:21:33 +0000 (12:21 -0700)
committerJeff Kirsher <[email protected]>
Tue, 24 Apr 2018 16:03:23 +0000 (09:03 -0700)
commit30d84397affb0fcb11beaf049caabfcb1dac65a6
treef544c946b10f1731cda6c3723bd3b38a12d25f49
parent34357a90d5ca8228df4f88b21197f970285b209b
ice: Do not check INTEVENT bit for OICR interrupts

According to the hardware spec, checking the INTEVENT bit isn't a
reliable way to detect if an OICR interrupt has occurred. This is
because this bit can be cleared by the hardware/firmware before the
interrupt service routine has run. So instead, just check for OICR
events every time.

Fixes: 940b61af02f4 ("ice: Initialize PF and setup miscellaneous interrupt")
Signed-off-by: Ben Shelton <[email protected]>
Signed-off-by: Anirudh Venkataramanan <[email protected]>
Tested-by: Tony Brelinski <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/ice/ice_hw_autogen.h
drivers/net/ethernet/intel/ice/ice_main.c