From: Jeff Garzik <jgarzik@pobox.com>
To: Brett Russ <russb@emc.com>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.6.13] libata: use common pci remove in ahci
Date: Tue, 06 Sep 2005 22:01:40 -0400 [thread overview]
Message-ID: <431E4A04.5030609@pobox.com> (raw)
In-Reply-To: <431DB127.3010809@emc.com>
Brett Russ wrote:
> Jeff Garzik wrote:
>> Brett Russ wrote:
>>> 2) Isn't it wrong for the IRQ disable at the chip to occur *after*
>>> free_irq() is called to disconnect the handler (independent of
>>> question 1...since this is the case currently)? Granted, all of the
>>> ports have gone through scsi_remove_host() but theoretically there
>>> still is a possibility the chip could interrupt.
Answer: depends on hardware.
For all hardware, the conditions that generate interrupts should be shut
down, and then free_irq() is called after that.
Some hardware only needs per-port disable, or nothing besides clearing
any commands, to ensure that interrupts from that hardware are disabled
(this excludes shared interrupts, of course).
This logic is another reason why a driver author may choose to implement
their own PCI ->remove() hook, rather than using the generic
ata_pci_remove_one(). Eliminates the need for a ->host_stop() hook
implementation, and allows one to perform tasks before calling
free_irq(), as well as tasks after the call (normal ->host_stop stuff).
Jeff
prev parent reply other threads:[~2005-09-07 2:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-03 7:18 [PATCH 2.6.13] libata: use common pci remove in ahci Brett Russ
2005-09-05 21:51 ` Jeff Garzik
2005-09-06 15:09 ` Brett Russ
2005-09-07 2:01 ` Jeff Garzik [this message]
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=431E4A04.5030609@pobox.com \
--to=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=russb@emc.com \
/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;
as well as URLs for NNTP newsgroup(s).