]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/hfi1: Do not set physical link state if DC is in the shutdown state
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Wed, 8 Feb 2017 13:28:13 +0000 (05:28 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 19 Feb 2017 14:18:43 +0000 (09:18 -0500)
commitdb069ecb5d4dcd297628d5ebc56dd22bdbab9729
tree9443e114c9cb552a2d18d3328e79328d345ead39
parentc27aad00d191e8ba88fe755db53b9f2b8cefc0e9
IB/hfi1: Do not set physical link state if DC is in the shutdown state

If the DC is in shutdown state, the set link state function will return
an error.  Since this is not a failure in this state, make sure to
only call set link state if the DC is on.

Reviewed-by: Easwar Hariharan <easwar.hariharan@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