All of lore.kernel.org
 help / color / mirror / Atom feed
* [char-misc fix for 3.5] mei: pci_resume: set IRQF_ONESHOT for msi request_threaded_irq
@ 2012-06-27 14:14 Tomas Winkler
  2012-06-27 14:58 ` Lekensteyn
  0 siblings, 1 reply; 3+ messages in thread
From: Tomas Winkler @ 2012-06-27 14:14 UTC (permalink / raw)
  To: gregkh; +Cc: arnd, alan, linux-kernel, lekensteyn, Tomas Winkler

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: Lekensteyn <lekensteyn@gmail.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
 drivers/misc/mei/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index 7de1389..783fcd7 100644
--- a/drivers/misc/mei/main.c
+++ b/drivers/misc/mei/main.c
@@ -1147,7 +1147,7 @@ static int mei_pci_resume(struct device *device)
 		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,
-- 
1.7.4.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [char-misc fix for 3.5] mei: pci_resume: set IRQF_ONESHOT for msi request_threaded_irq
  2012-06-27 14:14 [char-misc fix for 3.5] mei: pci_resume: set IRQF_ONESHOT for msi request_threaded_irq Tomas Winkler
@ 2012-06-27 14:58 ` Lekensteyn
  2012-06-27 15:16   ` Winkler, Tomas
  0 siblings, 1 reply; 3+ messages in thread
From: Lekensteyn @ 2012-06-27 14:58 UTC (permalink / raw)
  To: Tomas Winkler; +Cc: gregkh, arnd, alan, linux-kernel

On Wednesday 27 June 2012 17:14:20 Tomas Winkler wrote:
> 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: Lekensteyn <lekensteyn@gmail.com>
> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Tested-by: Peter Wu <lekensteyn@gmail.com>

(for the real name policy, if you prefer "Lekensteyn", it's fine too)

> ---
>  drivers/misc/mei/main.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
> index 7de1389..783fcd7 100644
> --- a/drivers/misc/mei/main.c
> +++ b/drivers/misc/mei/main.c
> @@ -1147,7 +1147,7 @@ static int mei_pci_resume(struct device *device)
>  		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,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [char-misc fix for 3.5] mei: pci_resume: set IRQF_ONESHOT for msi request_threaded_irq
  2012-06-27 14:58 ` Lekensteyn
@ 2012-06-27 15:16   ` Winkler, Tomas
  0 siblings, 0 replies; 3+ messages in thread
From: Winkler, Tomas @ 2012-06-27 15:16 UTC (permalink / raw)
  To: Lekensteyn; +Cc: gregkh, arnd, alan, linux-kernel



> -----Original Message-----
> From: Lekensteyn [mailto:lekensteyn@gmail.com]
> Sent: Wednesday, June 27, 2012 5:59 PM
> To: Winkler, Tomas
> Cc: gregkh@linuxfoundation.org; arnd@arndb.de; alan@linux.intel.com;
> linux-kernel@vger.kernel.org
> Subject: Re: [char-misc fix for 3.5] mei: pci_resume: set IRQF_ONESHOT for
> msi request_threaded_irq
> 
> On Wednesday 27 June 2012 17:14:20 Tomas Winkler wrote:
> > 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: Lekensteyn <lekensteyn@gmail.com>
> > Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
> Tested-by: Peter Wu <lekensteyn@gmail.com>
> 
> (for the real name policy, if you prefer "Lekensteyn", it's fine too)

Thanks for reporting and testing 
Tomas



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-27 15:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-27 14:14 [char-misc fix for 3.5] mei: pci_resume: set IRQF_ONESHOT for msi request_threaded_irq Tomas Winkler
2012-06-27 14:58 ` Lekensteyn
2012-06-27 15:16   ` Winkler, Tomas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.