From tawer@insysnet.ru  Thu Sep 22 05:33:48 2011
Return-Path: <tawer@insysnet.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 428BE106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Sep 2011 05:33:48 +0000 (UTC)
	(envelope-from tawer@insysnet.ru)
Received: from insysnet.ru (cadillac2.insysnet.ru [77.72.138.216])
	by mx1.freebsd.org (Postfix) with SMTP id 7416C8FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Sep 2011 05:33:47 +0000 (UTC)
Received: (qmail 7544 invoked by uid 1001); 22 Sep 2011 09:07:04 +0400
Message-Id: <20110922050704.7542.qmail@insysnet.ru>
Date: 22 Sep 2011 09:07:04 +0400
From: kkv@insysnet.ru
Reply-To: kkv@insysnet.ru
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: support for Oxford Semiconductor OXPCIe952 UARTs
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         160895
>Category:       kern
>Synopsis:       [puc] [patch] add support for Oxford Semiconductor OXPCIe952 UARTs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 22 05:40:07 UTC 2011
>Closed-Date:    Thu Oct 06 14:36:16 UTC 2011
>Last-Modified:  Thu Oct  6 14:40:10 UTC 2011
>Originator:     Konstantin V. Krotov
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD cadillac2.insysnet.ru 8.2-STABLE FreeBSD 8.2-STABLE #16: Tue Sep 20 17:23:35 MSD 2011 tawer@cadillac2.insysnet.ru:/usr/obj/usr/src/sys/CADILLAC2 amd64
>Description:
	i'm have on fbsd RELENG_8 pci-e card with 1 rs-232 port.
and this card don't support.

>How-To-Repeat:
	
>Fix:
I wrote fast-hack patch:
--- pucdata.c   2011-08-22 22:46:02.000000000 +0400
+++ pucdata.c_  2011-09-06 13:27:23.000000000 +0400
@@ -739,6 +739,13 @@
             PUC_PORT_NONSTANDARD, 0x10, 0, -1,
             .config_function = puc_config_oxford_pcie
         },
