diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index c9b2eefbd7b0b..2622791bad0f8 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -1214,8 +1214,6 @@ int ufshcd_scale_clks(struct ufs_hba *hba, unsigned long freq, bool scale_up) goto out; } - ufshcd_pm_qos_update(hba, scale_up); - out: trace_ufshcd_profile_clk_scaling(hba, (scale_up ? "up" : "down"), @@ -9950,8 +9948,8 @@ static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on) if (ret) return ret; - if (!ufshcd_is_clkscaling_supported(hba)) - ufshcd_pm_qos_update(hba, on); + /* Hold the PM QoS vote while the controller is active to keep CPUs out of deep idle. */ + ufshcd_pm_qos_update(hba, on); out: if (ret) { list_for_each_entry(clki, head, list) {