]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Use host_link_state to read state when DC is shut down
authorBartlomiej Dudek <bartlomiej.dudek@intel.com>
Fri, 4 Aug 2017 20:52:32 +0000 (13:52 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Aug 2017 18:22:36 +0000 (14:22 -0400)
commit72d9f1153016820a7b7d0074b9ea318397f265b6
tree6380ac3080cf9fe12486b868c223ff142dced2f0
parent034b9d4b33d4a1554a49f5f0f16d7c88f17b56ef
IB/hfi1: Use host_link_state to read state when DC is shut down

When DC is shut down (by e.g.  disconnecting the cable), the
driver should use host_link_state to get port's current
physical state. This is due to the fact that physical state
is read from DC's CSRs and when DC is shut down and state is
changed, its registers are not impacted.

Reviewed-by: Jakub Byczkowski <jakub.byczkowski@intel.com>
Signed-off-by: Bartlomiej Dudek <bartlomiej.dudek@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/hfi.h