diff options
author | Bhaumik Bhatt <bbhatt@codeaurora.org> | 2019-09-20 20:13:40 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-09-27 06:56:32 -0700 |
commit | 99af69525e361330f4fe2ddb634492ae17db5455 (patch) | |
tree | c8128e2ee2f920861b7a3b240b9c09a42a234046 | |
parent | 716fc842a3268e65bb24feb6e85eb039b074f07a (diff) |
mhi: cntrl: return EBUSY from runtime pm ops in error scenariosLA.UM.7.1.r1-16900-sm8150.0
Returning error codes other than -EBUSY or -EAGAIN from any
runtime pm registered callbacks blocks future suspend requests
from being queued. Allow those requests to get queued from auto
suspend timers by always returning -EBUSY upon errors.
Change-Id: Ie289d129cf7b4bf43e82ec263b112a1743ffd75a
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
-rw-r--r-- | drivers/bus/mhi/controllers/mhi_qcom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bus/mhi/controllers/mhi_qcom.c b/drivers/bus/mhi/controllers/mhi_qcom.c index 8f6d8ca97395..994f43a49a2a 100644 --- a/drivers/bus/mhi/controllers/mhi_qcom.c +++ b/drivers/bus/mhi/controllers/mhi_qcom.c @@ -223,7 +223,7 @@ exit_runtime_suspend: mutex_unlock(&mhi_cntrl->pm_mutex); MHI_LOG("Exited with ret:%d\n", ret); - return ret; + return (ret < 0) ? -EBUSY : 0; } static int mhi_runtime_idle(struct device *dev) @@ -275,7 +275,7 @@ rpm_resume_exit: mutex_unlock(&mhi_cntrl->pm_mutex); MHI_LOG("Exited with :%d\n", ret); - return ret; + return (ret < 0) ? -EBUSY : 0; } static int mhi_system_resume(struct device *dev) |