ahci: drop intx manipulation on msi enable

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:32 pm

Gitweb:     http://git.kernel.org/linus/a5bfc4714b3f01365aef89a92673f2ceb1ccf246
Commit:     a5bfc4714b3f01365aef89a92673f2ceb1ccf246
Parent:     6be976e79db3ba691b657476a8bf4a635e5586f9
Author:     Tejun Heo <tj@kernel.org>
AuthorDate: Fri Jan 23 11:31:39 2009 +0900
Committer:  Jeff Garzik <jgarzik@redhat.com>
CommitDate: Tue Mar 24 22:02:40 2009 -0400

    ahci: drop intx manipulation on msi enable
    
    There's no need to turn off intx explicitly on msi enable.  This is
    automatically handled by pci.  Drop it.
    
    This might be needed on machines if the BIOS turns intx off during
    boot.  However, there's no evidence of such behavior for ahci and
    the only such case seems to be ICH5 PATA according to ata_piix.
    Also, given the way ahci operates, it's highly unlikely BIOS ever
    disables IRQ for the controller.  However, as this change has slight
    possibility of introducing failure, please schedule it for #upstream.
    
    Signed-off-by: Tejun Heo <tj@kernel.org>
    Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
---
 drivers/ata/ahci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 66e012c..98d7a9f 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -2647,8 +2647,8 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	if (board_id == board_ahci_sb700 && pdev->revision >= 0x40)
 		hpriv->flags &= ~AHCI_HFLAG_IGN_SERR_INTERNAL;
 
-	if ((hpriv->flags & AHCI_HFLAG_NO_MSI) || pci_enable_msi(pdev))
-		pci_intx(pdev, 1);
+	if (!(hpriv->flags & AHCI_HFLAG_NO_MSI))
+		pci_enable_msi(pdev);
 
 	/* save initial config */
 	ahci_save_initial_config(pdev, hpriv);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ahci: drop intx manipulation on msi enable, Linux Kernel Mailing ..., (Thu Mar 26, 12:32 pm)