Skip to contentSkip to conversation

drm: fix setting of plane_mask in pan_display_atomic() function for linux-4.4

PATCH New [email protected] 1 participant 1 message May 23, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: fix setting of plane_mask in pan_display_atomic() function for linux-4.4

From: Xuebing Chen <[email protected]>

The <include/drm/drm_crtc.h> provides drm_for_each_plane_mask macro and plane_mask is defined as bitmask of plane indices, such as 1<<drm_plane_index(plane). This patch fixes error setting of plane_mask in pan_display_atomic() function.

---
 drivers/gpu/drm/drm_fb_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_fb_helper.c +1 -1
index e449f22..6a9f7ee 100644
@@ -1256,7 +1256,7 @@ retry:
 			goto fail;
 
 		plane = mode_set->crtc->primary;
-		plane_mask |= drm_plane_index(plane);
+		plane_mask |= 1 << drm_plane_index(plane);
 		plane->old_fb = plane->fb;
 	}
 
Signature · 1 line
2.7.4