Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/exynos: dsi: do not set TE GPIO direction by input

On some board, TE GPIO should be configured properly thoughout pinctrl driver
as an wakeup interrupt. So this gpio should be configurable in the board's DT,
not being requested as a input pin.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Hyungwon Hwang and committed by
Inki Dae
51d1deca f5f3b9ba

+2 -2
+2 -2
drivers/gpu/drm/exynos/exynos_drm_dsi.c
··· 1327 1327 goto out; 1328 1328 } 1329 1329 1330 - ret = gpio_request_one(dsi->te_gpio, GPIOF_IN, "te_gpio"); 1330 + ret = gpio_request(dsi->te_gpio, "te_gpio"); 1331 1331 if (ret) { 1332 1332 dev_err(dsi->dev, "gpio request failed with %d\n", ret); 1333 1333 goto out; 1334 1334 } 1335 1335 1336 1336 te_gpio_irq = gpio_to_irq(dsi->te_gpio); 1337 - 1338 1337 irq_set_status_flags(te_gpio_irq, IRQ_NOAUTOEN); 1338 + 1339 1339 ret = request_threaded_irq(te_gpio_irq, exynos_dsi_te_irq_handler, NULL, 1340 1340 IRQF_TRIGGER_RISING, "TE", dsi); 1341 1341 if (ret) {