On 8/23/2024 6:54 PM, Bean Huo wrote:
On Thu, 2024-08-22 at 10:51 -0700, Bart Van Assche wrote:
On 8/22/24 7:17 AM, Bean Huo wrote:
Do you mean re-enabling UIC complete interrupt will cause the
problem?
That's correct. ufshcd_uic_hibern8_enter() calls
ufshcd_uic_pwr_ctrl()
indirectly. For the test setup that is on my desk, the code in
ufshcd_uic_pwr_ctrl() that re-enables the UIC completion interrupt
causes the UFS host controller to exit hibernation.
That is a weird UFS host controller behavior.
At least Qcom UFS host controller does not behave like this, because
accessing the
UFSHCI IRQ register does not require/involve link communication with the
UFS device.
Thanks,
Can Guo.
Thanks,
Bart.
Do you think this is only true in your case or for a specific UFS
controller vendor? and this doesnnot mean that all UFS controller
vendors have this problem? Maybe MTK has confirmed this.
Kind regards,
Bean