diff options
Diffstat (limited to 'drivers/irqchip/irq-armada-370-xp.c')
-rw-r--r-- | drivers/irqchip/irq-armada-370-xp.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index fa75a29a0408..3e238cd049e6 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c | |||
@@ -136,6 +136,10 @@ static int armada_370_xp_setup_msi_irq(struct msi_chip *chip, | |||
136 | struct msi_msg msg; | 136 | struct msi_msg msg; |
137 | int virq, hwirq; | 137 | int virq, hwirq; |
138 | 138 | ||
139 | /* We support MSI, but not MSI-X */ | ||
140 | if (desc->msi_attrib.is_msix) | ||
141 | return -EINVAL; | ||
142 | |||
139 | hwirq = armada_370_xp_alloc_msi(); | 143 | hwirq = armada_370_xp_alloc_msi(); |
140 | if (hwirq < 0) | 144 | if (hwirq < 0) |
141 | return hwirq; | 145 | return hwirq; |
@@ -166,15 +170,6 @@ static void armada_370_xp_teardown_msi_irq(struct msi_chip *chip, | |||
166 | armada_370_xp_free_msi(hwirq); | 170 | armada_370_xp_free_msi(hwirq); |
167 | } | 171 | } |
168 | 172 | ||
169 | static int armada_370_xp_check_msi_device(struct msi_chip *chip, struct pci_dev *dev, | ||
170 | int nvec, int type) | ||
171 | { | ||
172 | /* We support MSI, but not MSI-X */ | ||
173 | if (type == PCI_CAP_ID_MSI) | ||
174 | return 0; | ||
175 | return -EINVAL; | ||
176 | } | ||
177 | |||
178 | static struct irq_chip armada_370_xp_msi_irq_chip = { | 173 | static struct irq_chip armada_370_xp_msi_irq_chip = { |
179 | .name = "armada_370_xp_msi_irq", | 174 | .name = "armada_370_xp_msi_irq", |
180 | .irq_enable = unmask_msi_irq, | 175 | .irq_enable = unmask_msi_irq, |
@@ -213,7 +208,6 @@ static int armada_370_xp_msi_init(struct device_node *node, | |||
213 | 208 | ||
214 | msi_chip->setup_irq = armada_370_xp_setup_msi_irq; | 209 | msi_chip->setup_irq = armada_370_xp_setup_msi_irq; |
215 | msi_chip->teardown_irq = armada_370_xp_teardown_msi_irq; | 210 | msi_chip->teardown_irq = armada_370_xp_teardown_msi_irq; |
216 | msi_chip->check_device = armada_370_xp_check_msi_device; | ||
217 | msi_chip->of_node = node; | 211 | msi_chip->of_node = node; |
218 | 212 | ||
219 | armada_370_xp_msi_domain = | 213 | armada_370_xp_msi_domain = |