diff mbox

[01/21] lpfc: Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset

Message ID 1428095421.6933.29.camel@myfc17 (mailing list archive)
State New, archived
Headers show

Commit Message

James Smart April 3, 2015, 9:10 p.m. UTC
Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset

Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
---
 drivers/scsi/lpfc/lpfc_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sebastian Herbszt April 5, 2015, 1:08 p.m. UTC | #1
James Smart wrote:
> Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset
> 
> Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com>
> Signed-off-by: James Smart <james.smart@emulex.com>
> ---
>  drivers/scsi/lpfc/lpfc_init.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
> index 0b2c53a..2b5b910 100644
> --- a/drivers/scsi/lpfc/lpfc_init.c
> +++ b/drivers/scsi/lpfc/lpfc_init.c
> @@ -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: Sebastian Herbszt <herbszt@gmx.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Hannes Reinecke April 10, 2015, 6:04 a.m. UTC | #2
On 04/03/2015 11:10 PM, James Smart wrote:
> Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset
> 
> 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>

Cheers,

Hannes
diff mbox

Patch

diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 0b2c53a..2b5b910 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -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;