IB/hfi1: Remove lstate from hfi1_pportdata
authorByczkowski, Jakub <jakub.byczkowski@intel.com>
Fri, 4 Aug 2017 20:52:26 +0000 (13:52 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Aug 2017 18:22:36 +0000 (14:22 -0400)
commit02a222c7f6c8d17b5fb6803ca453fcd9d5a3853d
treeb0d3fc2587f1e9bb0e86c9c529541620dc15c97a
parent16570d3da0938e0c46c31e5f97c9c8452025d2e7
IB/hfi1: Remove lstate from hfi1_pportdata

Do not track logical state separately from host_link_state. Deduce
logical state from host_link_state when required. Transitions in
set_link_state and goto_offline already make sure host_link_state
reflects hardware's logical state properly.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jakub Byczkowski <jakub.byczkowski@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/hfi.h
drivers/infiniband/hw/hfi1/mad.c