]> git.karo-electronics.de Git - linux-beck.git/commitdiff
misc: mei: set IRQF_ONESHOT for msi request_threaded_irq
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 29 May 2012 13:39:10 +0000 (16:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Jun 2012 20:52:14 +0000 (13:52 -0700)
when the default irq quick handler is used then IRQF_ONESHOT must be set
otherwise the request fails and following error is displayed:

genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq ...

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/main.c

index c70333228337d28bc76d1c61510bb57b615d3a68..88e5953eb5becd41fb3dfee32ec0c46d5c6a9c7c 100644 (file)
@@ -982,7 +982,7 @@ static int __devinit mei_probe(struct pci_dev *pdev,
                err = request_threaded_irq(pdev->irq,
                        NULL,
                        mei_interrupt_thread_handler,
-                       0, mei_driver_name, dev);
+                       IRQF_ONESHOT, mei_driver_name, dev);
        else
                err = request_threaded_irq(pdev->irq,
                        mei_interrupt_quick_handler,