IB/hfi1: Only reset QSFP after link up and turn off AOC TX
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Tue, 26 Sep 2017 13:06:03 +0000 (06:06 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 27 Sep 2017 15:10:36 +0000 (11:10 -0400)
commit30e10527bcce376114e627abb7fabfbe9bfee91e
tree729cc44dddc71b1475c0ec38a35f104b3baed4a7
parentdf5efdd97029f2cff7e5c91ea1c9f2b94d009b0f
IB/hfi1: Only reset QSFP after link up and turn off AOC TX

QSFP reset enables AOC transmitters by default. They should be off
before moving to high power mode to complete the setup. There is no
need to reset the QSFP during LNI failure as it was reset at link down.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Jakub Byczkowski <jakub.byczkowski@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@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
drivers/infiniband/hw/hfi1/chip.h
drivers/infiniband/hw/hfi1/platform.c