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

Commit 940991a1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Do not decrease the KGSL open count" into msm-4.9

parents f90e36a7 e4d68fef
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@
#include "kgsl_sync.h"
#include "kgsl_compat.h"
#include "kgsl_pool.h"
#include "adreno.h"

#undef MODULE_PARAM_PREFIX
#define MODULE_PARAM_PREFIX "kgsl."
@@ -1045,7 +1046,10 @@ static int kgsl_close_device(struct kgsl_device *device)
	int result = 0;

	mutex_lock(&device->mutex);

	if (!adreno_is_a6xx(ADRENO_DEVICE(device)))
		device->open_count--;

	if (device->open_count == 0) {

		/* Wait for the active count to go to 0 */