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

Commit 1e8f7b56 authored by Mao Jinlong's avatar Mao Jinlong
Browse files

dcc_v2: Reset the lock register if config dcc list fails



Reset the lock register if config dcc list fails. Otherwise the list
will be always locked before next dcc_disable.

Change-Id: I2bd209ba84fe4896cce5bf72cdb3d06d2377a383
Signed-off-by: default avatarMao Jinlong <jinlmao@codeaurora.org>
parent 1fbb233d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -600,6 +600,7 @@ static int dcc_enable(struct dcc_drvdata *drvdata)
		ram_cfg_base = drvdata->ram_cfg;
		ret = __dcc_ll_cfg(drvdata, list);
		if (ret) {
			dcc_writel(drvdata, 0, DCC_LL_LOCK(list));
			dev_info(drvdata->dev, "DCC ram programming failed\n");
			goto err;
		}