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

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

Merge "msm: kgsl: Avoid AOP message on unsupported A640 GPUs"

parents b40e37fa 3ac1c627
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1306,6 +1306,9 @@ static int gmu_aop_mailbox_init(struct kgsl_device *device,
	struct adreno_device *adreno_dev = ADRENO_DEVICE(device);
	struct kgsl_mailbox *mailbox = &gmu->mailbox;

	if (adreno_is_a640v2(adreno_dev) && (!adreno_dev->speed_bin))
		return 0;

	mailbox->client = kzalloc(sizeof(*mailbox->client), GFP_KERNEL);
	if (!mailbox->client)
		return -ENOMEM;
@@ -1322,8 +1325,8 @@ static int gmu_aop_mailbox_init(struct kgsl_device *device,
		return PTR_ERR(mailbox->channel);
	}

	if (adreno_dev->speed_bin)
	set_bit(ADRENO_ACD_CTRL, &adreno_dev->pwrctrl_flag);

	return 0;
}