]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] PCI: PCI/libata INTx bug fix
authorBrett M Russ <russb@emc.com>
Fri, 9 Sep 2005 17:02:22 +0000 (10:02 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 17:27:23 +0000 (10:27 -0700)
Previous INTx cleanup patch had a bug that was not caught.  I found
this last night during testing and can confirm that it is now 100%
working.

Signed-off-by: Brett Russ <russb@emc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pci/pci.c

index ccff633a3948626d7c797f1b2e586e68d56d04e8..992db89adce7b2ea6b03902f012b664d1ff7f0fe 100644 (file)
@@ -819,7 +819,7 @@ pci_intx(struct pci_dev *pdev, int enable)
        }
 
        if (new != pci_command) {
-               pci_write_config_word(pdev, PCI_COMMAND, pci_command);
+               pci_write_config_word(pdev, PCI_COMMAND, new);
        }
 }