Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e636a7a4 authored by Shivasharan S's avatar Shivasharan S Committed by Martin K. Petersen
Browse files

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: default avatarKashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: default avatarShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Cc: stable@vger.kernel.org
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Reviewed-by: default avatarTomas Henzl <thenzl@redhat.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent ed2983f4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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))