On 8/28/24 2:17 AM, Peter Wang (王信友) wrote:
No, I means you can reference ufs-sprd.c driver. which may have the same issue? /* * Disable UIC COMPL INTR to prevent access to UFSHCI after * checking HCS.UPMCRS */ ufs_sprd_ctrl_uic_compl(hba, false); Then after enter hibernte, you can prevent access to UFSHCI. After exit hibernate, enable uic complete interrupt again for workaround.
Hi Peter, My opinion about this is as follows: * Host drivers should not disable or enable the UIC completion interrupt. Only the UFS controller core driver should do this. * The behavior I'm observing is that modifying the REG_INTERRUPT_ENABLE register is sufficient to cause the UniPro link to exit the hibernation state. Avoiding this cannot be achieved in a clean way without modifying the UFS controller core driver. Thanks, Bart.