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

Commit 59a24ab5 authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Check for GPMU feature before requesting firmware



No need to try and load the firmware if the GPMU isn't supported
on the device.

Change-Id: I8fa841fb9f1d159f0e3ab94f246d262fe519422b
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 34f0b490
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -804,6 +804,9 @@ static int _load_gpmu_firmware(struct adreno_device *adreno_dev)
	uint32_t fw_size, header_size, block_size;
	int ret;

	if (!ADRENO_FEATURE(adreno_dev, ADRENO_GPMU))
		return 0;

	/* gpmu fw already saved and verified so do nothing new */
	if (adreno_dev->gpmu_cmds_size != 0)
		return 0;