IB/hfi1: Remove pstate from hfi1_pportdata
authorJakub Byczkowski <[email protected]>
Sun, 13 Aug 2017 15:08:52 +0000 (08:08 -0700)
committerDoug Ledford <[email protected]>
Tue, 22 Aug 2017 18:22:38 +0000 (14:22 -0400)
commitd392a673e718767049824f99c76bb483d893b881
tree708f9907b6f6b4e497c349607e3fc273b4873f5f
parentec0d8b8a63ee760bca1bccc6769d6210e05ded29
IB/hfi1: Remove pstate from hfi1_pportdata

Do not track physical state separately from host_link_state.
Deduce physical state from host_link_state when required.
Change cache_physical_state to log_physical_state to make
sure host_link_state reflects hardwares physical state properly.

Reviewed-by: Mike Marciniszyn <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Signed-off-by: Jakub Byczkowski <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/chip.h
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/mad.c