IB/hfi1: Check for QSFP presence before attempting reads
authorEaswar Hariharan <easwar.hariharan@intel.com>
Tue, 21 Mar 2017 00:25:42 +0000 (17:25 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 5 Apr 2017 18:45:09 +0000 (14:45 -0400)
commitfb897ad315643e5dc1092a115b3cec914b66df9d
tree69599ef786c452e31ff0e905ba94bd9339d5e77e
parent62eed66e98b4c2286fef2ce5911d8d75b7515f7b
IB/hfi1: Check for QSFP presence before attempting reads

Attempting to read the status of a QSFP cable creates noise in the logs
and misses out on setting an appropriate Offline/Disabled Reason if the
cable is not plugged in. Check for this prior to attempting the read and
attendant retries.

Fixes: 673b975f1fba ("IB/hfi1: Add QSFP sanity pre-check")
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c