From aee8447cb5d497cc90ebe171bf70d9e68787e988 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Thu, 18 Oct 2007 23:40:23 -0700 Subject: [PATCH] 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/misc/phantom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/phantom.c b/drivers/misc/phantom.c index 5108b7c..6e61a79 100644 --- a/drivers/misc/phantom.c +++ b/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); ioread32(dev->caddr + PHN_IRQCTL); /* PCI posting */ + synchronize_irq(pdev->irq); + return 0; } -- 2.7.4