Skip to content

Commit 22e098d

Browse files
Andrzej Hajdadaeinki
authored andcommitted
drm/exynos/dsi: make te-gpios optional
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. And also if panel device node of command mode panel device doesn't provide te-gpios property then the panel driver failed to probe. This was a critial issue. With this patch we can not only get rid of 60 interrupt callbacks per second but also fix the critial issues. Signed-off-by: Andrzej Hajda <[email protected]> Signed-off-by: Inki Dae <[email protected]>
1 parent 9cdf0ed commit 22e098d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/gpu/drm/exynos/exynos_drm_dsi.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,9 +1335,12 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi)
13351335
int te_gpio_irq;
13361336

13371337
dsi->te_gpio = of_get_named_gpio(dsi->panel_node, "te-gpios", 0);
1338+
if (dsi->te_gpio == -ENOENT)
1339+
return 0;
1340+
13381341
if (!gpio_is_valid(dsi->te_gpio)) {
1339-
dev_err(dsi->dev, "no te-gpios specified\n");
13401342
ret = dsi->te_gpio;
1343+
dev_err(dsi->dev, "cannot get te-gpios, %d\n", ret);
13411344
goto out;
13421345
}
13431346

0 commit comments

Comments
 (0)