]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/hfi1: Fix checks for Offline transient state
authorJakub Byczkowski <jakub.byczkowski@intel.com>
Thu, 4 May 2017 12:13:58 +0000 (05:13 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 4 May 2017 23:31:46 +0000 (19:31 -0400)
commit02d1008bcf41c7eada7882df673ae3794f7bfea8
tree5db37b187212312af426a63565b13e5fa9138c48
parent0d7e2d2166f6b0b7d1959ca858052a15feb574cc
IB/hfi1: Fix checks for Offline transient state

In goto_offline() function pstate is masked by 0xff when compared
to PLS_OFFLINE state. Mask should be 0xf0, since upper 4 bits
specify the "major" state.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Easwar Hariharan <easwar.hariharan@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