Lines 228-236
Link Here
|
228 |
|
228 |
|
229 |
/* |
229 |
/* |
230 |
* Use MSI in preference to legacy IRQ if available. |
230 |
* Use MSI in preference to legacy IRQ if available. |
231 |
* Whilst some PCIe UARTs support >1 MSI vector, use only the first. |
231 |
* Whilst some PCIe UARTs support >1 MSI vector, use only support |
|
|
232 |
* UARTs using 1. |
232 |
*/ |
233 |
*/ |
233 |
if (pci_msi_count(dev) > 0) { |
234 |
if (pci_msi_count(dev) == 1) { |
234 |
count = 1; |
235 |
count = 1; |
235 |
if (pci_alloc_msi(dev, &count) == 0) { |
236 |
if (pci_alloc_msi(dev, &count) == 0) { |
236 |
sc->sc_irid = 1; |
237 |
sc->sc_irid = 1; |