[PATCH v6 05/14] drm/exynos: dsi: add TE interrupt handler to support LCD I80 interface
Varka Bhadram
varkabhadram at gmail.com
Tue Jul 22 03:57:55 PDT 2014
On 07/22/2014 04:19 PM, YoungJun Cho wrote:
(...)
> + ret = gpio_request_one(dsi->te_gpio, GPIOF_IN, "te_gpio");
devm_* APIs..?
> + if (ret) {
> + dev_err(dsi->dev, "gpio request failed with %d\n", ret);
> + goto out;
> + }
> +
> + /*
> + * This TE GPIO IRQ should not be set to IRQ_NOAUTOEN, because panel
> + * calls drm_panel_init() first then calls mipi_dsi_attach() in probe().
> + * It means that te_gpio is invalid when exynos_dsi_enable_irq() is
> + * called by drm_panel_init() before panel is attached.
> + */
> + ret = request_threaded_irq(gpio_to_irq(dsi->te_gpio),
> + exynos_dsi_te_irq_handler, NULL,
> + IRQF_TRIGGER_RISING, "TE", dsi);
why don't we use devm_request_threaded_irq()..?
--
Regards,
Varka Bhadram.
More information about the dri-devel
mailing list