From: Chad Dupuis Date: Thu, 9 Apr 2015 18:59:57 +0000 (-0400) Subject: qla2xxx: Increase the wait time for firmware to be ready for P3P. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=334614912b252b49f2e218e3efaddf86edd7f91a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git qla2xxx: Increase the wait time for firmware to be ready for P3P. Signed-off-by: Chad Dupuis Signed-off-by: Himanshu Madhani Reviewed-by: Hannes Reinecke Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index e59f25bff7ab..cb294e5cdddd 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -2243,8 +2243,11 @@ qla2x00_fw_ready(scsi_qla_host_t *vha) rval = QLA_SUCCESS; - /* 20 seconds for loop down. */ - min_wait = 20; + /* Time to wait for loop down */ + if (IS_P3P_TYPE(ha)) + min_wait = 30; + else + min_wait = 20; /* * Firmware should take at most one RATOV to login, plus 5 seconds for