diff options
| author | Alan Tull <alan.tull@freescale.com> | 2011-10-26 10:40:17 -0500 |
|---|---|---|
| committer | Jason Liu <r64343@freescale.com> | 2012-01-09 21:02:54 +0800 |
| commit | 41247986ff929fefeecb83ac8b698d6a23e8c0a5 (patch) | |
| tree | 66c2fd3f395c3f86471464bd574ce739b629b17d /drivers | |
| parent | eb91c6b979162c573d5e6ab9c1d457739a17e584 (diff) | |
ENGR00160855 balance spinlock and irq enable in mxc hdmi video isr
Need to add a spinlock unlock and irq enable at a return path.
Signed-off-by: Alan Tull <alan.tull@freescale.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/mxc_hdmi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/mxc_hdmi.c b/drivers/video/mxc_hdmi.c index c3c0164b2240..d48170dab4ea 100644 --- a/drivers/video/mxc_hdmi.c +++ b/drivers/video/mxc_hdmi.c @@ -1461,9 +1461,11 @@ static irqreturn_t mxc_hdmi_hotplug(int irq, void *data) if (ret == IRQ_DISABLE_FAIL) { /* Capture status - used in det_worker ISR */ intr_stat = hdmi_readb(HDMI_IH_PHY_STAT0); - if ((intr_stat & HDMI_IH_PHY_STAT0_HPD) == 0) + if ((intr_stat & HDMI_IH_PHY_STAT0_HPD) == 0) { + hdmi_irq_enable(irq); + spin_unlock_irqrestore(&hdmi->irq_lock, flags); return IRQ_HANDLED; - + } dev_dbg(&hdmi->pdev->dev, "Hotplug interrupt received\n"); hdmi->latest_intr_stat = intr_stat; |
