drm/bridge: removed dummy mode_fixup function from dw-hdmi.
Subsystems (3)
PATCH 1/1 drm/bridge: removed dummy mode_fixup function from dw-hdmi.
Other bridge drivers don't implement this optional function. Removed dummy code from dw-hdmi brigde driver.
--- drivers/gpu/drm/bridge/dw-hdmi.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/gpu/drm/bridge/dw-hdmi.c +0 -8
@@ -1391,13 +1391,6 @@ static void dw_hdmi_bridge_mode_set(struct drm_bridge *bridge,mutex_unlock (&hdmi->mutex); } -static bool dw_hdmi_bridge_mode_fixup (struct drm_bridge *bridge, -const struct drm_display_mode *mode, -struct drm_display_mode *adjusted_mode) -{ -return true; -} -static void dw_hdmi_bridge_disable (struct drm_bridge *bridge) {struct dw_hdmi *hdmi = bridge->driver_private;
@@ -1546,7 +1539,6 @@ static const struct drm_bridge_funcs dw_hdmi_bridge_funcs = { .pre_enable = dw_hdmi_bridge_nop, .post_disable = dw_hdmi_bridge_nop, .mode_set = dw_hdmi_bridge_mode_set, - .mode_fixup = dw_hdmi_bridge_mode_fixup, };static irqreturn_t dw_hdmi_hardirq (int irq,void *dev_id)
Signature · 6 lines
2.5.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 4 lines · Carlos Palminha
Other bridge drivers don't implement this optional function. Removed dummy code from dw-hdmi brigde driver.
Signed-off-by Carlos Palminha <[email protected]>
Merged your three patches to remove dummy mode_fixup functions. I've also squashed in a fixup for your encoder_funcs->mode_fixup patch. But that part (i.e. drm_encoder and drm_crtc ->mode_fixup plus dummy func removal) isn't complete yet. Are you still looking into that some more?
Thanks, Daniel
Quoted 33 lines
--- drivers/gpu/drm/bridge/dw-hdmi.c | 8 -------- 1 file changed, 8 deletions(-)drivers/gpu/drm/bridge/dw-hdmi.c +0
-8@@ -1391,13 +1391,6 @@ static void dw_hdmi_bridge_mode_set(struct drm_bridge *bridge,mutex_unlock (&hdmi->mutex); } -static bool dw_hdmi_bridge_mode_fixup (struct drm_bridge *bridge, -const struct drm_display_mode *mode, -struct drm_display_mode *adjusted_mode) -{ -return true; -} -static void dw_hdmi_bridge_disable (struct drm_bridge *bridge) {struct dw_hdmi *hdmi = bridge->driver_private;@@ -1546,7 +1539,6 @@ static const struct drm_bridge_funcs dw_hdmi_bridge_funcs = { .pre_enable = dw_hdmi_bridge_nop, .post_disable = dw_hdmi_bridge_nop, .mode_set = dw_hdmi_bridge_mode_set, - .mode_fixup = dw_hdmi_bridge_mode_fixup, };static irqreturn_t dw_hdmi_hardirq (int irq,void *dev_id)Signature · 1 line
2.5.0
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Daniel Vetter
Quoted 4 lines · Carlos Palminha
Other bridge drivers don't implement this optional function. Removed dummy code from dw-hdmi brigde driver.
Signed-off-by Carlos Palminha <[email protected]>Merged your three patches to remove dummy
mode_fixupfunctions. I've also squashed in a fixup for yourencoder_funcs->mode_fixuppatch. But that part (i.e.drm_encoderanddrm_crtc->mode_fixup plus dummy func removal) isn't complete yet. Are you still looking into that some more?
nice! :)
I'm planning to start nuking the crtc ones in the following days...
thanks,
c.palminha
Quoted 31 lines
Thanks, Daniel
Quoted 29 lines
--- drivers/gpu/drm/bridge/dw-hdmi.c | 8 -------- 1 file changed, 8 deletions(-)drivers/gpu/drm/bridge/dw-hdmi.c +0
-8@@ -1391,13 +1391,6 @@ static void dw_hdmi_bridge_mode_set(struct drm_bridge *bridge,mutex_unlock (&hdmi->mutex); } -static bool dw_hdmi_bridge_mode_fixup (struct drm_bridge *bridge, -const struct drm_display_mode *mode, -struct drm_display_mode *adjusted_mode) -{ -return true; -} -static void dw_hdmi_bridge_disable (struct drm_bridge *bridge) {struct dw_hdmi *hdmi = bridge->driver_private;@@ -1546,7 +1539,6 @@ static const struct drm_bridge_funcs dw_hdmi_bridge_funcs = { .pre_enable = dw_hdmi_bridge_nop, .post_disable = dw_hdmi_bridge_nop, .mode_set = dw_hdmi_bridge_mode_set, - .mode_fixup = dw_hdmi_bridge_mode_fixup, };
Quoted 5 lines
Quoted 4 lines
drivers/gpu/drm/bridge/dw-hdmi.c +0
-0static irqreturn_t dw_hdmi_hardirq (int irq,void *dev_id)Signature · 1 line
2.5.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel