All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>,
	dri-devel@lists.freedesktop.org
Cc: daniel.vetter@ffwll.ch, sam@ravnborg.org
Subject: Re: [PATCH 7/7] drm/gma500: Add crtc prefix to vblank functions
Date: Tue, 22 Mar 2022 20:36:51 +0100	[thread overview]
Message-ID: <66cc3cd8-e737-e032-9135-bed05db2f401@suse.de> (raw)
In-Reply-To: <20220322131742.11566-7-patrik.r.jakobsson@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 3651 bytes --]

Hi

Am 22.03.22 um 14:17 schrieb Patrik Jakobsson:
> These functions operate on a crtc and should be prefixed properly.
> 
> Suggested-by: Thomas Zimmermann <tzimmermann@suse.de>
> Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>

For the whole patchset:

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>

If you like, please consider the few comments I had.

Best regards
Thomas


> ---
>   drivers/gpu/drm/gma500/gma_display.c | 6 +++---
>   drivers/gpu/drm/gma500/psb_irq.c     | 6 +++---
>   drivers/gpu/drm/gma500/psb_irq.h     | 6 +++---
>   3 files changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/gpu/drm/gma500/gma_display.c b/drivers/gpu/drm/gma500/gma_display.c
> index 369bc1f751cb..34ec3fca09ba 100644
> --- a/drivers/gpu/drm/gma500/gma_display.c
> +++ b/drivers/gpu/drm/gma500/gma_display.c
> @@ -575,9 +575,9 @@ const struct drm_crtc_funcs gma_crtc_funcs = {
>   	.set_config = gma_crtc_set_config,
>   	.destroy = gma_crtc_destroy,
>   	.page_flip = gma_crtc_page_flip,
> -	.enable_vblank = gma_enable_vblank,
> -	.disable_vblank = gma_disable_vblank,
> -	.get_vblank_counter = gma_get_vblank_counter,
> +	.enable_vblank = gma_crtc_enable_vblank,
> +	.disable_vblank = gma_crtc_disable_vblank,
> +	.get_vblank_counter = gma_crtc_get_vblank_counter,
>   };
>   
>   /*
> diff --git a/drivers/gpu/drm/gma500/psb_irq.c b/drivers/gpu/drm/gma500/psb_irq.c
> index 2e8ded532930..e6e6d61bbeab 100644
> --- a/drivers/gpu/drm/gma500/psb_irq.c
> +++ b/drivers/gpu/drm/gma500/psb_irq.c
> @@ -371,7 +371,7 @@ void gma_irq_uninstall(struct drm_device *dev)
>   	free_irq(pdev->irq, dev);
>   }
>   
> -int gma_enable_vblank(struct drm_crtc *crtc)
> +int gma_crtc_enable_vblank(struct drm_crtc *crtc)
>   {
>   	struct drm_device *dev = crtc->dev;
>   	unsigned int pipe = crtc->index;
> @@ -404,7 +404,7 @@ int gma_enable_vblank(struct drm_crtc *crtc)
>   	return 0;
>   }
>   
> -void gma_disable_vblank(struct drm_crtc *crtc)
> +void gma_crtc_disable_vblank(struct drm_crtc *crtc)
>   {
>   	struct drm_device *dev = crtc->dev;
>   	unsigned int pipe = crtc->index;
> @@ -428,7 +428,7 @@ void gma_disable_vblank(struct drm_crtc *crtc)
>   /* Called from drm generic code, passed a 'crtc', which
>    * we use as a pipe index
>    */
> -u32 gma_get_vblank_counter(struct drm_crtc *crtc)
> +u32 gma_crtc_get_vblank_counter(struct drm_crtc *crtc)
>   {
>   	struct drm_device *dev = crtc->dev;
>   	unsigned int pipe = crtc->index;
> diff --git a/drivers/gpu/drm/gma500/psb_irq.h b/drivers/gpu/drm/gma500/psb_irq.h
> index c22878914f5b..b51e395194ff 100644
> --- a/drivers/gpu/drm/gma500/psb_irq.h
> +++ b/drivers/gpu/drm/gma500/psb_irq.h
> @@ -20,9 +20,9 @@ void gma_irq_postinstall(struct drm_device *dev);
>   int  gma_irq_install(struct drm_device *dev, unsigned int irq);
>   void gma_irq_uninstall(struct drm_device *dev);
>   
> -int  gma_enable_vblank(struct drm_crtc *crtc);
> -void gma_disable_vblank(struct drm_crtc *crtc);
> -u32  gma_get_vblank_counter(struct drm_crtc *crtc);
> +int  gma_crtc_enable_vblank(struct drm_crtc *crtc);
> +void gma_crtc_disable_vblank(struct drm_crtc *crtc);
> +u32  gma_crtc_get_vblank_counter(struct drm_crtc *crtc);
>   void gma_enable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask);
>   void gma_disable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask);
>   

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

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

  reply	other threads:[~2022-03-22 19:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-22 13:17 [PATCH 1/7] drm/gma500: Use managed drmm_mode_config_init() Patrik Jakobsson
2022-03-22 13:17 ` [PATCH 2/7] drm/gma500: Uninstall interrupts on driver removal Patrik Jakobsson
2022-03-22 13:17 ` [PATCH 3/7] drm/gma500: Make use of the drm connector iterator Patrik Jakobsson
2022-03-22 14:39   ` Daniel Vetter
2022-03-22 15:46     ` Patrik Jakobsson
2022-03-22 19:34       ` Thomas Zimmermann
2022-03-22 13:17 ` [PATCH 4/7] drm/gma500: gma500 don't register non-hotpluggable connectors Patrik Jakobsson
2022-03-22 13:17 ` [PATCH 5/7] drm/gma500: Free the correct connector allocation Patrik Jakobsson
2022-03-22 13:17 ` [PATCH 6/7] drm/gma500: Declare a few functions static Patrik Jakobsson
2022-03-22 13:17 ` [PATCH 7/7] drm/gma500: Add crtc prefix to vblank functions Patrik Jakobsson
2022-03-22 19:36   ` Thomas Zimmermann [this message]
2022-03-22 22:46     ` Patrik Jakobsson
2022-03-22 19:30 ` [PATCH 1/7] drm/gma500: Use managed drmm_mode_config_init() Thomas Zimmermann
2022-03-22 19:32   ` Thomas Zimmermann
2022-03-22 22:42     ` Patrik Jakobsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66cc3cd8-e737-e032-9135-bed05db2f401@suse.de \
    --to=tzimmermann@suse.de \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=patrik.r.jakobsson@gmail.com \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.