linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brett Russ <russb@emc.com>
To: Jeff Garzik <jgarzik@pobox.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 11:09:27 -0400	[thread overview]
Message-ID: <431DB127.3010809@emc.com> (raw)
In-Reply-To: <431CBDCB.40903@pobox.com>

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.
>>
>> If I'm wrong on both counts I'll blame it on need for sleep... :-)
> 
> 
> 
> Moving AHCI away from ata_pci_remove_one() was actually intentional. 
> This gives the driver a bit more freedom:  legacy region handling and 
> ->host_stop() became unnecessary.  Also, I was concerned that 
> ata_pci_remove_one() might grow into a one-size-fits-all unmaintainable 
> behemoth.
> 
> Short term, if one were being obsessive, a potential cleanup could be to 
> make common the two loops in ahci_remove_one()/ata_pci_remove_one().
> 
> Long term, libata driver API should become more like the 
> register_foo()/unregister_foo() interfaces you see elsewhere in the 
> kernel.  That direction has the potential to shake up the current code 
> path through ata_pci_remove_one().
> 
> So... your patch, while technically correct, is going in the opposite 
> direction to where I want to go :)


Good to know, thanks for explaining the goals.  How about question #2 above?

Thanks,
BR

  reply	other threads:[~2005-09-06 15:09 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 [this message]
2005-09-07  2:01     ` Jeff Garzik

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=431DB127.3010809@emc.com \
    --to=russb@emc.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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).