From: Andrew Morton <akpm@linux-foundation.org>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" <rjw@sisk.pl>,
Greg KH <greg@kroah.com>
Subject: Re: [PATCH 1/3] Misc: phantom, synchronize_irq() on suspend
Date: Mon, 15 Oct 2007 16:23:44 -0700 [thread overview]
Message-ID: <20071015162344.dca7023c.akpm@linux-foundation.org> (raw)
In-Reply-To: <3012721321185026886@pripojeni.net>
On Mon, 15 Oct 2007 09:32:28 -0700
Jiri Slaby <jirislaby@gmail.com> wrote:
> 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;
> }
>
What inspired this change? Some bug report, or does it just seem the right
thing to do?
Would it be logical to do this operation from the PCI core somewhere, on
behalf of all PCI drivers?
next prev parent reply other threads:[~2007-10-15 23:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-15 16:32 [PATCH 1/3] Misc: phantom, synchronize_irq() on suspend Jiri Slaby
2007-10-15 16:33 ` [PATCH 2/3] Misc: phantom, add comment about openhaptics Jiri Slaby
2007-10-15 16:33 ` [PATCH 3/3] Misc: phantom, improved data passing Jiri Slaby
2007-10-15 23:31 ` Andrew Morton
2007-10-16 17:50 ` [PATCH 1/1] misc-phantom-improved-data-passing-fix Jiri Slaby
2007-10-15 23:23 ` Andrew Morton [this message]
2007-10-16 12:09 ` Common .suspend()/.resume() template for PCI devices (was: Re: [PATCH 1/3] Misc: phantom, synchronize_irq() on suspend) Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071015162344.dca7023c.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=greg@kroah.com \
--cc=jirislaby@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@sisk.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox