mei: pci_resume: set IRQF_ONESHOT for msi request_threaded_irq
commit16a50b1270455a6d41f9f6d8f99a72cf9d76824a
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 27 Jun 2012 14:14:20 +0000 (27 17:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jul 2012 17:45:07 +0000 (10 10:45 -0700)
tree7b851a457b3f96abb06a8a52d0ddc0688b0095bd
parentbd0a521e88aa7a06ae7aabaed7ae196ed4ad867a
mei: pci_resume: set IRQF_ONESHOT for msi request_threaded_irq

when the default irq quick handler is used then IRQF_ONESHOT must be set
otherwise the request fails and following error is displayed:

mei 0000:00:16.0: irq 48 for MSI/MSI-X
genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq 48
mei 0000:00:16.0: request_threaded_irq failed: irq = 48.
dpm_run_callback(): pci_pm_resume+0x0/0x140 returns -22
PM: Device 0000:00:16.0 failed to resume async: error -22

Reported-by: Peter Wu <lekensteyn@gmail.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Tested-by: Peter Wu <lekensteyn@gmail.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: stable <stable@vger.kernel.org> # 3.5
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/main.c