diff options
author | Byczkowski, Jakub <jakub.byczkowski@intel.com> | 2017-08-04 23:52:26 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-08-22 21:22:36 +0300 |
commit | 02a222c7f6c8d17b5fb6803ca453fcd9d5a3853d (patch) | |
tree | b0d3fc2587f1e9bb0e86c9c529541620dc15c97a /drivers/infiniband/hw/hfi1/mad.c | |
parent | 16570d3da0938e0c46c31e5f97c9c8452025d2e7 (diff) | |
download | linux-02a222c7f6c8d17b5fb6803ca453fcd9d5a3853d.tar.xz |
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>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/mad.c')
-rw-r--r-- | drivers/infiniband/hw/hfi1/mad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hfi1/mad.c b/drivers/infiniband/hw/hfi1/mad.c index 11be4d19e607..cd1f6f841f34 100644 --- a/drivers/infiniband/hw/hfi1/mad.c +++ b/drivers/infiniband/hw/hfi1/mad.c @@ -1117,7 +1117,7 @@ static int port_states_transition_allowed(struct hfi1_pportdata *ppd, u32 logical_new, u32 physical_new) { u32 physical_old = driver_physical_state(ppd); - u32 logical_old = driver_logical_state(ppd); + u32 logical_old = driver_lstate(ppd); int ret, logical_allowed, physical_allowed; ret = logical_transition_allowed(logical_old, logical_new); |