IB/hfi1: Correct 8051 link parameter settings
authorDean Luick <dean.luick@intel.com>
Tue, 24 May 2016 19:51:00 +0000 (12:51 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 26 May 2016 16:21:10 +0000 (12:21 -0400)
commitf6de3d39cfc30387ce7dadb8542e4a635c706670
treebe83d0a615a9a7038ae833369f000bb9b4c72336
parentce8b2fd0950ccc14440b02f05d2c7023608cfa76
IB/hfi1: Correct 8051 link parameter settings

Two 8051 link settings, external device config and tuning method,
were written in the wrong location and the previous settings were
not cleared.  For both, clear the old value and write the new
value.

Fixes: 8ebd4cf1852a ("staging/rdma/hfi1: Add active and optical cable support")
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.h
drivers/infiniband/hw/hfi1/platform.c