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

[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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2613,7 +2613,9 @@ megasas_transition_to_ready(struct megasas_instance* instance)
		case MFI_STATE_FAULT:

			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:
			/*