drm/probe: Fix drm_connector_helper_hpd_irq_event deadlock
authorMaxime Ripard <maxime@cerno.tech>
Wed, 8 Sep 2021 11:32:31 +0000 (13:32 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 8 Sep 2021 12:46:57 +0000 (13:46 +0100)
commit12a3b2ba688051148f7225de40972becc5d553e2
treea3ab014d4f8fa55df6e96e231aec1b5ca95ee1d7
parentbe2d65beb3ea8f407804a2694b634c1252b4d555
drm/probe: Fix drm_connector_helper_hpd_irq_event deadlock

drm_connector_helper_hpd_irq_event() calls
drm_kms_helper_hotplug_event() with the mode-setting lock taken while
it's supposed to be called without that lock taken.

This results in a lockdep warning, and a deadlock if we were to wake up
a TV through CEC (and possibly other cases).

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/drm_probe_helper.c