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

Commit 2fe8b7ed 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: Force recovery path in case GMU_FAULT bit is set"

parents 61956696 341258da
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2760,6 +2760,12 @@ _aware(struct kgsl_device *device)
		status = gmu_start(device);
		break;
	case KGSL_STATE_INIT:
		/* if GMU already in FAULT */
		if (kgsl_gmu_isenabled(device) &&
			test_bit(GMU_FAULT, &gmu->flags)) {
			status = -EINVAL;
			break;
		}
		status = kgsl_pwrctrl_enable(device);
		break;
	/* The following 3 cases shouldn't occur, but don't panic. */