disp: msm: dsi: Handle pm_runtime_put_sync return value properly

Currently,power resource disable fails when pm_runtime_put_sync
returns negative values. Due to this, clock state update is
failing. pm_runtime_put_sync can return negative values in
scenarios where  pending resume requests take precedence over
suspends. This change allows pm_runtime_put_sync to return
negative vales also.

Change-Id: I1a46ca574129ba953ddb6300f9b3ab24cdb3171e
Signed-off-by: Lipsa Rout <lrout@codeaurora.org>
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
Цей коміт міститься в:
Lipsa Rout
2020-05-04 15:40:32 +05:30
зафіксовано Steve Cohen
джерело 755686a110
коміт 96e7af3205

Переглянути файл

@@ -1084,10 +1084,7 @@ static int dsi_ctrl_enable_supplies(struct dsi_ctrl *dsi_ctrl, bool enable)
goto error;
}
}
rc = pm_runtime_put_sync(dsi_ctrl->drm_dev->dev);
if (rc < 0)
DSI_CTRL_ERR(dsi_ctrl,
"Power resource disable failed, rc=%d\n", rc);
pm_runtime_put_sync(dsi_ctrl->drm_dev->dev);
return rc;
}
error_get_sync: