Skip to content

Commit

Permalink
Misc: phantom, synchronize_irq() on suspend
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Oct 19, 2007
1 parent 8707d8b commit aee8447
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/misc/phantom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit aee8447

Please sign in to comment.