]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[SCSI] megaraid_sas: Fix fault state handling
authoradam radford <aradford@gmail.com>
Fri, 25 Feb 2011 04:57:04 +0000 (20:57 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 28 Feb 2011 18:01:41 +0000 (12:01 -0600)
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 22ec9f0491812f8b624cd2ff39f8942a2c3ac7f8..c9d82b56c6d797c1acf0b34e977162bfefc1d63c 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:
                        /*