Skip to content

Commit f688c21

Browse files
committed
drm/apple: Send HPD event on disconnect only connector is cconected
Fixes a deadlock while disabling the CRTC from HPD event via drm_client. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent d79dd8b commit f688c21

File tree

1 file changed

+1
-1
lines changed
  • drivers/gpu/drm/apple

1 file changed

+1
-1
lines changed

drivers/gpu/drm/apple/dcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ static int dcp_dptx_connect(struct apple_dcp *dcp, u32 port)
426426

427427
static void disconnected_hpd_event(struct apple_connector *con)
428428
{
429-
if (con) {
429+
if (con && con->connected) {
430430
con->connected = 0;
431431
drm_kms_helper_connector_hotplug_event(&con->base);
432432
}

0 commit comments

Comments
 (0)