projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f304c8
)
drm/i915: Fix error path in i915_drm_resume_early
author
Imre Deak
<imre.deak@intel.com>
Mon, 18 Apr 2016 07:04:19 +0000
(10:04 +0300)
committer
Imre Deak
<imre.deak@intel.com>
Tue, 19 Apr 2016 09:28:04 +0000
(12:28 +0300)
If system resume fails, this may lead to a runtime PM wake reference
underflow used for runtime PM state checking.
Fixes:
1f814daca43a
("drm/i915: add support for checking if we hold an RPM reference")
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link:
http://patchwork.freedesktop.org/patch/msgid/1460963062-13211-2-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_drv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i915/i915_drv.c
b/drivers/gpu/drm/i915/i915_drv.c
index b7c7d7773654afad6dba50f2a3dc6e1a16c607f2..219b70774b017bbb522bff9b05a87cac4fb480fa 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_drv.c
+++ b/
drivers/gpu/drm/i915/i915_drv.c
@@
-842,11
+842,11
@@
static int i915_drm_resume_early(struct drm_device *dev)
!(dev_priv->suspended_to_idle && dev_priv->csr.dmc_payload))
intel_power_domains_init_hw(dev_priv, true);
+ enable_rpm_wakeref_asserts(dev_priv);
+
out:
dev_priv->suspended_to_idle = false;
- enable_rpm_wakeref_asserts(dev_priv);
-
return ret;
}