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

Commit 04a2ce92 authored by Yaniv Gardi's avatar Yaniv Gardi
Browse files

scsi: ufs: add quirks for a new UFS host controller version



This change adds a new set of UFS host controllers quirks as there
is a new version of UFS controllers.

Change-Id: Ie0f96f7fbc8928d29cd760c14258d8497a979a99
Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent 35e54c70
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -2580,16 +2580,19 @@ static void msm_ufs_advertise_quirks(struct ufs_hba *hba)

	msm_ufs_get_controller_revision(hba, &major, &minor, &step);

	if ((major == 0x1) && (minor == 0x001) && (step == 0x0001)) {
	if ((major == 0x1) && (minor == 0x001) && (step == 0x0001))
		hba->quirks |= (UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS
			      | UFSHCD_QUIRK_BROKEN_INTR_AGGR
			      | UFSHCD_QUIRK_BROKEN_PA_RXHSUNTERMCAP
			      | UFSHCD_QUIRK_BROKEN_LCC);
	else if ((major == 0x1) && (minor == 0x002) && (step == 0x0000))
		hba->quirks |= (UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS
			      | UFSHCD_QUIRK_BROKEN_PA_RXHSUNTERMCAP
			      | UFSHCD_QUIRK_BROKEN_LCC);

	phy->quirks = (MSM_UFS_PHY_QUIRK_CFG_RESTORE
			     | MSM_UFS_PHY_DIS_SIGDET_BEFORE_PWR_COLLAPSE);
}
}

static int msm_ufs_get_bus_vote(struct msm_ufs_host *host,
		const char *speed_mode)