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

Commit 1cada511 authored by Zohaib Alam's avatar Zohaib Alam
Browse files

msm: mdss: make dma pipe clk-ctrl-offsets parsing optional



Certain chip-sets like mpq8092 don't have DMA pipes. Current code
of parsing clk-ctrl-offsets doesn't consider that and cause
regression. Fix this by making clk-ctrl-offsets parsing optional
for DMA pipes

Change-Id: I07590245a02cca389df2d2bc8dc994182daf71e8
Signed-off-by: default avatarZohaib Alam <zalam@codeaurora.org>
parent 90d52535
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -1866,12 +1866,13 @@ static int mdss_mdp_parse_dt_pipe(struct platform_device *pdev)
	if (rc)
		goto parse_fail;

	if (mdata->ndma_pipes) {
		rc = mdss_mdp_parse_dt_pipe_clk_ctrl(pdev,
			"qcom,mdss-pipe-dma-clk-ctrl-offsets", mdata->dma_pipes,
			mdata->ndma_pipes);
		if (rc)
			goto parse_fail;

	}

	mdss_mdp_parse_dt_handler(pdev, "qcom,mdss-pipe-sw-reset-off",
		&sw_reset_offset, 1);