]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mpt3sas: Get IOC_FACTS information using handshake protocol only after HBA card gets...
authorSreekanth Reddy <sreekanth.reddy@avagotech.com>
Tue, 30 Jun 2015 06:54:48 +0000 (12:24 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Oct 2015 19:29:01 +0000 (15:29 -0400)
commitc1aa83ca4c870eb9b66deb3207b6b847fe7d0d4d
tree9d56fa4eb131f9453005c7d6418f0839513521a8
parentc251519543b3af511498ad80c0caacc5ff1e8278
mpt3sas: Get IOC_FACTS information using handshake protocol only after HBA card gets into READY or Operational state.

Driver initialization fails if driver tries to send IOC facts request message
when the IOC is in reset or in a fault state.

This patch will make sure that

 1.Driver to send IOC facts request message only if HBA is in operational or
   ready state.

 2.If IOC is in fault state, a diagnostic reset would be issued.

 3.If IOC is in reset state then driver will wait for 10 seconds to exit out
   of reset state.  If the HBA continues to be in reset state, then the HBA
   wouldn't be claimed by the driver.

Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
(cherry picked from commit 4dc8c8087f0304ff8d06f862520406b11aac4a66)
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c