Explorar el Código

Misc: phantom, synchronize_irq() on suspend

Wait after disabling device's interrupt until the handler finishes its work if
still in progress.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Jiri Slaby hace 18 años
padre
commit
aee8447cb5
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      drivers/misc/phantom.c

+ 2 - 0
drivers/misc/phantom.c

@@ -378,6 +378,8 @@ static int phantom_suspend(struct pci_dev *pdev, pm_message_t state)
 	iowrite32(0, dev->caddr + PHN_IRQCTL);
 	iowrite32(0, dev->caddr + PHN_IRQCTL);
 	ioread32(dev->caddr + PHN_IRQCTL); /* PCI posting */
 	ioread32(dev->caddr + PHN_IRQCTL); /* PCI posting */
 
 
+	synchronize_irq(pdev->irq);
+
 	return 0;
 	return 0;
 }
 }