[PATCH v2 2/3] ufs: core: fix abnormal scale up after last cmd finish

Martin K. Petersen martin.petersen at oracle.com
Fri Oct 13 10:59:10 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>

Applied 1-3 to 6.7/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering



More information about the Linux-mediatek mailing list