Created
January 26, 2022 21:57
-
-
Save jannau/58be1393b66465d0c79b3b23e9a910d1 to your computer and use it in GitHub Desktop.
dcp hdmi hotplug crash patch 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/gpu/drm/apple/dcp.c b/drivers/gpu/drm/apple/dcp.c | |
index 0dd0cd28a976..beeabdf9d3df 100644 | |
--- a/drivers/gpu/drm/apple/dcp.c | |
+++ b/drivers/gpu/drm/apple/dcp.c | |
@@ -1149,6 +1149,12 @@ void dcp_flush(struct drm_crtc *crtc, struct drm_atomic_state *state) | |
u32 handle = 2; | |
mode = lookup_mode(dcp, &crtc_state->mode); | |
+ if (!mode) { | |
+ dev_warn(dcp->dev, "no match for " DRM_MODE_FMT, | |
+ DRM_MODE_ARG(&crtc_state->mode)); | |
+ schedule_work(&dcp->vblank_wq); | |
+ return; | |
+ } | |
dcp->mode = (struct dcp_set_digital_out_mode_req) { | |
.color_mode_id = mode->color_mode_id, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment