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

Commit 83d9a62d authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

Revert "scsi: ufs: reduce read-write requests timeout"



This reverts commit 6e348575.

Reduced request timeout seems to be not enough for few UFS devices. We are
reverting this patch until we find the optimal timeout value which will
work with all type of UFS devices.

Change-Id: I8557c238948b8e8062083b933b3573247ca65712
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent b37e3871
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -112,9 +112,6 @@
/* UIC command timeout, unit: ms */
#define UIC_CMD_TIMEOUT	500

/* Default request timeout value for the queue */
#define READ_WRITE_REQUEST_TIMEOUT	(3*HZ)	/* 3 seconds */

/* Retries waiting for doorbells to clear */
#define POWER_MODE_RETRIES	10

@@ -4378,7 +4375,7 @@ static int ufshcd_slave_configure(struct scsi_device *sdev)

	blk_queue_update_dma_pad(q, PRDT_DATA_BYTE_COUNT_PAD - 1);
	blk_queue_max_segment_size(q, PRDT_DATA_BYTE_COUNT_MAX);
	blk_queue_rq_timeout(q, READ_WRITE_REQUEST_TIMEOUT);

	sdev->autosuspend_delay = UFSHCD_AUTO_SUSPEND_DELAY_MS;
	sdev->use_rpm_auto = 1;