[PATCH v2 2/3] ufs: core: fix abnormal scale up after last cmd finish
Bart Van Assche
bvanassche at acm.org
Fri Oct 13 09:33:37 PDT 2023
On 8/31/23 06:08, peter.wang at mediatek.com wrote:
> When ufshcd_clk_scaling_suspend_work(Thread A) running and new command
> coming, ufshcd_clk_scaling_start_busy(Thread B) may get host_lock
> after Thread A first time release host_lock. Then Thread A second time
> get host_lock will set clk_scaling.window_start_t = 0 which scale up
> clock abnormal next polling_ms time.
> Also inlines another __ufshcd_suspend_clkscaling calls.
Reviewed-by: Bart Van Assche <bvanassche at acm.org>
More information about the Linux-mediatek
mailing list