[PATCH 1/3] Misc: phantom, synchronize_irq() on suspend

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <linux-kernel@...>
Date: Monday, October 15, 2007 - 12:32 pm

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>

---
commit 7e792ef384190b517f2fb27cd0237fa30dbe0775
tree 17b15e5ab7c90eef0e7ae57e532839e81b831d58
parent 5c008a5651ee92ebe020dd5108a66a7db74fe41d
author Jiri Slaby <jirislaby@gmail.com> Mon, 15 Oct 2007 15:52:21 +0200
committer Jiri Slaby <jirislaby@gmail.com> Mon, 15 Oct 2007 15:52:21 +0200

 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 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;
 }
 
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/3] Misc: phantom, synchronize_irq() on suspend, Jiri Slaby, (Mon Oct 15, 12:32 pm)
Common .suspend()/.resume() template for PCI devices (was: R..., Rafael J. Wysocki, (Tue Oct 16, 8:09 am)
[PATCH 3/3] Misc: phantom, improved data passing, Jiri Slaby, (Mon Oct 15, 12:33 pm)
Re: [PATCH 3/3] Misc: phantom, improved data passing, Andrew Morton, (Mon Oct 15, 7:31 pm)
[PATCH 1/1] misc-phantom-improved-data-passing-fix, Jiri Slaby, (Tue Oct 16, 1:50 pm)