+
+       {   0x1415, 0xc138, 0xffff, 0,
+           "Oxford Semiconductor OXPCIe952 UARTs",
+           DEFAULT_RCLK * 0x22,
+           PUC_PORT_NONSTANDARD, 0x10, 0, -1,
+           .config_function = puc_config_oxford_pcie
+       },

         {   0x1415, 0xc15d, 0xffff, 0,
             "Oxford Semiconductor OXPCIe952 UARTs (function 1)",

and with this patch device work correctly

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: ae 
State-Changed-When: Thu Sep 29 15:43:51 UTC 2011 
State-Changed-Why:  
Patched in head/. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160895 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/160895: commit references a PR
Date: Thu, 29 Sep 2011 15:43:17 +0000 (UTC)

 Author: ae
 Date: Thu Sep 29 15:43:02 2011
 New Revision: 225878
 URL: http://svn.freebsd.org/changeset/base/225878
 
 Log:
   Add Oxford Semiconductor OXPCIe952 (0x1c38) 1 port serial card.
   
   PR:		kern/160895
   Submitted by:	Konstantin V. Krotov
   MFC after:	1 week
 
 Modified:
   head/sys/dev/puc/pucdata.c
 
 Modified: head/sys/dev/puc/pucdata.c
 ==============================================================================
 --- head/sys/dev/puc/pucdata.c	Thu Sep 29 15:12:58 2011	(r225877)
 +++ head/sys/dev/puc/pucdata.c	Thu Sep 29 15:43:02 2011	(r225878)
 @@ -733,6 +733,13 @@ const struct puc_cfg puc_pci_devices[] =
  	 * <URL:http://www.startech.com>
  	 */
  
 +	{   0x1415, 0xc138, 0xffff, 0,
 +	    "Oxford Semiconductor OXPCIe952 UARTs",
 +	    DEFAULT_RCLK * 0x22,
 +	    PUC_PORT_NONSTANDARD, 0x10, 0, -1,
 +	    .config_function = puc_config_oxford_pcie
 +	},
 +
  	{   0x1415, 0xc158, 0xffff, 0,
  	    "Oxford Semiconductor OXPCIe952 UARTs",
  	    DEFAULT_RCLK * 0x22,
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: ae 
State-Changed-When: Thu Oct 6 14:35:51 UTC 2011 
State-Changed-Why:  
Merged to stable/9 and stable/8. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160895 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/160895: commit references a PR
Date: Thu,  6 Oct 2011 14:33:42 +0000 (UTC)

 Author: ae
 Date: Thu Oct  6 14:33:32 2011
 New Revision: 226061
 URL: http://svn.freebsd.org/changeset/base/226061
 
 Log:
   MFC r225878:
     Add Oxford Semiconductor OXPCIe952 (0x1c38) 1 port serial card.
   
     PR:		kern/160895
     Submitted by:	Konstantin V. Krotov
   
   Approved by:	re (kib)
 
 Modified:
   stable/9/sys/dev/puc/pucdata.c
 Directory Properties:
   stable/9/sys/   (props changed)
   stable/9/sys/amd64/include/xen/   (props changed)
   stable/9/sys/boot/   (props changed)
   stable/9/sys/boot/i386/efi/   (props changed)
   stable/9/sys/boot/ia64/efi/   (props changed)
   stable/9/sys/boot/ia64/ski/   (props changed)
   stable/9/sys/boot/powerpc/boot1.chrp/   (props changed)
   stable/9/sys/boot/powerpc/ofw/   (props changed)
   stable/9/sys/cddl/contrib/opensolaris/   (props changed)
   stable/9/sys/conf/   (props changed)
   stable/9/sys/contrib/dev/acpica/   (props changed)
   stable/9/sys/contrib/octeon-sdk/   (props changed)
   stable/9/sys/contrib/pf/   (props changed)
   stable/9/sys/contrib/x86emu/   (props changed)
 
 Modified: stable/9/sys/dev/puc/pucdata.c
 ==============================================================================
 --- stable/9/sys/dev/puc/pucdata.c	Thu Oct  6 14:29:38 2011	(r226060)
 +++ stable/9/sys/dev/puc/pucdata.c	Thu Oct  6 14:33:32 2011	(r226061)
 @@ -733,6 +733,13 @@ const struct puc_cfg puc_pci_devices[] =
  	 * <URL:http://www.startech.com>
  	 */
  
 +	{   0x1415, 0xc138, 0xffff, 0,
 +	    "Oxford Semiconductor OXPCIe952 UARTs",
 +	    DEFAULT_RCLK * 0x22,
 +	    PUC_PORT_NONSTANDARD, 0x10, 0, -1,
 +	    .config_function = puc_config_oxford_pcie
 +	},
 +
  	{   0x1415, 0xc158, 0xffff, 0,
  	    "Oxford Semiconductor OXPCIe952 UARTs",
  	    DEFAULT_RCLK * 0x22,
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/160895: commit references a PR
Date: Thu,  6 Oct 2011 14:35:23 +0000 (UTC)

 Author: ae
 Date: Thu Oct  6 14:35:09 2011
 New Revision: 226062
 URL: http://svn.freebsd.org/changeset/base/226062
 
 Log:
   MFC r225878:
     Add Oxford Semiconductor OXPCIe952 (0xc138) 1 port serial card.
   
     PR:		kern/160895
     Submitted by:	Konstantin V. Krotov
 
 Modified:
   stable/8/sys/dev/puc/pucdata.c
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/amd64/include/xen/   (props changed)
   stable/8/sys/cddl/contrib/opensolaris/   (props changed)
   stable/8/sys/contrib/dev/acpica/   (props changed)
   stable/8/sys/contrib/pf/   (props changed)
 
 Modified: stable/8/sys/dev/puc/pucdata.c
 ==============================================================================
 --- stable/8/sys/dev/puc/pucdata.c	Thu Oct  6 14:33:32 2011	(r226061)
 +++ stable/8/sys/dev/puc/pucdata.c	Thu Oct  6 14:35:09 2011	(r226062)
 @@ -733,6 +733,13 @@ const struct puc_cfg puc_pci_devices[] =
  	 * <URL:http://www.startech.com>
  	 */
  
 +	{   0x1415, 0xc138, 0xffff, 0,
 +	    "Oxford Semiconductor OXPCIe952 UARTs",
 +	    DEFAULT_RCLK * 0x22,
 +	    PUC_PORT_NONSTANDARD, 0x10, 0, -1,
 +	    .config_function = puc_config_oxford_pcie
 +	},
 +
  	{   0x1415, 0xc158, 0xffff, 0,
  	    "Oxford Semiconductor OXPCIe952 UARTs",
  	    DEFAULT_RCLK * 0x22,
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
