FROMLIST: ufs: core: only suspend clock scaling if scale down
If clock scale up and suspend clock scaling, ufs will keep high performance/power mode but no read/write requests on going. It is logic wrong and have power concern. Bug: 298004596 Link: https://lore.kernel.org/all/20230831130826.5592-2-peter.wang@mediatek.com/ Change-Id: I950ec28a506d7eb83c575d9bd482c41869e73848 Signed-off-by: Peter Wang <peter.wang@mediatek.com>
This commit is contained in:
parent
3ffb038098
commit
e490b62fed
1 changed files with 1 additions and 1 deletions
|
|
@ -1495,7 +1495,7 @@ static int ufshcd_devfreq_target(struct device *dev,
|
|||
ktime_to_us(ktime_sub(ktime_get(), start)), ret);
|
||||
|
||||
out:
|
||||
if (sched_clk_scaling_suspend_work)
|
||||
if (sched_clk_scaling_suspend_work && !scale_up)
|
||||
queue_work(hba->clk_scaling.workq,
|
||||
&hba->clk_scaling.suspend_work);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue