diff options
author | Alan Tull <alan.tull@freescale.com> | 2011-10-26 10:40:17 -0500 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-07-20 13:16:46 +0800 |
commit | dea7a8f0f3655363ffeabab505db249c1108b783 (patch) | |
tree | d1eb1bbfcd4c77c10bcea33c8736871f0773f217 /drivers/video/mxc_hdmi.c | |
parent | 377251912f8bd7762ec5eaa5fd180849df9029aa (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/video/mxc_hdmi.c')
-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; |