touch: Correct return codes for S/R
Adding correct condition of return codes for core suspend and resume. Change-Id: I6b9bf0fa1032f2d717535c48ec5e3ba5711b7d90 Signed-off-by: Sachin Kumar Garg <quic_sachinku@quicinc.com>
这个提交包含在:

提交者
Gerrit - the friendly Code Review server

父节点
01206d278d
当前提交
9beefc5e6f
@@ -10527,7 +10527,7 @@ static int pt_core_suspend_(struct device *dev)
|
|||||||
pt_debug(dev, DL_INFO, "%s: Entering into suspend mode:\n",
|
pt_debug(dev, DL_INFO, "%s: Entering into suspend mode:\n",
|
||||||
__func__);
|
__func__);
|
||||||
rc = pt_core_sleep(cd);
|
rc = pt_core_sleep(cd);
|
||||||
if (rc) {
|
if (rc < 0) {
|
||||||
pt_debug(dev, DL_ERROR, "%s: Error on sleep\n", __func__);
|
pt_debug(dev, DL_ERROR, "%s: Error on sleep\n", __func__);
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
}
|
}
|
||||||
@@ -10537,7 +10537,7 @@ static int pt_core_suspend_(struct device *dev)
|
|||||||
dev_err(dev, "%s: Failed to disable regulators: rc=%d\n",
|
dev_err(dev, "%s: Failed to disable regulators: rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
}
|
}
|
||||||
dev_info(dev, "%s: Sayantan1: Voltage regulators disabled: rc=%d\n",
|
dev_info(dev, "%s: Voltage regulators disabled: rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
|
|
||||||
if (!IS_EASY_WAKE_CONFIGURED(cd->easy_wakeup_gesture) && !cd->runtime)
|
if (!IS_EASY_WAKE_CONFIGURED(cd->easy_wakeup_gesture) && !cd->runtime)
|
||||||
@@ -10557,7 +10557,7 @@ static int pt_core_suspend_(struct device *dev)
|
|||||||
__func__);
|
__func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
@@ -10637,7 +10637,7 @@ static int pt_core_resume_(struct device *dev)
|
|||||||
|
|
||||||
exit:
|
exit:
|
||||||
rc = pt_core_wake(cd);
|
rc = pt_core_wake(cd);
|
||||||
if (rc) {
|
if (rc < 0) {
|
||||||
dev_err(dev, "%s: Failed to wake up: rc=%d\n",
|
dev_err(dev, "%s: Failed to wake up: rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
|
在新工单中引用
屏蔽一个用户