[SCSI] megaraid_sas: Add three times Online controller reset
authorYang, Bo <Bo.Yang@lsi.com>
Tue, 12 Oct 2010 13:20:27 +0000 (07:20 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 26 Oct 2010 16:07:07 +0000 (11:07 -0500)
commit707e09bd867cee4cd0e5bff0a67513aa0232fcec
tree7d36a852947513a5e5eb13662d7d5bc859782011
parent1fd106851698e9a858d20ab0e0f0afd5e9ec9332
[SCSI] megaraid_sas: Add three times Online controller reset

If fw didn't raise the interrupt with the fw state change to driver
and fw goes to failure state, driver Will check the FW state in
driver's timeout routine and issue the reset if need.  Driver will do
the OCR upto three times until kill adapter.  Also driver will issue
OCR before driver kill adapter even if fw in operational state.

Signed-off-by Bo Yang <bo.yang@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/megaraid/megaraid_sas.c