Skip to contentSkip to conversation

drm/fb helper: don't call drm_helper_connector_dpms directly

PATCH In review Daniel Vetter 3 participants 3 messages Sep 7, 2012

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

PATCH 1/1 drm/fb helper: don't call drm_helper_connector_dpms directly

Yet again a case where the fb helper is too intimate with the crtc helper and calls a crtc helepr function directly instead of going through the interface vtable.

This fixes console blanking in drm/i915 with the new i915-specific modeset code.

---
 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 eb79515..b5d05f5 100644
@@ -330,7 +330,7 @@ static void drm_fb_helper_dpms(struct fb_info *info, int dpms_mode)
 		/* Walk the connectors & encoders on this fb turning them on/off */
 		for (j = 0; j < fb_helper->connector_count; j++) {
 			connector = fb_helper->connector_info[j]->connector;
-			drm_helper_connector_dpms(connector, dpms_mode);
+			connector->funcs->dpms(connector, dpms_mode);
 			drm_connector_property_set_value(connector,
 				dev->mode_config.dpms_property, dpms_mode);
 		}
Signature · 1 line
1.7.11.2
Tested-by on v1 1/1
#1 lore raw
Quoted 18 lines · On Fri, 7 Sep 2012 10:14:52 +0200 Daniel Vetter <[email protected]> wrote:

Yet again a case where the fb helper is too intimate with the crtc helper and calls a crtc helepr function directly instead of going through the interface vtable.

This fixes console blanking in drm/i915 with the new i915-specific modeset code.

---
 drivers/gpu/drm/drm_fb_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_fb_helper.c +0 -0
index eb79515..b5d05f5 100644

drivers/gpu/drm/drm_fb_helper.c static void drm_fb_helper_dpms(struct fb_info *info, int dpms_mode) · line 336

Quoted 8 lines
drivers/gpu/drm/drm_fb_helper.c +1 -1
@@ -330,7 +330,7 @@ static void drm_fb_helper_dpms(struct fb_info *info, int dpms_mode)
 		/* Walk the connectors & encoders on this fb turning them on/off */
 		for (j = 0; j < fb_helper->connector_count; j++) {
 			connector = fb_helper->connector_info[j]->connector;
-			drm_helper_connector_dpms(connector, dpms_mode);
+			connector->funcs->dpms(connector, dpms_mode);
 			drm_connector_property_set_value(connector,
 				dev->mode_config.dpms_property, dpms_mode);
 		}
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
#2 lore raw
Quoted 16 lines · Jesse Barnes
Quoted 13 lines · On Fri, 7 Sep 2012 10:14:52 +0200 Daniel Vetter <[email protected]> wrote:

Yet again a case where the fb helper is too intimate with the crtc helper and calls a crtc helepr function directly instead of going through the interface vtable.

This fixes console blanking in drm/i915 with the new i915-specific modeset code.

---
 drivers/gpu/drm/drm_fb_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

drivers/gpu/drm/drm_fb_helper.c static void drm_fb_helper_dpms(struct fb_info *info, int dpms_mode) · line 336

Quoted 13 lines
drivers/gpu/drm/drm_fb_helper.c +1 -1
index eb79515..b5d05f5 100644
@@ -330,7 +330,7 @@ static void drm_fb_helper_dpms(struct fb_info *info, int dpms_mode)
 		/* Walk the connectors & encoders on this fb turning them on/off */
 		for (j = 0; j < fb_helper->connector_count; j++) {
 			connector = fb_helper->connector_info[j]->connector;
-			drm_helper_connector_dpms(connector, dpms_mode);
+			connector->funcs->dpms(connector, dpms_mode);
 			drm_connector_property_set_value(connector,
 				dev->mode_config.dpms_property, dpms_mode);
 		}

Applied with Dave's irc-ack, thanks for yelling&testing. -Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch