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

Commit c11aba75 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: call clk_scale_notify only if clocks are scaled"

parents b8f71da9 82a4896e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7967,7 +7967,7 @@ static int ufshcd_scale_clks(struct ufs_hba *hba, bool scale_up)
	hba->pm_qos.is_suspended = !scale_up;
	spin_unlock_irqrestore(hba->host->host_lock, flags);

	if (hba->vops->clk_scale_notify)
	if (clk_state_changed && hba->vops->clk_scale_notify)
		hba->vops->clk_scale_notify(hba);
out:
	if (clk_state_changed)