From mboxrd@z Thu Jan 1 00:00:00 1970 From: YoungJun Cho Subject: Re: [PATCH v6 05/14] drm/exynos: dsi: add TE interrupt handler to support LCD I80 interface Date: Tue, 22 Jul 2014 11:15:18 +0900 Message-ID: <53CDC936.40108@samsung.com> References: <1405587689-1466-1-git-send-email-yj44.cho@samsung.com> <1405587689-1466-6-git-send-email-yj44.cho@samsung.com> <53CD1D1F.1050109@samsung.com> <53CDBCFA.4040403@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-reply-to: <53CDBCFA.4040403@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org To: Inki Dae , Andrzej Hajda Cc: airlied@linux.ie, dri-devel@lists.freedesktop.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, sw0312.kim@samsung.com, kyungmin.park@samsung.com, robh+dt@kernel.org, galak@codeaurora.org, kgene.kim@samsung.com List-Id: devicetree@vger.kernel.org Hi, On 07/22/2014 10:23 AM, Inki Dae wrote: > On 2014=EB=85=84 07=EC=9B=94 21=EC=9D=BC 23:01, Andrzej Hajda wrote: >> On 07/17/2014 11:01 AM, YoungJun Cho wrote: >>> To support LCD I80 interface, the DSI host should register >>> TE interrupt handler from the TE GPIO of attached panel. >>> So the panel generates a tearing effect synchronization signal >>> then the DSI host calls the CRTC device manager to trigger >>> to transfer video image. >>> >> >> This whole patch seems to be a hack. >> >> I think it is not a good idea to parse property of one device by ano= ther >> device's driver. >> >> Especially here TE GPIO belongs to the panel. The panel driver shoul= d >> know how to configure it and how to use it or not. The panel driver = will >> generate TE signal based on this GPIO, DSI/BTA mechanism or any othe= r >> mechanism provided by the panel. >> TE signal should be delivered to the display controller. The only ro= le >> of DSIM here is that it is between the panel and the display control= ler >> so it should be used to route this signal to DC. It looks like DSIM transfers only TE signal to FIMD, but there is one=20 thing important role, DSIM transfers TE signal only it is activated. Without this thing, a broken screen would be showed at booting time. >> >> According to specs TE signal should/can be generated by DBI and DSI >> command mode panels, so its handling should be more generic, not Exy= nos >> specific. >> > > Right. However, it seems that there are no much users using command m= ode > panel so we would need more times to discuss the generic way. I think= we > can have this feature in specific to Exynos drm - it doesn't affect > other SoC -. Actually, I know OMAP people handle this feature in a w= ay =46or your information, there is a dsicm_te_isr() in=20 drivers/video/fbdev/omap2/displays-new. It seems like that panel -> dsi -> display controller. Thank you. Best regards YJ > specific to OMAP SoC. If other users need more generic way to this > feature then we could have a discussion about the generic way at that= time. > > That is why Mr. Cho implemented TE feature like this. Do you have mor= e > good idea? I wish the idea would be specific so that Mr. Cho can > implement it. > > P.s. Thierry already opposed the use of mipi_dsi_host_ops, I agree wi= th > him. And also it seems not good to use crtc and encoder/connector > because these frameworks are common to all architecture including x86= so > other architectures wouldn't need TE feature. > > Thanks, > Inki Dae > >> Regards >> Andrzej >> >>> Signed-off-by: YoungJun Cho >>> Acked-by: Inki Dae >>> Acked-by: Kyungmin Park >>> --- >>> drivers/gpu/drm/exynos/exynos_drm_dsi.c | 95 ++++++++++++++++++++= ++++++++++++- >>> 1 file changed, 93 insertions(+), 2 deletions(-) >>> >>> diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/= drm/exynos/exynos_drm_dsi.c >>> index 58bfb2a..4997bfe 100644 >>> --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c >>> +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c >>> @@ -16,7 +16,9 @@ >>> #include >>> >>> #include >>> +#include >>> #include >>> +#include >>> #include >>> #include >>> #include >>> @@ -24,6 +26,7 @@ >>> #include