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

Commit b1505601 authored by Suman Tatiraju's avatar Suman Tatiraju
Browse files

msm: kgsl: Don't BUG_ON when entering DEEP NAP



Deep Nap is entered when the Deep Nap timer expires and
a work is scheduled. There can be enough latency before the
worker thread executes and the device can enter ACTIVE state
in the meanwhile. Hence gracefully exit instead of BUG_ON.

Change-Id: Iaec6be3c34d038774750800de2bac79052176202
Signed-off-by: default avatarSuman Tatiraju <sumant@codeaurora.org>
parent 4fbd4a1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2063,7 +2063,7 @@ _deep_nap(struct kgsl_device *device)
		kgsl_pwrctrl_set_state(device, KGSL_STATE_DEEP_NAP);
		break;
	default:
		BUG_ON(1);
		kgsl_pwrctrl_request_state(device, KGSL_STATE_NONE);
		break;
	}
	return 0;