[PATCH v1] ufs: core: fix deadlock when rtc update

Peter Wang (王信友) peter.wang at mediatek.com
Sun Jul 14 23:31:52 PDT 2024


On Mon, 2024-07-15 at 00:37 +0200, Bean Huo wrote:
> 
> or can we change cancel_delayed_work_sync(&hba->ufs_rtc_update_work);
> to cancel_delayed_work(&hba->ufs_rtc_update_work);  ??
> 
> 
> 
> kind regards,
> Bean

Hi Bean,

Using cancel_delayed_work instead of cancel_delayed_work_sync could
work, 
but it may lead to wasted time resume, RTC update, and suspend again.
It has increased the system's power consumption.

Thanks.
Peter


More information about the Linux-mediatek mailing list