IB/hfi1: Ignore non-temperature warnings on a downed link
commit0c7f77afb7f6e74af899584ac672c8d9e63058b0
authorEaswar Hariharan <easwar.hariharan@intel.com>
Thu, 12 May 2016 17:22:33 +0000 (12 10:22 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:39:14 +0000 (13 19:39 -0400)
treef322aba97a7ab1685bca07b14e071a5206f7bf79
parent321aebb880d2bfdf9cff503f57207e930aee6b1d
IB/hfi1: Ignore non-temperature warnings on a downed link

QSFP modules can raise an interrupt to inform us of expected conditions
while the link is down, such as RX power low. Actively ignore these
conditions when the link is down as they only add reporting noise.
Continue reporting conditions that are valid at all times, such as
temperature alarms and warnings.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/chip.c
drivers/staging/rdma/hfi1/diag.c
drivers/staging/rdma/hfi1/hfi.h