]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't oops during modeset shutdown after lpe audio deinit
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 5 Nov 2018 19:46:04 +0000 (21:46 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 6 Nov 2018 13:17:26 +0000 (15:17 +0200)
commit096e17b532e9d6cce640f69d1c5d20525e40a97f
tree8239614249620176fd93f79e8a5cc56e5056a1b2
parent647a3906ff6b3d7280720600934b2adfbc21f8b9
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.

Cc: stable@vger.kernel.org
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181105194604.6994-1-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_lpe_audio.c