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

Commit 8a1983be authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: npu: Allow sys cache activation failure"

parents 05d9cfee ff9b8f70
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1178,9 +1178,13 @@ int npu_enable_sys_cache(struct npu_device *npu_dev)

		pr_debug("prior to activate sys cache\n");
		rc = llcc_slice_activate(npu_dev->sys_cache);
		if (rc)
			pr_err("failed to activate sys cache\n");
		else
		if (rc) {
			pr_warn("failed to activate sys cache\n");
			llcc_slice_putd(npu_dev->sys_cache);
			npu_dev->sys_cache = NULL;
			return 0;
		}

		pr_debug("sys cache activated\n");
	}