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

Peter Wang (王信友)
2024-07-15T06:32:01Z

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