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

Commit 29674d74 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: enable auto hibern8 only after device initialization"

parents 0f04e7c4 70399030
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -7008,11 +7008,6 @@ static int ufshcd_probe_hba(struct ufs_hba *hba)
	if (ret)
		goto out;

	/* Enable auto hibern8 if supported */
	if (ufshcd_is_auto_hibern8_supported(hba))
		ufshcd_set_auto_hibern8_timer(hba,
					      hba->hibern8_on_idle.delay_ms);

	/* Debug counters initialization */
	ufshcd_clear_dbg_ufs_stats(hba);
	/* set the default level for urgent bkops */
@@ -7079,6 +7074,13 @@ static int ufshcd_probe_hba(struct ufs_hba *hba)
		if (ufshcd_scsi_add_wlus(hba))
			goto out;

		/* Enable auto hibern8 if supported, after full host and
		 * device initialization.
		 */
		if (ufshcd_is_auto_hibern8_supported(hba))
			ufshcd_set_auto_hibern8_timer(hba,
					      hba->hibern8_on_idle.delay_ms);

		/* Initialize devfreq after UFS device is detected */
		if (ufshcd_is_clkscaling_supported(hba)) {
			memcpy(&hba->clk_scaling.saved_pwr_info.info,