Date: Wed, 7 Mar 2012 13:08:04 +0700 (NOVT) From: Eugene Grosbein <eugen@grosbein.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/165804: [uart] [patch] Add support for MosChip MCS9904 PCIe x1 four serial ports controller Message-ID: <201203070608.q276843a004160@eg.sd.rdtc.ru> Resent-Message-ID: <201203070610.q276A9i2042761@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 165804 >Category: kern >Synopsis: [uart] [patch] Add support for MosChip MCS9904 PCIe x1 four serial ports controller >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 07 06:10:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 8.3-PRERELEASE i386 >Organization: RDTC JSC >Environment: System: FreeBSD eg.sd.rdtc.ru 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #39: Wed Mar 7 12:16:36 NOVT 2012 root@eg.sd.rdtc.ru:/usr/local/obj/usr/local/src/sys/EG i386 >Description: uart(4) supports MosChip MCS9900/MCS9901 based controllers but not MCS9904. With following patch applied, all four serial ports are attached and work just find. >How-To-Repeat: Use MosChip MCS9904-based PCIe x1 4-port serial card, ports do not attach: pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0 pci2: <ACPI PCI bus> on pcib2 pci2: <simple comms, UART> at device 0.0 (no driver attached) pci2: <simple comms, UART> at device 0.1 (no driver attached) pci2: <simple comms, UART> at device 0.2 (no driver attached) pci2: <simple comms, UART> at device 0.3 (no driver attached) >Fix: Add card's PCI ID to uart(4) driver: --- sys/dev/uart/uart_bus_pci.c.orig 2012-03-07 12:12:41.000000000 +0700 +++ sys/dev/uart/uart_bus_pci.c 2012-03-07 12:13:44.000000000 +0700 @@ -122,6 +122,8 @@ "MosChip MCS9900 PCIe to Peripheral Controller", 0x10 }, { 0x9710, 0x9901, 0xa000, 0x1000, "MosChip MCS9901 PCIe to Peripheral Controller", 0x10 }, +{ 0x9710, 0x9904, 0xa000, 0x1000, + "MosChip MCS9904 PCIe to Peripheral Controller", 0x10 }, { 0xdeaf, 0x9051, 0xffff, 0, "Middle Digital PC Weasel Serial Port", 0x10 }, { 0xffff, 0, 0xffff, 0, NULL, 0, 0} }; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203070608.q276843a004160>