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

Commit 799f085d authored by Gilad Broner's avatar Gilad Broner
Browse files

scsi: ufs: adjust DME command delay



DME command delay is used to ensure a sufficient interval between
subsequent commands. The hardware programming guide specified 1ms.
Value of 700us was used as optimization, but it seems to be too short
so DME commands would sometimes fail.
Update the command delay to 1ms as recommended.

Change-Id: I8960f8488c261013ec95ef8c49b58ceda9d065f6
Signed-off-by: default avatarGilad Broner <gbroner@codeaurora.org>
parent 65ea13bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3363,7 +3363,7 @@ static int ufshcd_dme_link_startup(struct ufs_hba *hba)

static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba)
{
	#define MIN_DELAY_BEFORE_DME_CMDS_US	700
	#define MIN_DELAY_BEFORE_DME_CMDS_US	1000
	unsigned long min_sleep_time_us;

	if (!(hba->quirks & UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS))