LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Philippe CORNU <philippe.cornu@st.com>
To: Vincent ABRIOU <vincent.abriou@st.com>,
	Yannick FERTRE <yannick.fertre@st.com>,
	Benjamin Gaignard <benjamin.gaignard@linaro.org>,
	David Airlie <airlied@linux.ie>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Fabien DESSENNE <fabien.dessenne@st.com>,
	Mickael REULIER <mickael.reulier@st.com>,
	Alexandre TORGUE <alexandre.torgue@st.com>
Subject: Re: [PATCH] drm/stm: move enable/disable_vblank to crtc
Date: Thu, 19 Apr 2018 10:37:50 +0000	[thread overview]
Message-ID: <caee1cd1-3b73-7f93-552f-428dbad3fc1d@st.com> (raw)
In-Reply-To: <37da4f77-a518-7098-7677-fa28c6626092@st.com>

Applied on drm-misc-next.
Many thanks,
Philippe :-)

On 04/16/2018 11:07 AM, Vincent ABRIOU wrote:
> Hi Philippe,
> 
> Patch looks good to me.
> 
> Reviewed-by: Vincent Abriou <vincent.abriou@st.com>
> 
> On 04/07/2018 11:29 PM, Philippe Cornu wrote:
>> enable/disable_vblank() functions at drm_driver level
>> are deprecated. Move them to the ltdc drm_crtc_funcs
>> structure.
>>
>> Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
>> ---
>>    drivers/gpu/drm/stm/drv.c  |  2 --
>>    drivers/gpu/drm/stm/ltdc.c | 10 ++++++----
>>    drivers/gpu/drm/stm/ltdc.h |  2 --
>>    3 files changed, 6 insertions(+), 8 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm/drv.c
>> index 9ab00a87f7cc..8698e08313e1 100644
>> --- a/drivers/gpu/drm/stm/drv.c
>> +++ b/drivers/gpu/drm/stm/drv.c
>> @@ -72,8 +72,6 @@ static struct drm_driver drv_driver = {
>>    	.gem_prime_vmap = drm_gem_cma_prime_vmap,
>>    	.gem_prime_vunmap = drm_gem_cma_prime_vunmap,
>>    	.gem_prime_mmap = drm_gem_cma_prime_mmap,
>> -	.enable_vblank = ltdc_crtc_enable_vblank,
>> -	.disable_vblank = ltdc_crtc_disable_vblank,
>>    };
>>    
>>    static int drv_load(struct drm_device *ddev)
>> diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c
>> index 1a3277e483d5..2b745cfc9000 100644
>> --- a/drivers/gpu/drm/stm/ltdc.c
>> +++ b/drivers/gpu/drm/stm/ltdc.c
>> @@ -569,9 +569,9 @@ static const struct drm_crtc_helper_funcs ltdc_crtc_helper_funcs = {
>>    	.atomic_disable = ltdc_crtc_atomic_disable,
>>    };
>>    
>> -int ltdc_crtc_enable_vblank(struct drm_device *ddev, unsigned int pipe)
>> +static int ltdc_crtc_enable_vblank(struct drm_crtc *crtc)
>>    {
>> -	struct ltdc_device *ldev = ddev->dev_private;
>> +	struct ltdc_device *ldev = crtc_to_ltdc(crtc);
>>    
>>    	DRM_DEBUG_DRIVER("\n");
>>    	reg_set(ldev->regs, LTDC_IER, IER_LIE);
>> @@ -579,9 +579,9 @@ int ltdc_crtc_enable_vblank(struct drm_device *ddev, unsigned int pipe)
>>    	return 0;
>>    }
>>    
>> -void ltdc_crtc_disable_vblank(struct drm_device *ddev, unsigned int pipe)
>> +static void ltdc_crtc_disable_vblank(struct drm_crtc *crtc)
>>    {
>> -	struct ltdc_device *ldev = ddev->dev_private;
>> +	struct ltdc_device *ldev = crtc_to_ltdc(crtc);
>>    
>>    	DRM_DEBUG_DRIVER("\n");
>>    	reg_clear(ldev->regs, LTDC_IER, IER_LIE);
>> @@ -594,6 +594,8 @@ static const struct drm_crtc_funcs ltdc_crtc_funcs = {
>>    	.reset = drm_atomic_helper_crtc_reset,
>>    	.atomic_duplicate_state = drm_atomic_helper_crtc_duplicate_state,
>>    	.atomic_destroy_state = drm_atomic_helper_crtc_destroy_state,
>> +	.enable_vblank = ltdc_crtc_enable_vblank,
>> +	.disable_vblank = ltdc_crtc_disable_vblank,
>>    	.gamma_set = drm_atomic_helper_legacy_gamma_set,
>>    };
>>    
>> diff --git a/drivers/gpu/drm/stm/ltdc.h b/drivers/gpu/drm/stm/ltdc.h
>> index edb268129c54..61a80d00bc3b 100644
>> --- a/drivers/gpu/drm/stm/ltdc.h
>> +++ b/drivers/gpu/drm/stm/ltdc.h
>> @@ -29,8 +29,6 @@ struct ltdc_device {
>>    	u32 irq_status;
>>    };
>>    
>> -int ltdc_crtc_enable_vblank(struct drm_device *dev, unsigned int pipe);
>> -void ltdc_crtc_disable_vblank(struct drm_device *dev, unsigned int pipe);
>>    int ltdc_load(struct drm_device *ddev);
>>    void ltdc_unload(struct drm_device *ddev);
>>    

      reply	other threads:[~2018-04-19 10:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-07 21:29 Philippe Cornu
2018-04-16  9:07 ` Vincent ABRIOU
2018-04-19 10:37   ` Philippe CORNU [this message]

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=caee1cd1-3b73-7f93-552f-428dbad3fc1d@st.com \
    --to=philippe.cornu@st.com \
    --cc=airlied@linux.ie \
    --cc=alexandre.torgue@st.com \
    --cc=benjamin.gaignard@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=fabien.dessenne@st.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mickael.reulier@st.com \
    --cc=vincent.abriou@st.com \
    --cc=yannick.fertre@st.com \
    --subject='Re: [PATCH] drm/stm: move enable/disable_vblank to crtc' \
    /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

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).