Skip to contentSkip to conversation

drm/exynos: Search for TE-gpio in DSI panel's node

PATCH In review Marek Szyprowski 3 participants 3 messages Jan 24, 2022 – Jan 28, 2022 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20220124135259eucas1p1ed3c76ef23d30afe620e06a419540c9e@eucas1p1.samsung.com

#1 lore raw

PATCH 1/1 drm/exynos: Search for TE-gpio in DSI panel's node

TE-gpio, if defined, is placed in the panel's node, not the parent DSI node. Change the devm_gpiod_get_optional() to gpiod_get_optional() and pass proper device node to it. The code already has a proper cleanup path, so it looks that the devm_* variant has been applied assidentally during the conversion to gpiod API.

Fixes ee6c8b5afa62 ("drm/exynos: Replace legacy gpio interface for gpiod interface")
---
 drivers/gpu/drm/exynos/exynos_drm_dsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_dsi.c +1 -1
index 14ebbb124852..d13f5e3a030d 100644
@@ -1334,7 +1334,7 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi,
 	int ret;
 	int te_gpio_irq;
 
-	dsi->te_gpio = devm_gpiod_get_optional(dsi->dev, "te", GPIOD_IN);
+	dsi->te_gpio = gpiod_get_optional(panel, "te", GPIOD_IN);
 	if (!dsi->te_gpio) {
 		return 0;
 	} else if (IS_ERR(dsi->te_gpio)) {
Signature · 1 line
2.17.1
#2 lore raw

Hi Marek,

Quoted 4 lines · Marek Szyprowski

TE-gpio, if defined, is placed in the panel's node, not the parent DSI node. Change the devm_gpiod_get_optional() to gpiod_get_optional() and pass proper device node to it. The code already has a proper cleanup path, so it looks that the devm_* variant has been applied assidentally

                                                             ~~~~~~~~~~~~

Small observation: the spelling above should probably be "accidentally".

Quoted 1 line

during the conversion to gpiod API.

Best regards,
Henrik Grimler

maintainer
#3 lore raw

Hi,

22. 1. 25. 00:22에 Henrik Grimler 이(가) 쓴 글:

Quoted 10 lines

Hi Marek,

Quoted 4 lines · Marek Szyprowski

TE-gpio, if defined, is placed in the panel's node, not the parent DSI node. Change the devm_gpiod_get_optional() to gpiod_get_optional() and pass proper device node to it. The code already has a proper cleanup path, so it looks that the devm_* variant has been applied assidentally

                                                             ~~~~~~~~~~~~

Small observation: the spelling above should probably be "accidentally".

I can fix it. Thanks.

Quoted 5 lines
Quoted 1 line

during the conversion to gpiod API.

Best regards,
Henrik Grimler