Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49416898 authored by Lipsa Rout's avatar Lipsa Rout
Browse files

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: default avatarLipsa Rout <lrout@codeaurora.org>
parent e54eff08
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1035,10 +1035,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: