Skip to contentSkip to conversation

Patch "[PATCH 078/135] drm/atomic: Do not unset crtc when an encoder is" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Sep 9, 2016

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

[PATCH 078/135] drm/atomic: Do not unset crtc when an encoder is

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:

     0078-drm-atomic-Do-not-unset-crtc-when-an-encoder-is-stol.patch

and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 328b8062af081141284186a4fb9bc37204f1dde2 Mon Sep 17 00:00:00 2001

From: Maarten Lankhorst <[email protected]>
Date: Thu, 7 Jan 2016 10:59:21 +0100
Subject: [PATCH 078/135] drm/atomic: Do not unset crtc when an encoder is
stolen

[ Upstream commit 97a8df90875f72ba3b4c3320759fd93cea743261 ]

While we steal the encoder away from the connector the connector may be updated to use a different encoder.

Without this change if 2 connectors swap encoders one of them will end up without a crtc.

---
 drivers/gpu/drm/drm_atomic_helper.c |    4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/drm_atomic_helper.c +0 -4
@@ -108,7 +108,6 @@ steal_encoder(struct drm_atomic_state *s
 	struct drm_crtc_state *crtc_state;
 	struct drm_connector *connector;
 	struct drm_connector_state *connector_state;
-	int ret;
 
 	/*
 	 * We can only steal an encoder coming from a connector, which means we
@@ -139,9 +138,6 @@ steal_encoder(struct drm_atomic_state *s
 		if (IS_ERR(connector_state))
 			return PTR_ERR(connector_state);
 
-		ret = drm_atomic_set_crtc_for_connector(connector_state, NULL);
-		if (ret)
-			return ret;
 		connector_state->best_encoder = NULL;
 	}
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/0078-drm-atomic-Do-not-unset-crtc-when-an-encoder-is-stol.patch