scsi: megaraid_sas: set minimum value of resetwaittime to be 1 secs
Setting resetwaittime to 0 during a FW fault will result in driver not calling the OCR. Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com> Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com> Cc: stable@vger.kernel.org Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
ed2983f458
commit
e636a7a430
|
@ -5479,7 +5479,8 @@ static int megasas_init_fw(struct megasas_instance *instance)
|
|||
instance->throttlequeuedepth =
|
||||
MEGASAS_THROTTLE_QUEUE_DEPTH;
|
||||
|
||||
if (resetwaittime > MEGASAS_RESET_WAIT_TIME)
|
||||
if ((resetwaittime < 1) ||
|
||||
(resetwaittime > MEGASAS_RESET_WAIT_TIME))
|
||||
resetwaittime = MEGASAS_RESET_WAIT_TIME;
|
||||
|
||||
if ((scmd_timeout < 10) || (scmd_timeout > MEGASAS_DEFAULT_CMD_TIMEOUT))
|
||||
|
|
Loading…
Reference in a new issue