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

Commit 762ad3fd authored by George Shen's avatar George Shen
Browse files

msm: cvp: Reverse cvp gdsc and cbcr ctrl sequence



It fixes a CVP CBCR access timeout induced NOC ERR.

Change-Id: I5ec7b016c0db62b84ffc05c58cba5cbc3b29f98d
Signed-off-by: default avatarGeorge Shen <sqiao@codeaurora.org>
parent 1264c046
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -4144,10 +4144,6 @@ static void power_off_iris2(struct iris_hfi_device *device)
		dprintk(CVP_WARN,
			"DBLP Release: lpi_status %x\n", lpi_status);
	}
	/* HPG 6.1.2 Step 5 */
	if (__disable_regulators(device))
		dprintk(CVP_WARN, "Failed to disable regulators\n");


	/* HPG 6.1.2 Step 6 */
	__disable_unprepare_clks(device);
@@ -4159,6 +4155,10 @@ static void power_off_iris2(struct iris_hfi_device *device)
	if (__unvote_buses(device))
		dprintk(CVP_WARN, "Failed to unvote for buses\n");

	/* HPG 6.1.2 Step 5 */
	if (__disable_regulators(device))
		dprintk(CVP_WARN, "Failed to disable regulators\n");

	/*Do not access registers after this point!*/
	device->power_enabled = false;
}