]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00160855 balance spinlock and irq enable in mxc hdmi video isr
authorAlan Tull <alan.tull@freescale.com>
Wed, 26 Oct 2011 15:40:17 +0000 (10:40 -0500)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:09:48 +0000 (14:09 +0200)
Need to add a spinlock unlock and irq enable at a return path.

Signed-off-by: Alan Tull <alan.tull@freescale.com>
drivers/video/mxc_hdmi.c

index c3c0164b2240bdf4b67eedbd827e53caae70fe6f..d48170dab4ea3aa85bfb27e7bb4d98541f697ce9 100644 (file)
@@ -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;