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

Commit 91595ad6 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: Make clock scaling path PM Safe"

parents 8f17416e 4d21c0e4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1932,7 +1932,9 @@ static int ufshcd_devfreq_target(struct device *dev,
	spin_unlock_irqrestore(hba->host->host_lock, irq_flags);

	start = ktime_get();
	pm_runtime_get_sync(hba->dev);
	ret = ufshcd_devfreq_scale(hba, scale_up);
	pm_runtime_put_sync(hba->dev);
	trace_ufshcd_profile_clk_scaling(dev_name(hba->dev),
		(scale_up ? "up" : "down"),
		ktime_to_us(ktime_sub(ktime_get(), start)), ret);