diff options
| author | Roger Pau Monné <royger@FreeBSD.org> | 2026-03-26 10:01:57 +0000 |
|---|---|---|
| committer | Roger Pau Monné <royger@FreeBSD.org> | 2026-03-27 08:26:32 +0000 |
| commit | 1491fe8f864af5af37e83f1d12459905fb6097fd (patch) | |
| tree | d158e119281c12de347124427316943a69319c47 | |
| parent | aed3bc80fe033ab28e8f01cad49e73deb761516b (diff) | |
uart/pci: support 16550A PCI serial devices
Expand the current check to also attach the ns8250 driver to devices
reporting as 16550A. This has been tested to work on a real device.
From an inspection of the code in the ns8250 driver it seems like it should
support up to 16950A devices, but I don't have hardware to ensure that,
hence be conservative with the change.
MFC: 2 weeks
Reviewed by: imp
Differential revision: https://reviews.freebsd.org/D56095
| -rw-r--r-- | sys/dev/uart/uart_bus_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_bus_pci.c b/sys/dev/uart/uart_bus_pci.c index 22af8ee8663c..7087958cbfa9 100644 --- a/sys/dev/uart/uart_bus_pci.c +++ b/sys/dev/uart/uart_bus_pci.c @@ -297,7 +297,7 @@ uart_pci_probe(device_t dev) } if (pci_get_class(dev) == PCIC_SIMPLECOMM && pci_get_subclass(dev) == PCIS_SIMPLECOMM_UART && - pci_get_progif(dev) < PCIP_SIMPLECOMM_UART_16550A) { + pci_get_progif(dev) <= PCIP_SIMPLECOMM_UART_16550A) { /* XXX rclk what to do */ id = &cid; sc->sc_class = &uart_ns8250_class; |
