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

Commit 746ec858 authored by Vara Reddy's avatar Vara Reddy
Browse files

drm/msm/dsi-staging: correct return value of dsi_host_transfer



Fix the dsi_host_transfer API to accurately return the error
code in case of failures.

CRs-Fixed: 2191069
Change-Id: I54503ca2f2fc02bf2374abae5147b8c1f13eff02
Signed-off-by: default avatarVara Reddy <varar@codeaurora.org>
parent 0e6e8a2a
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -2706,7 +2706,7 @@ static ssize_t dsi_host_transfer(struct mipi_dsi_host *host,
				 const struct mipi_dsi_msg *msg)
{
	struct dsi_display *display = to_dsi_display(host);
	int rc = 0;
	int rc = 0, ret = 0;

	if (!host || !msg) {
		pr_err("Invalid params\n");
@@ -2764,13 +2764,17 @@ static ssize_t dsi_host_transfer(struct mipi_dsi_host *host,
	}

error_disable_cmd_engine:
	(void)dsi_display_cmd_engine_disable(display);
	ret = dsi_display_cmd_engine_disable(display);
	if (ret) {
		pr_err("[%s]failed to disable DSI cmd engine, rc=%d\n",
				display->name, ret);
	}
error_disable_clks:
	rc = dsi_display_clk_ctrl(display->dsi_clk_handle,
	ret = dsi_display_clk_ctrl(display->dsi_clk_handle,
			DSI_ALL_CLKS, DSI_CLK_OFF);
	if (rc) {
	if (ret) {
		pr_err("[%s] failed to disable all DSI clocks, rc=%d\n",
		       display->name, rc);
		       display->name, ret);
	}
error:
	return rc;