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

Commit e97f8617 authored by Can Guo's avatar Can Guo
Browse files

scsi: ufs: set peer device DL layer timers for TC1



Currently we don't set these PAPowerModeUserData[3..5] parameters in
PACP_PWR_Req frames, so all the DL layer timers for TC1 on peer device side
are 0s. This change sets the PAPowerModeUserData[3..5] to UniPro
specification recommended default values.

Change-Id: Ie207211597fa54a64bcf9f77b5812a74fff7d20c
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 9881e48f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -5567,6 +5567,12 @@ int ufshcd_change_power_mode(struct ufs_hba *hba,
			DL_TC0ReplayTimeOutVal_Default);
	ufshcd_dme_set(hba, UIC_ARG_MIB(PA_PWRMODEUSERDATA2),
			DL_AFC0ReqTimeOutVal_Default);
	ufshcd_dme_set(hba, UIC_ARG_MIB(PA_PWRMODEUSERDATA3),
			DL_FC1ProtectionTimeOutVal_Default);
	ufshcd_dme_set(hba, UIC_ARG_MIB(PA_PWRMODEUSERDATA4),
			DL_TC1ReplayTimeOutVal_Default);
	ufshcd_dme_set(hba, UIC_ARG_MIB(PA_PWRMODEUSERDATA5),
			DL_AFC1ReqTimeOutVal_Default);

	ufshcd_dme_set(hba, UIC_ARG_MIB(DME_LocalFC0ProtectionTimeOutVal),
			DL_FC0ProtectionTimeOutVal_Default);
+3 −0
Original line number Diff line number Diff line
@@ -185,6 +185,9 @@
#define DL_FC0ProtectionTimeOutVal_Default	8191
#define DL_TC0ReplayTimeOutVal_Default		65535
#define DL_AFC0ReqTimeOutVal_Default		32767
#define DL_FC1ProtectionTimeOutVal_Default	8191
#define DL_TC1ReplayTimeOutVal_Default		65535
#define DL_AFC1ReqTimeOutVal_Default		32767

#define DME_LocalFC0ProtectionTimeOutVal	0xD041
#define DME_LocalTC0ReplayTimeOutVal		0xD042