lpfc: Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_fun...
authorJames Smart <james.smart@emulex.com>
Tue, 7 Apr 2015 19:07:08 +0000 (15:07 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 10 Apr 2015 14:44:33 +0000 (07:44 -0700)
Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/lpfc/lpfc_init.c

index 0b2c53af85c7cedc592c4ccd6eccfea6b5140ed6..2b5b91040022148a857998a1e994ae95f051a631 100644 (file)
@@ -7953,7 +7953,7 @@ wait:
                 * up to 30 seconds. If the port doesn't respond, treat
                 * it as an error.
                 */
-               for (rdy_chk = 0; rdy_chk < 3000; rdy_chk++) {
+               for (rdy_chk = 0; rdy_chk < 1500; rdy_chk++) {
                        if (lpfc_readl(phba->sli4_hba.u.if_type2.
                                STATUSregaddr, &reg_data.word0)) {
                                rc = -ENODEV;