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: George Shen <sqiao@codeaurora.org>
This commit is contained in:
George Shen 2020-03-31 11:18:51 -07:00
commit 762ad3fd5b

View file

@ -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;
}