diff mbox series

remoteproc: core: do pm relax when not first crash

Message ID 1662710731-57212-1-git-send-email-quic_aiquny@quicinc.com (mailing list archive)
State Superseded
Headers show
Series remoteproc: core: do pm relax when not first crash | expand

Commit Message

Aiqun Yu (Maria) Sept. 9, 2022, 8:05 a.m. UTC
Even if it is not first crash, need to relax the pm
wakelock otherwise the device will stay awake.

Change-Id: I26bfeb44871aab0b57837a77a6243b2086f94473
Signed-off-by: Maria Yu <quic_aiquny@quicinc.com>
---
 drivers/remoteproc/remoteproc_core.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Aiqun Yu (Maria) Sept. 9, 2022, 8:41 a.m. UTC | #1
On 9/9/2022 4:05 PM, Maria Yu wrote:
> Even if it is not first crash, need to relax the pm
> wakelock otherwise the device will stay awake.
> 
> Change-Id: I26bfeb44871aab0b57837a77a6243b2086f94473
Removed Change-Id in the later new patchset.
Pls ignore this.
> Signed-off-by: Maria Yu <quic_aiquny@quicinc.com>
> ---
>   drivers/remoteproc/remoteproc_core.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
> index e5279ed9a8d7..30078043e939 100644
> --- a/drivers/remoteproc/remoteproc_core.c
> +++ b/drivers/remoteproc/remoteproc_core.c
> @@ -1956,6 +1956,7 @@ static void rproc_crash_handler_work(struct work_struct *work)
>   	if (rproc->state == RPROC_CRASHED || rproc->state == RPROC_OFFLINE) {
>   		/* handle only the first crash detected */
>   		mutex_unlock(&rproc->lock);
> +		pm_relax(rproc->dev.parent);
>   		return;
>   	}
>   
>
diff mbox series

Patch

diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index e5279ed9a8d7..30078043e939 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -1956,6 +1956,7 @@  static void rproc_crash_handler_work(struct work_struct *work)
 	if (rproc->state == RPROC_CRASHED || rproc->state == RPROC_OFFLINE) {
 		/* handle only the first crash detected */
 		mutex_unlock(&rproc->lock);
+		pm_relax(rproc->dev.parent);
 		return;
 	}