Commit 1ac515ef authored by adam radford's avatar adam radford Committed by James Bottomley

[SCSI] megaraid_sas: Fix fault state handling

The following patch for megaraid_sas fixes fault state handling in
megasas_transition_to_ready().
Signed-off-by: default avatarAdam Radford <aradford@gmail.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent f86c5424
...@@ -2613,7 +2613,9 @@ megasas_transition_to_ready(struct megasas_instance* instance) ...@@ -2613,7 +2613,9 @@ megasas_transition_to_ready(struct megasas_instance* instance)
case MFI_STATE_FAULT: case MFI_STATE_FAULT:
printk(KERN_DEBUG "megasas: FW in FAULT state!!\n"); printk(KERN_DEBUG "megasas: FW in FAULT state!!\n");
return -ENODEV; max_wait = MEGASAS_RESET_WAIT_TIME;
cur_state = MFI_STATE_FAULT;
break;
case MFI_STATE_WAIT_HANDSHAKE: case MFI_STATE_WAIT_HANDSHAKE:
/* /*
......
Markdown is supported
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