Re: [PATCH v10 13/18] scsi: ufs: mediatek: Rework the code for disabling auto-hibernation

Bart Van Assche
2023-08-22T15:54:22Z

On 8/22/23 02:20, Peter Wang (王信友) wrote:
> Cannot call ufshcd_auto_hibern8_update here.
> ufshcd_auto_hibern8_update will get runtime pm.
> but
> ufs_mtk_auto_hibern8_disable only used in runtime suspend flow.
> So, call ufshcd_auto_hibern8_update will get deadlock to wait runtime
> resume.

Hi Peter,

Thanks for the feedback. I'm going to drop this patch and also ufs-hisi
patch. Although that will lead to suboptimal performance if the user
enables auto-hibernation, users can achieve full performance for small
zoned writes by disabling auto-hibernation through sysfs.

Thanks,

Bart.