IB/hfi1: Return correct value for device state
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Wed, 2 May 2018 13:42:59 +0000 (06:42 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 9 May 2018 19:53:29 +0000 (15:53 -0400)
commite4607073ffa5c72279370ba91113b76e70f62e16
tree5f415d2c0bbbed94ef10b1b50d38c7811453493a
parent8c79d8223bb11b2f005695a32ddd3985de97727c
IB/hfi1: Return correct value for device state

The driver_pstate() function is used to map internal driver state
information to externally defined states.

The VERIFY_CAP and GOING_UP states are config/training states, but
the mapping routing returns the POLLING value.

Update the return values for VERIFY_CAP and GOING_UP to return the
correct value: TRAINING.

Reviewed-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@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