Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab12bb80 authored by Randall Huang's avatar Randall Huang Committed by Pranav Vashi
Browse files

scsi: ufs: Avoid race condition between reinit and suspend



In rtb log,

[0.846068] [259400502] : LOGK_READL ufs_qcom_suspend
[0.846069] [259400523] : LOGK_WRITEL ufs_qcom_suspend
[0.847777] [259433318] : LOGK_WRITEL ufshcd_host_reset_and_restore
[0.847780] [259433389] : LOGK_READL ufshcd_host_reset_and_restore

This causes ufshcd reinit failure.
Add rm_runtime_get_sync() to avoid entering runtime_suspend.

Also use ufshcd_reset_and_restore to follow ufshcd_err_handler()
design.

Bug: 151321015
Test: Fault injection
Signed-off-by: default avatarRandall Huang <huangrandall@google.com>
Change-Id: I2a0ce8cb8b518794f6f5f6cad7cfb08f12807b06
parent b0e8bfe0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment