[SCSI] megaraid_sas: Fix fault state handling
adam radford [Fri, 25 Feb 2011 04:57:04 +0000 (20:57 -0800)]
The following patch for megaraid_sas fixes fault state handling in
megasas_transition_to_ready().

Signed-off-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

drivers/scsi/megaraid/megaraid_sas_base.c

index 22ec9f0..c9d82b5 100644 (file)
@@ -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:
                        /*