From b8fcb1733b0c5e6ea92c76fdb049e7b2fa2b9290 Mon Sep 17 00:00:00 2001 From: Erik Gilling Date: Mon, 28 Feb 2011 13:25:44 -0800 Subject: [PATCH] video: tegra: hdmi: enable wakeup on hotplug Change-Id: Idbb3f81c3c2d8a4f7f6b76736e11dd07cdd3a413 Signed-off-by: Erik Gilling --- drivers/video/tegra/dc/hdmi.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.34.1