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

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

Merge "msm: kgsl: Check for gmu prealloc failure only in case of prealloc request"

parents 2ddb7d0a a7296e5e
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1211,12 +1211,13 @@ static int a6xx_gmu_load_firmware(struct kgsl_device *device)
		offset += sizeof(*blk);

		if (blk->type == GMU_BLK_TYPE_PREALLOC_REQ ||
				blk->type == GMU_BLK_TYPE_PREALLOC_PERSIST_REQ)
			blk->type == GMU_BLK_TYPE_PREALLOC_PERSIST_REQ) {
			ret = gmu_prealloc_req(device, blk);

			if (ret)
				return ret;
		}
	}

	 /* Request any other cache ranges that might be required */
	return gmu_cache_finalize(device);