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

Commit 6416929a 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: Set the active context to null after MMU is stopped"

parents a706bd2d 6342e6b9
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1712,8 +1712,6 @@ static int adreno_stop(struct kgsl_device *device)
		}
	}

	adreno_set_active_ctxs_null(adreno_dev);

	adreno_dispatcher_stop(adreno_dev);

	adreno_ringbuffer_stop(adreno_dev);
@@ -1752,6 +1750,12 @@ static int adreno_stop(struct kgsl_device *device)

	kgsl_mmu_stop(&device->mmu);

	/*
	 * At this point, MMU is turned off so we can safely
	 * destroy any pending contexts and their pagetables
	 */
	adreno_set_active_ctxs_null(adreno_dev);

	clear_bit(ADRENO_DEVICE_STARTED, &adreno_dev->priv);

	return 0;