FROMGIT: Revert "Make sure clk scaling happens only when HBA is runtime ACTIVE"
Commit73cc291c27("scsi: ufs: Make sure clk scaling happens only when HBA is runtime ACTIVE") is no longer needed since commit0e9d4ca43b("scsi: ufs: Protect some contexts from unexpected clock scaling") is a more mature fix to protect UFS LLD stability from clock scaling invoked through sysfs nodes by users. Link: https://lore.kernel.org/r/1611137065-14266-4-git-send-email-cang@codeaurora.org Reviewed-by: Stanley Chu <stanley.chu@mediatek.com> Signed-off-by: Can Guo <cang@codeaurora.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Bug: 189417930 (cherry picked from commitb02d51afcagit://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 5.14/scsi-queue) Change-Id: I752b3611ca2b85b9ddd0cc457310ff4c57baa27b Signed-off-by: Can Guo <cang@codeaurora.org>
This commit is contained in:
parent
3a3b24ef29
commit
b9a049ac4e
1 changed files with 0 additions and 7 deletions
|
|
@ -1316,15 +1316,8 @@ static int ufshcd_devfreq_target(struct device *dev,
|
|||
}
|
||||
spin_unlock_irqrestore(hba->host->host_lock, irq_flags);
|
||||
|
||||
pm_runtime_get_noresume(hba->dev);
|
||||
if (!pm_runtime_active(hba->dev)) {
|
||||
pm_runtime_put_noidle(hba->dev);
|
||||
ret = -EAGAIN;
|
||||
goto out;
|
||||
}
|
||||
start = ktime_get();
|
||||
ret = ufshcd_devfreq_scale(hba, scale_up);
|
||||
pm_runtime_put(hba->dev);
|
||||
|
||||
trace_ufshcd_profile_clk_scaling(dev_name(hba->dev),
|
||||
(scale_up ? "up" : "down"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue