]> xenbits.xensource.com Git - people/aperard/linux-arndale.git/commitdiff
hvc: clear some status flags. xen-arndale xen-arndale
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 26 Feb 2013 17:57:02 +0000 (17:57 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Tue, 26 Feb 2013 17:57:02 +0000 (17:57 +0000)
without this, the request_irq failed with -22 (hvc_open).

drivers/tty/hvc/hvc_irq.c

index c9adb0559f61c2b743125b35713df17e3720e624..a96d37f263ac658c09023888c86a5956b1a5ab1b 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <linux/interrupt.h>
+#include <linux/irq.h>
 
 #include "hvc_console.h"
 
@@ -28,6 +29,7 @@ int notifier_add_irq(struct hvc_struct *hp, int irq)
                hp->irq_requested = 0;
                return 0;
        }
+       irq_clear_status_flags(irq, IRQ_NOREQUEST|IRQ_NOAUTOEN);
        rc = request_irq(irq, hvc_handle_interrupt, 0,
                           "hvc_console", hp);
        if (!rc)