]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: cancel hotplug and dig_port work during suspend and unload
authorImre Deak <imre.deak@intel.com>
Mon, 18 Aug 2014 11:42:44 +0000 (14:42 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 18 Aug 2014 13:16:03 +0000 (16:16 +0300)
commit365f9d28d0e34e03255dd1fe3704e3aa32f09509
treecaedb147da5e3f9609d87aa02b8443497daa5594
parentf1a2b7132fa99efbe98875d1db6a324bc4919162
drm/i915: cancel hotplug and dig_port work during suspend and unload

Make sure these work handlers don't run after we system suspend or
unload the driver. Note that we don't cancel the handlers during runtime
suspend. That could lead to a lockup, since we take a runtime PM ref
from the handlers themselves. Fortunaltely canceling there is not needed
since the RPM ref itself provides for the needed serialization.

v2:
- fix the order of canceling dig_port_work wrt. hotplug_work (Ville)
- zero out {long,short}_hpd_port_mask and hpd_event_bits for speed
  (Ville)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: stable@vger.kernel.org (3.16+)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c