]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow uart(4) to use MSI interrupts on single-port PCI instances.
authorBruce M Simpson <bms@FreeBSD.org>
Thu, 12 Jan 2017 16:30:27 +0000 (16:30 +0000)
committerBruce M Simpson <bms@FreeBSD.org>
Thu, 12 Jan 2017 16:30:27 +0000 (16:30 +0000)
commitfb1d9b7f4113d7aeb72a7313f05a629ad691c627
treed20d123f27e4e008632f0319b11abff57638ff25
parent25a334104870cd36696d6d988443d981f7f81388
Allow uart(4) to use MSI interrupts on single-port PCI instances.

Do this here as puc(4) disallows single-port instances; at least
one multi-port PCIe UART chip (in this case, the ASIX MCS9922)
present separate PCI configuration space (functions) for each UART.

Tested using lrzsz and a null-modem cable. The ExpressCard/34
variants containing the MCS9922 should also use MSI with this change.

Reviewed by: jhb, imp, rpokala
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D9123
sys/dev/uart/uart_bus_pci.c
sys/dev/uart/uart_core.c