drm/exynos: Search for TE-gpio in DSI panel's node
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): CGME20220124135259eucas1p1ed3c76ef23d30afe620e06a419540c9e@eucas1p1.samsung.com
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.
--- 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
@@ -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
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()togpiod_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
Inki Dae
maintainerHi,
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()togpiod_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