浏览代码

[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: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
adam radford 14 年之前
父节点
当前提交
1ac515ef3f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      drivers/scsi/megaraid/megaraid_sas_base.c

+ 3 - 1
drivers/scsi/megaraid/megaraid_sas_base.c

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