* [PATCH] drm/bridge: removed dummy mode_fixup function from dw-hdmi.
@ 2016-02-10 16:10 Carlos Palminha
2016-02-11 8:22 ` Daniel Vetter
0 siblings, 1 reply; 3+ messages in thread
From: Carlos Palminha @ 2016-02-10 16:10 UTC (permalink / raw)
To: David Airlie, dri-devel, daniel; +Cc: CARLOS.PALMINHA
Other bridge drivers don't implement this optional function.
Removed dummy code from dw-hdmi brigde driver.
Signed-off-by: Carlos Palminha <palminha@synopsys.com>
---
drivers/gpu/drm/bridge/dw-hdmi.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/gpu/drm/bridge/dw-hdmi.c b/drivers/gpu/drm/bridge/dw-hdmi.c
index b0aac473..9795b72 100644
--- a/drivers/gpu/drm/bridge/dw-hdmi.c
+++ b/drivers/gpu/drm/bridge/dw-hdmi.c
@@ -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)
--
2.5.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/bridge: removed dummy mode_fixup function from dw-hdmi.
2016-02-10 16:10 [PATCH] drm/bridge: removed dummy mode_fixup function from dw-hdmi Carlos Palminha
@ 2016-02-11 8:22 ` Daniel Vetter
2016-02-11 9:01 ` Carlos Palminha
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Vetter @ 2016-02-11 8:22 UTC (permalink / raw)
To: Carlos Palminha; +Cc: dri-devel
On Wed, Feb 10, 2016 at 04:10:39PM +0000, Carlos Palminha wrote:
> Other bridge drivers don't implement this optional function.
> Removed dummy code from dw-hdmi brigde driver.
>
> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
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
> ---
> drivers/gpu/drm/bridge/dw-hdmi.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/dw-hdmi.c b/drivers/gpu/drm/bridge/dw-hdmi.c
> index b0aac473..9795b72 100644
> --- a/drivers/gpu/drm/bridge/dw-hdmi.c
> +++ b/drivers/gpu/drm/bridge/dw-hdmi.c
> @@ -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)
> --
> 2.5.0
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/bridge: removed dummy mode_fixup function from dw-hdmi.
2016-02-11 8:22 ` Daniel Vetter
@ 2016-02-11 9:01 ` Carlos Palminha
0 siblings, 0 replies; 3+ messages in thread
From: Carlos Palminha @ 2016-02-11 9:01 UTC (permalink / raw)
To: Daniel Vetter, Carlos Palminha; +Cc: dri-devel
On 11-02-2016 08:22, Daniel Vetter wrote:
> On Wed, Feb 10, 2016 at 04:10:39PM +0000, Carlos Palminha wrote:
>> Other bridge drivers don't implement this optional function.
>> Removed dummy code from dw-hdmi brigde driver.
>>
>> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
>
> 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?
>
nice! :)
I'm planning to start nuking the crtc ones in the following days...
thanks,
c.palminha
> Thanks, Daniel
>
>> ---
>> drivers/gpu/drm/bridge/dw-hdmi.c | 8 --------
>> 1 file changed, 8 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/bridge/dw-hdmi.c b/drivers/gpu/drm/bridge/dw-hdmi.c
>> index b0aac473..9795b72 100644
>> --- a/drivers/gpu/drm/bridge/dw-hdmi.c
>> +++ b/drivers/gpu/drm/bridge/dw-hdmi.c
>> @@ -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)
>> --
>> 2.5.0
>>
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-11 9:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-10 16:10 [PATCH] drm/bridge: removed dummy mode_fixup function from dw-hdmi Carlos Palminha
2016-02-11 8:22 ` Daniel Vetter
2016-02-11 9:01 ` Carlos Palminha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).