From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Agner Subject: Re: [PATCH 2/2] drm/fsl-dcu: use drm_display_mode_to_videomode to calculate timing parameters Date: Mon, 01 Oct 2018 22:03:28 +0200 Message-ID: <56170905672e17e6bd9bf0ef45c10ef6@agner.ch> References: <20180926204150.29829-1-stefan@agner.ch> <20180926204150.29829-2-stefan@agner.ch> <20181001075702.GS11082@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20181001075702.GS11082@phenom.ffwll.local> Sender: linux-kernel-owner@vger.kernel.org To: Stefan Agner Cc: alison.wang@nxp.com, airlied@linux.ie, Madhur Verma , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Hemanshu Srivastava , Satendra Singh Thakur , Daniel Vetter List-Id: dri-devel@lists.freedesktop.org On 01.10.2018 09:57, Daniel Vetter wrote: > On Wed, Sep 26, 2018 at 10:41:50PM +0200, Stefan Agner wrote: >> From: Satendra Singh Thakur >> >> Use the drm_display_mode_to_videomode function to calculate front/ >> back porches and sync length. >> >> Cc: Madhur Verma >> Cc: Hemanshu Srivastava >> Signed-off-by: Satendra Singh Thakur >> Signed-off-by: Stefan Agner > > I think if lots of people want this (iirc yours not the only driver that > wants front/back-porch) we should extend the computed crtc_* fields with > this. Kinda silly we force people to go through v4l videomode in drm > drivers. But then, this gets the job done, so maybe an idea for todo.rst? Hm, I see, yeah seems rather straight forward to calculate this information in drm_mode_set_crtcinfo(). > > On both patches: > > Acked-by: Daniel Vetter Thanks, applied both. -- Stefan >> --- >> drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 32 ++++++++++------------ >> 1 file changed, 14 insertions(+), 18 deletions(-) >> >> diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c >> index 05d1c9977395..18afc94e4dff 100644 >> --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c >> +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c >> @@ -17,6 +17,7 @@ >> #include >> #include >> #include >> +#include