All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/exynos/dsi: make te-gpios optional
       [not found] <CGME20170315112050eucas1p10ac34c1093b97a338e098c539b84ded6@eucas1p1.samsung.com>
@ 2017-03-15 11:20 ` Andrzej Hajda
  2017-03-21  5:10   ` Inki Dae
  2017-04-18  7:34   ` Hoegeun Kwon
  0 siblings, 2 replies; 4+ messages in thread
From: Andrzej Hajda @ 2017-03-15 11:20 UTC (permalink / raw)
  To: Inki Dae, dri-devel, linux-samsung-soc
  Cc: Andrzej Hajda, Bartlomiej Zolnierkiewicz, Marek Szyprowski

DSI forwards te-gpios interrupts to display controller, but if display
controller works in HW-TRIGGER mode this interrupt is not necessary.
Making te-gpios property optional allows to avoid generating spare
interrupts.
With this patch we can get rid of 60 interrupt callbacks per second.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
---
 drivers/gpu/drm/exynos/exynos_drm_dsi.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
index 812e2ec..822094d 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
@@ -1348,9 +1348,12 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi)
 	int te_gpio_irq;
 
 	dsi->te_gpio = of_get_named_gpio(dsi->panel_node, "te-gpios", 0);
+	if (dsi->te_gpio == -ENOENT)
+		return 0;
+
 	if (!gpio_is_valid(dsi->te_gpio)) {
-		dev_err(dsi->dev, "no te-gpios specified\n");
 		ret = dsi->te_gpio;
+		dev_err(dsi->dev, "cannot get te-gpios, %d\n", ret);
 		goto out;
 	}
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] drm/exynos/dsi: make te-gpios optional
  2017-03-15 11:20 ` [PATCH v2] drm/exynos/dsi: make te-gpios optional Andrzej Hajda
@ 2017-03-21  5:10   ` Inki Dae
  2017-03-21  8:55     ` Andrzej Hajda
  2017-04-18  7:34   ` Hoegeun Kwon
  1 sibling, 1 reply; 4+ messages in thread
From: Inki Dae @ 2017-03-21  5:10 UTC (permalink / raw)
  To: Andrzej Hajda, dri-devel, linux-samsung-soc
  Cc: Marek Szyprowski, Bartlomiej Zolnierkiewicz



2017년 03월 15일 20:20에 Andrzej Hajda 이(가) 쓴 글:
> DSI forwards te-gpios interrupts to display controller, but if display
> controller works in HW-TRIGGER mode this interrupt is not necessary.
> Making te-gpios property optional allows to avoid generating spare
> interrupts.
> With this patch we can get rid of 60 interrupt callbacks per second.

As I said before like below,
"If panel device node of command mode panel device doesn't provide te-gpios property then now the panel driver will fail to probe.
Seems this patch makes it to allow the panel driver probing is always ok even if gpio is invalid."

This patch will fix critical issue that the panel driver fails to probe if the panel device node has no te-gpios property.
I think adding above sentence to this description would be good. So I will merge this patch after adding the description. I can do this.

Thanks,
Inki Dae

> 
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
> ---
>  drivers/gpu/drm/exynos/exynos_drm_dsi.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
> index 812e2ec..822094d 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
> @@ -1348,9 +1348,12 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi)
>  	int te_gpio_irq;
>  
>  	dsi->te_gpio = of_get_named_gpio(dsi->panel_node, "te-gpios", 0);
> +	if (dsi->te_gpio == -ENOENT)
> +		return 0;
> +
>  	if (!gpio_is_valid(dsi->te_gpio)) {
> -		dev_err(dsi->dev, "no te-gpios specified\n");
>  		ret = dsi->te_gpio;
> +		dev_err(dsi->dev, "cannot get te-gpios, %d\n", ret);
>  		goto out;
>  	}
>  
> 
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] drm/exynos/dsi: make te-gpios optional
  2017-03-21  5:10   ` Inki Dae
@ 2017-03-21  8:55     ` Andrzej Hajda
  0 siblings, 0 replies; 4+ messages in thread
From: Andrzej Hajda @ 2017-03-21  8:55 UTC (permalink / raw)
  To: Inki Dae, dri-devel, linux-samsung-soc
  Cc: Bartlomiej Zolnierkiewicz, Marek Szyprowski

On 21.03.2017 06:10, Inki Dae wrote:
>
> 2017년 03월 15일 20:20에 Andrzej Hajda 이(가) 쓴 글:
>> DSI forwards te-gpios interrupts to display controller, but if display
>> controller works in HW-TRIGGER mode this interrupt is not necessary.
>> Making te-gpios property optional allows to avoid generating spare
>> interrupts.
>> With this patch we can get rid of 60 interrupt callbacks per second.
> As I said before like below,
> "If panel device node of command mode panel device doesn't provide te-gpios property then now the panel driver will fail to probe.
> Seems this patch makes it to allow the panel driver probing is always ok even if gpio is invalid."
>
> This patch will fix critical issue that the panel driver fails to probe if the panel device node has no te-gpios property.
> I think adding above sentence to this description would be good. So I will merge this patch after adding the description. I can do this.

Thanks, it seems I have misunderstood your previous post.

Regards
Andrzej

>
> Thanks,
> Inki Dae
>
>> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
>> ---
>>  drivers/gpu/drm/exynos/exynos_drm_dsi.c | 5 ++++-
>>  1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
>> index 812e2ec..822094d 100644
>> --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
>> +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
>> @@ -1348,9 +1348,12 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi)
>>  	int te_gpio_irq;
>>  
>>  	dsi->te_gpio = of_get_named_gpio(dsi->panel_node, "te-gpios", 0);
>> +	if (dsi->te_gpio == -ENOENT)
>> +		return 0;
>> +
>>  	if (!gpio_is_valid(dsi->te_gpio)) {
>> -		dev_err(dsi->dev, "no te-gpios specified\n");
>>  		ret = dsi->te_gpio;
>> +		dev_err(dsi->dev, "cannot get te-gpios, %d\n", ret);
>>  		goto out;
>>  	}
>>  
>>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] drm/exynos/dsi: make te-gpios optional
  2017-03-15 11:20 ` [PATCH v2] drm/exynos/dsi: make te-gpios optional Andrzej Hajda
  2017-03-21  5:10   ` Inki Dae
@ 2017-04-18  7:34   ` Hoegeun Kwon
  1 sibling, 0 replies; 4+ messages in thread
From: Hoegeun Kwon @ 2017-04-18  7:34 UTC (permalink / raw)
  To: Andrzej Hajda, Inki Dae, dri-devel, linux-samsung-soc
  Cc: Bartlomiej Zolnierkiewicz, Hoegeun Kwon, Marek Szyprowski

On 03/15/2017 08:20 PM, Andrzej Hajda wrote:
> DSI forwards te-gpios interrupts to display controller, but if display
> controller works in HW-TRIGGER mode this interrupt is not necessary.
> Making te-gpios property optional allows to avoid generating spare
> interrupts.
> With this patch we can get rid of 60 interrupt callbacks per second.
>
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>

Reviewed-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>

Best regards,
Hoegeun

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-18  7:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20170315112050eucas1p10ac34c1093b97a338e098c539b84ded6@eucas1p1.samsung.com>
2017-03-15 11:20 ` [PATCH v2] drm/exynos/dsi: make te-gpios optional Andrzej Hajda
2017-03-21  5:10   ` Inki Dae
2017-03-21  8:55     ` Andrzej Hajda
2017-04-18  7:34   ` Hoegeun Kwon

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.