From conall@megatron.taku.ie  Thu May 16 14:12:41 2013
Return-Path: <conall@megatron.taku.ie>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 6D83B6CA;
	Thu, 16 May 2013 14:12:41 +0000 (UTC)
	(envelope-from conall@megatron.taku.ie)
Received: from megatron.taku.ie (megatron.taku.ie [89.101.183.235])
	by mx1.freebsd.org (Postfix) with ESMTP id 3389DA44;
	Thu, 16 May 2013 14:12:39 +0000 (UTC)
Received: by megatron.taku.ie (Postfix, from userid 1001)
	id 7E176E; Thu, 16 May 2013 15:03:52 +0100 (IST)
Message-Id: <20130516140352.7E176E@megatron.taku.ie>
Date: Thu, 16 May 2013 15:03:52 +0100 (IST)
From: Conall O'Brien <conal@conall.netl>
Reply-To: Conall <conall@conall.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: David Malone <dwmalone@FreeBSD.org>
Subject: Extend PCI devices in uart driver
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         178689
>Category:       kern
>Synopsis:       [uart] [patch] Extend PCI devices in uart driver
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 16 14:20:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Thu May 16 16:03:43 UTC 2013
>Originator:     
>Release:        
>Organization:
>Environment:
 Custom build kernel, with uart and COM_MULTIPORT configured
>Description:
	StarTech 2 port RS232, 16650 UART chipset serial card is not recognised 
  by the uart driver

>How-To-Repeat:
	Install the StarTech card and reboot into a kernel with uart and 
  COM_MULTIPORT configured. Card will be detected but not recognised as a
  uart device

>Fix:


The following patch allows the uart driver to recognise the PCI card
correctly

Index: sys/dev/uart/uart_bus_pci.c
===================================================================
--- sys/dev/uart/uart_bus_pci.c (revision 250517)
+++ sys/dev/uart/uart_bus_pci.c (working copy)
@@ -130,6 +130,8 @@
        "MosChip MCS9901 PCIe to Peripheral Controller", 0x10 },
 { 0x9710, 0x9904, 0xa000, 0x1000,
        "MosChip MCS9904 PCIe to Peripheral Controller", 0x10 },
+{ 0x9710, 0x9922, 0xa000, 0x1000,
+       "MosChip MCS9902 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:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu May 16 16:01:02 UTC 2013 
Responsible-Changed-Why:  
rescue from 'pending'. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178689 
>Unformatted:
