浏览代码

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 <[email protected]>
Signed-off-by: Steve Cohen <[email protected]>
Lipsa Rout 5 年之前
父节点
当前提交
96e7af3205
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      msm/dsi/dsi_ctrl.c

+ 1 - 4
msm/dsi/dsi_ctrl.c

@@ -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: