Commit 6a8915d0 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Joonas Lahtinen
Browse files

drm/i915: Don't oops during modeset shutdown after lpe audio deinit

We deinit the lpe audio device before we call
drm_atomic_helper_shutdown(), which means the platform device
may already be gone when it comes time to shut down the crtc.
As we don't know when the last reference to the platform
device gets dropped by the audio driver we can't assume that
the device and its data are still around when turning off the
crtc. Mark the platform device as gone as soon as we do the
audio deinit.

Signed-off-by: default avatarVille Syrjälä <>

Reviewed-by: default avatarChris Wilson <>
(cherry picked from commit f45a7977

Signed-off-by: default avatarJoonas Lahtinen <>
parent 0014868b
......@@ -297,8 +297,10 @@ void intel_lpe_audio_teardown(struct drm_i915_private *dev_priv)
dev_priv->lpe_audio.irq = -1;
dev_priv->lpe_audio.platdev = NULL;
* intel_lpe_audio_notify() - notify lpe audio event
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment