From ebe1e0be07faf950ac388a2c906578ba9d2a500e Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Tue, 26 Feb 2013 17:57:02 +0000 Subject: [PATCH] hvc: clear some status flags. without this, the request_irq failed with -22 (hvc_open). --- drivers/tty/hvc/hvc_irq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/hvc/hvc_irq.c b/drivers/tty/hvc/hvc_irq.c index c9adb0559f61c..a96d37f263ac6 100644 --- a/drivers/tty/hvc/hvc_irq.c +++ b/drivers/tty/hvc/hvc_irq.c @@ -6,6 +6,7 @@ */ #include +#include #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) -- 2.39.5