Skip to content

Commit a9a6b73

Browse files
Damien Lespiaudanvet
authored andcommitted
drm/i915/bxt: Also add bxt_resume_prepare() to the S3/S4 path
Currently bxt_resume_prepare() is only used in the runtime-resume path. Add it to the full S3/S4 path as well. v2: Rebase on top of the vlv_resume_prepare() shuffling around Cc: Imre Deak <[email protected]> Reviewed-by: Imre Deak <[email protected]> (v1) Signed-off-by: Damien Lespiau <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
1 parent 1e8df16 commit a9a6b73

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/gpu/drm/i915/i915_drv.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ static int intel_suspend_complete(struct drm_i915_private *dev_priv);
595595
static int vlv_resume_prepare(struct drm_i915_private *dev_priv,
596596
bool rpm_resume);
597597
static int skl_resume_prepare(struct drm_i915_private *dev_priv);
598+
static int bxt_resume_prepare(struct drm_i915_private *dev_priv);
598599

599600

600601
static int i915_drm_suspend(struct drm_device *dev)
@@ -815,10 +816,12 @@ static int i915_drm_resume_early(struct drm_device *dev)
815816

816817
intel_uncore_early_sanitize(dev, true);
817818

818-
if (IS_HASWELL(dev_priv) || IS_BROADWELL(dev_priv))
819-
hsw_disable_pc8(dev_priv);
819+
if (IS_BROXTON(dev))
820+
ret = bxt_resume_prepare(dev_priv);
820821
else if (IS_SKYLAKE(dev_priv))
821822
ret = skl_resume_prepare(dev_priv);
823+
else if (IS_HASWELL(dev_priv) || IS_BROADWELL(dev_priv))
824+
hsw_disable_pc8(dev_priv);
822825

823826
intel_uncore_sanitize(dev);
824827
intel_power_domains_init_hw(dev_priv);

0 commit comments

Comments
 (0)