We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a6e6d4 commit 41286a5Copy full SHA for 41286a5
drivers/gpu/drm/vc4/vc4_hdmi.c
@@ -402,6 +402,7 @@ static void vc4_hdmi_handle_hotplug(struct vc4_hdmi *vc4_hdmi,
402
{
403
struct drm_connector *connector = &vc4_hdmi->connector;
404
struct edid *edid;
405
+ int ret;
406
407
/*
408
* NOTE: This function should really be called with
@@ -430,7 +431,15 @@ static void vc4_hdmi_handle_hotplug(struct vc4_hdmi *vc4_hdmi,
430
431
cec_s_phys_addr_from_edid(vc4_hdmi->cec_adap, edid);
432
kfree(edid);
433
- vc4_hdmi_reset_link(connector, ctx);
434
+ for (;;) {
435
+ ret = vc4_hdmi_reset_link(connector, ctx);
436
+ if (ret == -EDEADLK) {
437
+ drm_modeset_backoff(ctx);
438
+ continue;
439
+ }
440
+
441
+ break;
442
443
}
444
445
static int vc4_hdmi_connector_detect_ctx(struct drm_connector *connector,
0 commit comments