From: Erik Gilling Date: Mon, 28 Feb 2011 21:25:44 +0000 (-0800) Subject: video: tegra: hdmi: enable wakeup on hotplug X-Git-Tag: firefly_0821_release~9833^2~29^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b8fcb1733b0c5e6ea92c76fdb049e7b2fa2b9290;p=firefly-linux-kernel-4.4.55.git video: tegra: hdmi: enable wakeup on hotplug Change-Id: Idbb3f81c3c2d8a4f7f6b76736e11dd07cdd3a413 Signed-off-by: Erik Gilling --- diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c index ad908f0f58ef..1c3f55449b42 100644 --- a/drivers/video/tegra/dc/hdmi.c +++ b/drivers/video/tegra/dc/hdmi.c @@ -598,6 +598,7 @@ static int tegra_dc_hdmi_init(struct tegra_dc *dc) err = -EBUSY; goto err_put_clock; } + enable_irq_wake(gpio_to_irq(dc->out->hotplug_gpio)); hdmi->edid = tegra_edid_create(dc->out->dcc_bus); if (IS_ERR_OR_NULL(hdmi->edid)) { @@ -643,6 +644,7 @@ static int tegra_dc_hdmi_init(struct tegra_dc *dc) err_edid_destroy: tegra_edid_destroy(hdmi->edid); err_free_irq: + disable_irq_wake(gpio_to_irq(dc->out->hotplug_gpio)); free_irq(gpio_to_irq(dc->out->hotplug_gpio), dc); err_put_clock: if (!IS_ERR_OR_NULL(disp2_clk)) @@ -664,6 +666,7 @@ static void tegra_dc_hdmi_destroy(struct tegra_dc *dc) { struct tegra_dc_hdmi_data *hdmi = tegra_dc_get_outdata(dc); + disable_irq_wake(gpio_to_irq(dc->out->hotplug_gpio)); free_irq(gpio_to_irq(dc->out->hotplug_gpio), dc); cancel_delayed_work_sync(&hdmi->work); iounmap(hdmi->base);