Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1321636 > unrolled thread

[PATCH] adv7511: Added mode_fixup function.

Started byCarlos Palminha <CARLOS.PALMINHA@synopsys.com>
First post2016-01-29 11:40 +0100
Last post2016-02-09 10:30 +0100
Articles 6 — 4 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] adv7511: Added mode_fixup function. Carlos Palminha <CARLOS.PALMINHA@synopsys.com> - 2016-01-29 11:40 +0100
    Re: [PATCH] adv7511: Added mode_fixup function. Laurent Pinchart <laurent.pinchart@ideasonboard.com> - 2016-01-29 18:50 +0100
      Re: [PATCH] adv7511: Added mode_fixup function. Carlos Palminha <CARLOS.PALMINHA@synopsys.com> - 2016-02-01 13:40 +0100
        Re: [PATCH] adv7511: Added mode_fixup function. Carlos Palminha <CARLOS.PALMINHA@synopsys.com> - 2016-02-04 16:30 +0100
          Re: [PATCH] adv7511: Added mode_fixup function. Lars-Peter Clausen <lars@metafoo.de> - 2016-02-04 21:40 +0100
            Re: [PATCH] adv7511: Added mode_fixup function. Daniel Vetter <daniel@ffwll.ch> - 2016-02-09 10:30 +0100

#1321636 — [PATCH] adv7511: Added mode_fixup function.

FromCarlos Palminha <CARLOS.PALMINHA@synopsys.com>
Date2016-01-29 11:40 +0100
Subject[PATCH] adv7511: Added mode_fixup function.
Message-ID<qWeD8-1qJ-7@gated-at.bofh.it>
The mode_fixup is necessary when using it in a DRM FB driver pipeline.

Signed-off-by: Carlos Palminha <palminha@synopsys.com>
---
 drivers/gpu/drm/i2c/adv7511.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c
index 533d1e3..90082d2 100644
--- a/drivers/gpu/drm/i2c/adv7511.c
+++ b/drivers/gpu/drm/i2c/adv7511.c
@@ -648,6 +648,13 @@ adv7511_encoder_detect(struct drm_encoder *encoder,
 	return status;
 }
 
+static bool adv7511_encoder_mode_fixup(struct drm_encoder *encoder,
+					const struct drm_display_mode *mode,
+					struct drm_display_mode *adjusted_mode)
+{
+	return true;
+}
+
 static int adv7511_encoder_mode_valid(struct drm_encoder *encoder,
 				      struct drm_display_mode *mode)
 {
@@ -754,6 +761,7 @@ static void adv7511_encoder_mode_set(struct drm_encoder *encoder,
 
 static const struct drm_encoder_slave_funcs adv7511_encoder_funcs = {
 	.dpms = adv7511_encoder_dpms,
+	.mode_fixup = adv7511_encoder_mode_fixup,
 	.mode_valid = adv7511_encoder_mode_valid,
 	.mode_set = adv7511_encoder_mode_set,
 	.detect = adv7511_encoder_detect,
-- 
2.5.0

[toc] | [next] | [standalone]


#1321921

FromLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Date2016-01-29 18:50 +0100
Message-ID<qWllg-6BJ-25@gated-at.bofh.it>
In reply to#1321636
Hi Carlos,

Thank you for the patch.

On Friday 29 January 2016 10:33:47 Carlos Palminha wrote:
> The mode_fixup is necessary when using it in a DRM FB driver pipeline.

Instead of implementing stubs in encoder drivers, wouldn't it be better to 
make mode_fixup optional ?

> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
> ---
>  drivers/gpu/drm/i2c/adv7511.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c
> index 533d1e3..90082d2 100644
> --- a/drivers/gpu/drm/i2c/adv7511.c
> +++ b/drivers/gpu/drm/i2c/adv7511.c
> @@ -648,6 +648,13 @@ adv7511_encoder_detect(struct drm_encoder *encoder,
>  	return status;
>  }
> 
> +static bool adv7511_encoder_mode_fixup(struct drm_encoder *encoder,
> +					const struct drm_display_mode *mode,
> +					struct drm_display_mode *adjusted_mode)
> +{
> +	return true;
> +}
> +
>  static int adv7511_encoder_mode_valid(struct drm_encoder *encoder,
>  				      struct drm_display_mode *mode)
>  {
> @@ -754,6 +761,7 @@ static void adv7511_encoder_mode_set(struct drm_encoder
> *encoder,
> 
>  static const struct drm_encoder_slave_funcs adv7511_encoder_funcs = {
>  	.dpms = adv7511_encoder_dpms,
> +	.mode_fixup = adv7511_encoder_mode_fixup,
>  	.mode_valid = adv7511_encoder_mode_valid,
>  	.mode_set = adv7511_encoder_mode_set,
>  	.detect = adv7511_encoder_detect,

-- 
Regards,

Laurent Pinchart

[toc] | [prev] | [next] | [standalone]


#1323056

FromCarlos Palminha <CARLOS.PALMINHA@synopsys.com>
Date2016-02-01 13:40 +0100
Message-ID<qXlVU-2IS-21@gated-at.bofh.it>
In reply to#1321921
Hi Laurent

On 29-01-2016 17:48, Laurent Pinchart wrote:
> Hi Carlos,
> 
> Thank you for the patch.
> 
> On Friday 29 January 2016 10:33:47 Carlos Palminha wrote:
>> The mode_fixup is necessary when using it in a DRM FB driver pipeline.
> 
> Instead of implementing stubs in encoder drivers, wouldn't it be better to 
> make mode_fixup optional ?
Probably you are right but i don't have enough knowledge or time to do that for the DRM framework. :(
I limited myself to do what the other drivers already implement.

The patch is mandatory to have to the ADV working or else will get some NULL pointer crash.

Regards,
C.Palminha

> 
>> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
>> ---
>>  drivers/gpu/drm/i2c/adv7511.c | 8 ++++++++
>>  1 file changed, 8 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c
>> index 533d1e3..90082d2 100644
>> --- a/drivers/gpu/drm/i2c/adv7511.c
>> +++ b/drivers/gpu/drm/i2c/adv7511.c
>> @@ -648,6 +648,13 @@ adv7511_encoder_detect(struct drm_encoder *encoder,
>>  	return status;
>>  }
>>
>> +static bool adv7511_encoder_mode_fixup(struct drm_encoder *encoder,
>> +					const struct drm_display_mode *mode,
>> +					struct drm_display_mode *adjusted_mode)
>> +{
>> +	return true;
>> +}
>> +
>>  static int adv7511_encoder_mode_valid(struct drm_encoder *encoder,
>>  				      struct drm_display_mode *mode)
>>  {
>> @@ -754,6 +761,7 @@ static void adv7511_encoder_mode_set(struct drm_encoder
>> *encoder,
>>
>>  static const struct drm_encoder_slave_funcs adv7511_encoder_funcs = {
>>  	.dpms = adv7511_encoder_dpms,
>> +	.mode_fixup = adv7511_encoder_mode_fixup,
>>  	.mode_valid = adv7511_encoder_mode_valid,
>>  	.mode_set = adv7511_encoder_mode_set,
>>  	.detect = adv7511_encoder_detect,
> 


On 29-01-2016 17:48, Laurent Pinchart wrote:
> Hi Carlos,
> 
> Thank you for the patch.
> 
> On Friday 29 January 2016 10:33:47 Carlos Palminha wrote:
>> The mode_fixup is necessary when using it in a DRM FB driver pipeline.
> 
> Instead of implementing stubs in encoder drivers, wouldn't it be better to 
> make mode_fixup optional ?
> 
>> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
>> ---
>>  drivers/gpu/drm/i2c/adv7511.c | 8 ++++++++
>>  1 file changed, 8 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c
>> index 533d1e3..90082d2 100644
>> --- a/drivers/gpu/drm/i2c/adv7511.c
>> +++ b/drivers/gpu/drm/i2c/adv7511.c
>> @@ -648,6 +648,13 @@ adv7511_encoder_detect(struct drm_encoder *encoder,
>>  	return status;
>>  }
>>
>> +static bool adv7511_encoder_mode_fixup(struct drm_encoder *encoder,
>> +					const struct drm_display_mode *mode,
>> +					struct drm_display_mode *adjusted_mode)
>> +{
>> +	return true;
>> +}
>> +
>>  static int adv7511_encoder_mode_valid(struct drm_encoder *encoder,
>>  				      struct drm_display_mode *mode)
>>  {
>> @@ -754,6 +761,7 @@ static void adv7511_encoder_mode_set(struct drm_encoder
>> *encoder,
>>
>>  static const struct drm_encoder_slave_funcs adv7511_encoder_funcs = {
>>  	.dpms = adv7511_encoder_dpms,
>> +	.mode_fixup = adv7511_encoder_mode_fixup,
>>  	.mode_valid = adv7511_encoder_mode_valid,
>>  	.mode_set = adv7511_encoder_mode_set,
>>  	.detect = adv7511_encoder_detect,
> 

[toc] | [prev] | [next] | [standalone]


#1326922

FromCarlos Palminha <CARLOS.PALMINHA@synopsys.com>
Date2016-02-04 16:30 +0100
Message-ID<qYu14-3JT-11@gated-at.bofh.it>
In reply to#1323056
Hi guys,

any feedback? patch will be accepted for adv7511 driver?

Regards,
C.Palminha

On 01-02-2016 12:37, Carlos Palminha wrote:
> Hi Laurent
> 
> On 29-01-2016 17:48, Laurent Pinchart wrote:
>> Hi Carlos,
>>
>> Thank you for the patch.
>>
>> On Friday 29 January 2016 10:33:47 Carlos Palminha wrote:
>>> The mode_fixup is necessary when using it in a DRM FB driver pipeline.
>>
>> Instead of implementing stubs in encoder drivers, wouldn't it be better to 
>> make mode_fixup optional ?
> Probably you are right but i don't have enough knowledge or time to do that for the DRM framework. :(
> I limited myself to do what the other drivers already implement.
> 
> The patch is mandatory to have to the ADV working or else will get some NULL pointer crash.
> 
> Regards,
> C.Palminha
> 
>>
>>> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
>>> ---
>>>  drivers/gpu/drm/i2c/adv7511.c | 8 ++++++++
>>>  1 file changed, 8 insertions(+)
>>>
>>> diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c
>>> index 533d1e3..90082d2 100644
>>> --- a/drivers/gpu/drm/i2c/adv7511.c
>>> +++ b/drivers/gpu/drm/i2c/adv7511.c
>>> @@ -648,6 +648,13 @@ adv7511_encoder_detect(struct drm_encoder *encoder,
>>>  	return status;
>>>  }
>>>
>>> +static bool adv7511_encoder_mode_fixup(struct drm_encoder *encoder,
>>> +					const struct drm_display_mode *mode,
>>> +					struct drm_display_mode *adjusted_mode)
>>> +{
>>> +	return true;
>>> +}
>>> +
>>>  static int adv7511_encoder_mode_valid(struct drm_encoder *encoder,
>>>  				      struct drm_display_mode *mode)
>>>  {
>>> @@ -754,6 +761,7 @@ static void adv7511_encoder_mode_set(struct drm_encoder
>>> *encoder,
>>>
>>>  static const struct drm_encoder_slave_funcs adv7511_encoder_funcs = {
>>>  	.dpms = adv7511_encoder_dpms,
>>> +	.mode_fixup = adv7511_encoder_mode_fixup,
>>>  	.mode_valid = adv7511_encoder_mode_valid,
>>>  	.mode_set = adv7511_encoder_mode_set,
>>>  	.detect = adv7511_encoder_detect,
>>
> 
> 
> On 29-01-2016 17:48, Laurent Pinchart wrote:
>> Hi Carlos,
>>
>> Thank you for the patch.
>>
>> On Friday 29 January 2016 10:33:47 Carlos Palminha wrote:
>>> The mode_fixup is necessary when using it in a DRM FB driver pipeline.
>>
>> Instead of implementing stubs in encoder drivers, wouldn't it be better to 
>> make mode_fixup optional ?
>>
>>> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
>>> ---
>>>  drivers/gpu/drm/i2c/adv7511.c | 8 ++++++++
>>>  1 file changed, 8 insertions(+)
>>>
>>> diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c
>>> index 533d1e3..90082d2 100644
>>> --- a/drivers/gpu/drm/i2c/adv7511.c
>>> +++ b/drivers/gpu/drm/i2c/adv7511.c
>>> @@ -648,6 +648,13 @@ adv7511_encoder_detect(struct drm_encoder *encoder,
>>>  	return status;
>>>  }
>>>
>>> +static bool adv7511_encoder_mode_fixup(struct drm_encoder *encoder,
>>> +					const struct drm_display_mode *mode,
>>> +					struct drm_display_mode *adjusted_mode)
>>> +{
>>> +	return true;
>>> +}
>>> +
>>>  static int adv7511_encoder_mode_valid(struct drm_encoder *encoder,
>>>  				      struct drm_display_mode *mode)
>>>  {
>>> @@ -754,6 +761,7 @@ static void adv7511_encoder_mode_set(struct drm_encoder
>>> *encoder,
>>>
>>>  static const struct drm_encoder_slave_funcs adv7511_encoder_funcs = {
>>>  	.dpms = adv7511_encoder_dpms,
>>> +	.mode_fixup = adv7511_encoder_mode_fixup,
>>>  	.mode_valid = adv7511_encoder_mode_valid,
>>>  	.mode_set = adv7511_encoder_mode_set,
>>>  	.detect = adv7511_encoder_detect,
>>

[toc] | [prev] | [next] | [standalone]


#1327169

FromLars-Peter Clausen <lars@metafoo.de>
Date2016-02-04 21:40 +0100
Message-ID<qYyR4-6Xw-13@gated-at.bofh.it>
In reply to#1326922
On 02/04/2016 04:22 PM, Carlos Palminha wrote:
> Hi guys,
> 
> any feedback? patch will be accepted for adv7511 driver?

Hi,

Thanks for the patch, but please try to find and fix the call site that is
trying to invoke the callback even though it does not exist.

This is most likely drm_i2c_encoder_mode_fixup().

- Lars

> 
> Regards,
> C.Palminha
> 
> On 01-02-2016 12:37, Carlos Palminha wrote:
>> Hi Laurent
>>
>> On 29-01-2016 17:48, Laurent Pinchart wrote:
>>> Hi Carlos,
>>>
>>> Thank you for the patch.
>>>
>>> On Friday 29 January 2016 10:33:47 Carlos Palminha wrote:
>>>> The mode_fixup is necessary when using it in a DRM FB driver pipeline.
>>>
>>> Instead of implementing stubs in encoder drivers, wouldn't it be better to 
>>> make mode_fixup optional ?
>> Probably you are right but i don't have enough knowledge or time to do that for the DRM framework. :(
>> I limited myself to do what the other drivers already implement.
>>
>> The patch is mandatory to have to the ADV working or else will get some NULL pointer crash.
>>
>> Regards,
>> C.Palminha
>>
>>>
>>>> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
>>>> ---
>>>>  drivers/gpu/drm/i2c/adv7511.c | 8 ++++++++
>>>>  1 file changed, 8 insertions(+)
>>>>
>>>> diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c
>>>> index 533d1e3..90082d2 100644
>>>> --- a/drivers/gpu/drm/i2c/adv7511.c
>>>> +++ b/drivers/gpu/drm/i2c/adv7511.c
>>>> @@ -648,6 +648,13 @@ adv7511_encoder_detect(struct drm_encoder *encoder,
>>>>  	return status;
>>>>  }
>>>>
>>>> +static bool adv7511_encoder_mode_fixup(struct drm_encoder *encoder,
>>>> +					const struct drm_display_mode *mode,
>>>> +					struct drm_display_mode *adjusted_mode)
>>>> +{
>>>> +	return true;
>>>> +}
>>>> +
>>>>  static int adv7511_encoder_mode_valid(struct drm_encoder *encoder,
>>>>  				      struct drm_display_mode *mode)
>>>>  {
>>>> @@ -754,6 +761,7 @@ static void adv7511_encoder_mode_set(struct drm_encoder
>>>> *encoder,
>>>>
>>>>  static const struct drm_encoder_slave_funcs adv7511_encoder_funcs = {
>>>>  	.dpms = adv7511_encoder_dpms,
>>>> +	.mode_fixup = adv7511_encoder_mode_fixup,
>>>>  	.mode_valid = adv7511_encoder_mode_valid,
>>>>  	.mode_set = adv7511_encoder_mode_set,
>>>>  	.detect = adv7511_encoder_detect,
>>>
>>
>>
>> On 29-01-2016 17:48, Laurent Pinchart wrote:
>>> Hi Carlos,
>>>
>>> Thank you for the patch.
>>>
>>> On Friday 29 January 2016 10:33:47 Carlos Palminha wrote:
>>>> The mode_fixup is necessary when using it in a DRM FB driver pipeline.
>>>
>>> Instead of implementing stubs in encoder drivers, wouldn't it be better to 
>>> make mode_fixup optional ?
>>>
>>>> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
>>>> ---
>>>>  drivers/gpu/drm/i2c/adv7511.c | 8 ++++++++
>>>>  1 file changed, 8 insertions(+)
>>>>
>>>> diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c
>>>> index 533d1e3..90082d2 100644
>>>> --- a/drivers/gpu/drm/i2c/adv7511.c
>>>> +++ b/drivers/gpu/drm/i2c/adv7511.c
>>>> @@ -648,6 +648,13 @@ adv7511_encoder_detect(struct drm_encoder *encoder,
>>>>  	return status;
>>>>  }
>>>>
>>>> +static bool adv7511_encoder_mode_fixup(struct drm_encoder *encoder,
>>>> +					const struct drm_display_mode *mode,
>>>> +					struct drm_display_mode *adjusted_mode)
>>>> +{
>>>> +	return true;
>>>> +}
>>>> +
>>>>  static int adv7511_encoder_mode_valid(struct drm_encoder *encoder,
>>>>  				      struct drm_display_mode *mode)
>>>>  {
>>>> @@ -754,6 +761,7 @@ static void adv7511_encoder_mode_set(struct drm_encoder
>>>> *encoder,
>>>>
>>>>  static const struct drm_encoder_slave_funcs adv7511_encoder_funcs = {
>>>>  	.dpms = adv7511_encoder_dpms,
>>>> +	.mode_fixup = adv7511_encoder_mode_fixup,
>>>>  	.mode_valid = adv7511_encoder_mode_valid,
>>>>  	.mode_set = adv7511_encoder_mode_set,
>>>>  	.detect = adv7511_encoder_detect,
>>>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
> 

[toc] | [prev] | [next] | [standalone]


#1329992

FromDaniel Vetter <daniel@ffwll.ch>
Date2016-02-09 10:30 +0100
Message-ID<r0cMq-25f-15@gated-at.bofh.it>
In reply to#1327169
On Thu, Feb 04, 2016 at 09:27:24PM +0100, Lars-Peter Clausen wrote:
> On 02/04/2016 04:22 PM, Carlos Palminha wrote:
> > Hi guys,
> > 
> > any feedback? patch will be accepted for adv7511 driver?
> 
> Hi,
> 
> Thanks for the patch, but please try to find and fix the call site that is
> trying to invoke the callback even though it does not exist.
> 
> This is most likely drm_i2c_encoder_mode_fixup().

Agreed, this should be fixed in the helper library, not in drivers by
copypasting piles more dummy functions.
-Daniel

> 
> - Lars
> 
> > 
> > Regards,
> > C.Palminha
> > 
> > On 01-02-2016 12:37, Carlos Palminha wrote:
> >> Hi Laurent
> >>
> >> On 29-01-2016 17:48, Laurent Pinchart wrote:
> >>> Hi Carlos,
> >>>
> >>> Thank you for the patch.
> >>>
> >>> On Friday 29 January 2016 10:33:47 Carlos Palminha wrote:
> >>>> The mode_fixup is necessary when using it in a DRM FB driver pipeline.
> >>>
> >>> Instead of implementing stubs in encoder drivers, wouldn't it be better to 
> >>> make mode_fixup optional ?
> >> Probably you are right but i don't have enough knowledge or time to do that for the DRM framework. :(
> >> I limited myself to do what the other drivers already implement.
> >>
> >> The patch is mandatory to have to the ADV working or else will get some NULL pointer crash.
> >>
> >> Regards,
> >> C.Palminha
> >>
> >>>
> >>>> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
> >>>> ---
> >>>>  drivers/gpu/drm/i2c/adv7511.c | 8 ++++++++
> >>>>  1 file changed, 8 insertions(+)
> >>>>
> >>>> diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c
> >>>> index 533d1e3..90082d2 100644
> >>>> --- a/drivers/gpu/drm/i2c/adv7511.c
> >>>> +++ b/drivers/gpu/drm/i2c/adv7511.c
> >>>> @@ -648,6 +648,13 @@ adv7511_encoder_detect(struct drm_encoder *encoder,
> >>>>  	return status;
> >>>>  }
> >>>>
> >>>> +static bool adv7511_encoder_mode_fixup(struct drm_encoder *encoder,
> >>>> +					const struct drm_display_mode *mode,
> >>>> +					struct drm_display_mode *adjusted_mode)
> >>>> +{
> >>>> +	return true;
> >>>> +}
> >>>> +
> >>>>  static int adv7511_encoder_mode_valid(struct drm_encoder *encoder,
> >>>>  				      struct drm_display_mode *mode)
> >>>>  {
> >>>> @@ -754,6 +761,7 @@ static void adv7511_encoder_mode_set(struct drm_encoder
> >>>> *encoder,
> >>>>
> >>>>  static const struct drm_encoder_slave_funcs adv7511_encoder_funcs = {
> >>>>  	.dpms = adv7511_encoder_dpms,
> >>>> +	.mode_fixup = adv7511_encoder_mode_fixup,
> >>>>  	.mode_valid = adv7511_encoder_mode_valid,
> >>>>  	.mode_set = adv7511_encoder_mode_set,
> >>>>  	.detect = adv7511_encoder_detect,
> >>>
> >>
> >>
> >> On 29-01-2016 17:48, Laurent Pinchart wrote:
> >>> Hi Carlos,
> >>>
> >>> Thank you for the patch.
> >>>
> >>> On Friday 29 January 2016 10:33:47 Carlos Palminha wrote:
> >>>> The mode_fixup is necessary when using it in a DRM FB driver pipeline.
> >>>
> >>> Instead of implementing stubs in encoder drivers, wouldn't it be better to 
> >>> make mode_fixup optional ?
> >>>
> >>>> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
> >>>> ---
> >>>>  drivers/gpu/drm/i2c/adv7511.c | 8 ++++++++
> >>>>  1 file changed, 8 insertions(+)
> >>>>
> >>>> diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c
> >>>> index 533d1e3..90082d2 100644
> >>>> --- a/drivers/gpu/drm/i2c/adv7511.c
> >>>> +++ b/drivers/gpu/drm/i2c/adv7511.c
> >>>> @@ -648,6 +648,13 @@ adv7511_encoder_detect(struct drm_encoder *encoder,
> >>>>  	return status;
> >>>>  }
> >>>>
> >>>> +static bool adv7511_encoder_mode_fixup(struct drm_encoder *encoder,
> >>>> +					const struct drm_display_mode *mode,
> >>>> +					struct drm_display_mode *adjusted_mode)
> >>>> +{
> >>>> +	return true;
> >>>> +}
> >>>> +
> >>>>  static int adv7511_encoder_mode_valid(struct drm_encoder *encoder,
> >>>>  				      struct drm_display_mode *mode)
> >>>>  {
> >>>> @@ -754,6 +761,7 @@ static void adv7511_encoder_mode_set(struct drm_encoder
> >>>> *encoder,
> >>>>
> >>>>  static const struct drm_encoder_slave_funcs adv7511_encoder_funcs = {
> >>>>  	.dpms = adv7511_encoder_dpms,
> >>>> +	.mode_fixup = adv7511_encoder_mode_fixup,
> >>>>  	.mode_valid = adv7511_encoder_mode_valid,
> >>>>  	.mode_set = adv7511_encoder_mode_set,
> >>>>  	.detect = adv7511_encoder_detect,
> >>>
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/dri-devel
> > 
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web