diff options
Diffstat (limited to 'drivers/pci/msi.c')
-rw-r--r-- | drivers/pci/msi.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 532f73bb2224..ee8677bda950 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -439,10 +439,7 @@ static void enable_msi_mode(struct pci_dev *dev, int pos, int type) | |||
439 | } | 439 | } |
440 | if (pci_find_capability(dev, PCI_CAP_ID_EXP)) { | 440 | if (pci_find_capability(dev, PCI_CAP_ID_EXP)) { |
441 | /* PCI Express Endpoint device detected */ | 441 | /* PCI Express Endpoint device detected */ |
442 | u16 cmd; | 442 | pci_intx(dev, 0); /* disable intx */ |
443 | pci_read_config_word(dev, PCI_COMMAND, &cmd); | ||
444 | cmd |= PCI_COMMAND_INTX_DISABLE; | ||
445 | pci_write_config_word(dev, PCI_COMMAND, cmd); | ||
446 | } | 443 | } |
447 | } | 444 | } |
448 | 445 | ||
@@ -461,10 +458,7 @@ void disable_msi_mode(struct pci_dev *dev, int pos, int type) | |||
461 | } | 458 | } |
462 | if (pci_find_capability(dev, PCI_CAP_ID_EXP)) { | 459 | if (pci_find_capability(dev, PCI_CAP_ID_EXP)) { |
463 | /* PCI Express Endpoint device detected */ | 460 | /* PCI Express Endpoint device detected */ |
464 | u16 cmd; | 461 | pci_intx(dev, 1); /* enable intx */ |
465 | pci_read_config_word(dev, PCI_COMMAND, &cmd); | ||
466 | cmd &= ~PCI_COMMAND_INTX_DISABLE; | ||
467 | pci_write_config_word(dev, PCI_COMMAND, cmd); | ||
468 | } | 462 | } |
469 | } | 463 | } |
470 | 464 | ||