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

Commit 9ba54211 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 1ffdc7ab 04a2ce92
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)