mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
bus: mhi: host: Panic if suspend ack times out
If suspend ack does not arrive on time, MHI host currently bails out silently. Panic if this happens such that issues can be pin- pointed to root causes. Change-Id: Ic2201aafc2a55d572311ec9ee8a8b9c8a60a1da4 Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org> Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
This commit is contained in:
parent
9204f9fa1e
commit
d5d939f536
|
|
@ -884,7 +884,11 @@ int mhi_pm_suspend(struct mhi_controller *mhi_cntrl)
|
|||
MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state),
|
||||
msecs_to_jiffies(mhi_cntrl->timeout_ms));
|
||||
|
||||
if (!ret || MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) {
|
||||
if (!ret) {
|
||||
mhi_debug_reg_dump(mhi_cntrl);
|
||||
panic("Timedout waiting for M3 ACK");
|
||||
return -EIO;
|
||||
} else if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) {
|
||||
dev_err(dev,
|
||||
"Did not enter M3 state, MHI state: %s, PM state: %s\n",
|
||||
mhi_state_str(mhi_cntrl->dev_state),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user