Commit dcc68e52 authored by Dean Luick's avatar Dean Luick Committed by Doug Ledford
Browse files

staging/rdma/hfi1: No firmware retry for simulation

Simulation has no firmware, so it will never move firmware
acquire to the FINAL state.  Avoid that by skiping the TRY
state and moving directly to FINAL.
Reviewed-by: default avatarDennis Dalessandro <>
Signed-off-by: default avatarDean Luick <>
Signed-off-by: default avatarDoug Ledford <>
parent 715c430c
......@@ -631,7 +631,8 @@ static void __obtain_firmware(struct hfi1_devdata *dd)
fw_err = -ENOENT;
} else {
/* success */
if (fw_state == FW_EMPTY)
if (fw_state == FW_EMPTY &&
fw_state = FW_TRY; /* may retry later */
fw_state = FW_FINAL; /* cannot try again */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment