[PATCH v4 18/22] drm/vc4: Convert to CRTC VBLANK callbacks

Thomas Zimmermann tzimmermann at suse.de
Mon Feb 10 08:18:30 UTC 2020


adding dri-devel

Am 04.02.20 um 20:17 schrieb Eric Anholt:
> vc4 changes are:
> 
> Acked-by: Eric Anholt <eric at anholt.net>
> 
> On Thu, Jan 23, 2020 at 6:00 AM Thomas Zimmermann <tzimmermann at suse.de> wrote:
>>
>> VBLANK callbacks in struct drm_driver are deprecated in favor of
>> their equivalents in struct drm_crtc_funcs. Convert vc4 over.
>>
>> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
>> ---
>>  drivers/gpu/drm/vc4/vc4_crtc.c | 1 +
>>  drivers/gpu/drm/vc4/vc4_drv.c  | 2 --
>>  2 files changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c
>> index f1e7597ea17e..1208258ad3b2 100644
>> --- a/drivers/gpu/drm/vc4/vc4_crtc.c
>> +++ b/drivers/gpu/drm/vc4/vc4_crtc.c
>> @@ -1031,6 +1031,7 @@ static const struct drm_crtc_funcs vc4_crtc_funcs = {
>>         .gamma_set = drm_atomic_helper_legacy_gamma_set,
>>         .enable_vblank = vc4_enable_vblank,
>>         .disable_vblank = vc4_disable_vblank,
>> +       .get_vblank_timestamp = drm_crtc_vblank_helper_get_vblank_timestamp,
>>  };
>>
>>  static const struct drm_crtc_helper_funcs vc4_crtc_helper_funcs = {
>> diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
>> index e6982a7b0c5e..76f93b662766 100644
>> --- a/drivers/gpu/drm/vc4/vc4_drv.c
>> +++ b/drivers/gpu/drm/vc4/vc4_drv.c
>> @@ -190,8 +190,6 @@ static struct drm_driver vc4_drm_driver = {
>>         .irq_postinstall = vc4_irq_postinstall,
>>         .irq_uninstall = vc4_irq_uninstall,
>>
>> -       .get_vblank_timestamp = drm_calc_vbltimestamp_from_scanoutpos,
>> -
>>  #if defined(CONFIG_DEBUG_FS)
>>         .debugfs_init = vc4_debugfs_init,
>>  #endif
>> --
>> 2.24.1
>>

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200210/0d7f4d22/attachment.sig>


More information about the dri-devel mailing list