Skip to contentSkip to conversation

lpfc: Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset

PATCH In review James Smart 3 participants 3 messages Apr 3, 2015 – Apr 10, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/21 lpfc: Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset

Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset

---
 drivers/scsi/lpfc/lpfc_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_init.c +1 -1
index 0b2c53a..2b5b910 100644
@@ -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;
Signature · 1 line
1.7.11.7
Reviewed-by on v1 1/21
#1 lore raw
Quoted 13 lines · James Smart

Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset

---
 drivers/scsi/lpfc/lpfc_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_init.c +0 -0
index 0b2c53a..2b5b910 100644

drivers/scsi/lpfc/lpfc_init.c wait: · line 7959

Quoted 8 lines
drivers/scsi/lpfc/lpfc_init.c +1 -1
@@ -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;
Reviewed-by on v1 1/21
#2 lore raw
In reply to James Smart
Quoted 5 lines · James Smart

Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset

---

Cheers,

Hannes

Signature · 8 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html