diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-10-19 02:40:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:41 -0400 |
commit | aee8447cb5d497cc90ebe171bf70d9e68787e988 (patch) | |
tree | 888afd12a2b3f1e748035693ded0770acdc0a5bb /drivers | |
parent | 8707d8b8c0cbdf4441507f8dded194167da896c7 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/phantom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/phantom.c b/drivers/misc/phantom.c index 5108b7c576df..6e61a79de24c 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) | |||
378 | iowrite32(0, dev->caddr + PHN_IRQCTL); | 378 | iowrite32(0, dev->caddr + PHN_IRQCTL); |
379 | ioread32(dev->caddr + PHN_IRQCTL); /* PCI posting */ | 379 | ioread32(dev->caddr + PHN_IRQCTL); /* PCI posting */ |
380 | 380 | ||
381 | synchronize_irq(pdev->irq); | ||
382 | |||
381 | return 0; | 383 | return 0; |
382 | } | 384 | } |
383 | 385 | ||