From nabe@nabechan.org  Thu Sep  4 19:09:00 2003
Return-Path: <nabe@nabechan.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 164F316A4BF
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Sep 2003 19:09:00 -0700 (PDT)
Received: from nabechan.org (ns3.nabechan.org [219.166.183.91])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9DEF943FDF
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Sep 2003 19:08:58 -0700 (PDT)
	(envelope-from nabe@nabechan.org)
Received: from nabechan.org (localhost [127.0.0.1])
	by nabechan.org (8.12.9/8.12.9) with ESMTP id h8528ujp020229
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 5 Sep 2003 11:08:57 +0900 (JST)
	(envelope-from nabe@nabechan.org)
Received: (from nabe@localhost)
	by nabechan.org (8.12.9/8.12.9/Submit) id h8528urt020228;
	Fri, 5 Sep 2003 11:08:56 +0900 (JST)
Message-Id: <200309050208.h8528urt020228@nabechan.org>
Date: Fri, 5 Sep 2003 11:08:56 +0900 (JST)
From: Shingo WATANABE <nabe@nabechan.org>
Reply-To: Shingo WATANABE <nabe@nabechan.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Avlab Low Profile PCI 4 Serial does not work, but worked in previous version
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         56467
>Category:       kern
>Synopsis:       Avlab Low Profile PCI 4 Serial does not work, but worked in previous version
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 04 19:10:14 PDT 2003
>Closed-Date:    Sun Sep 07 14:40:19 PDT 2003
>Last-Modified:  Sun Sep 07 14:40:19 PDT 2003
>Originator:     Shingo WATANABE <nabe@nabechan.org>
>Release:        FreeBSD 4.9-PRERELEASE i386
>Organization:
nabechan.org
>Environment:
System: FreeBSD nabechan.org 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #11: Thu Sep 4 17:28:18 JST 2003 nabe@nabechan.org:/usr/obj/usr/src/sys/NABECHAN i386


	
>Description:
The multi port serial card "Avlab Low Profile PCI 4 Serial" worked on FreeBSD 4.8-STABLE, but it does not probe correctly on 4.9-PRERELEASE.
	pci1: <unknown card> (vendor=0x14db, dev=0x2150) at 0.0 irq 12

This problem was caused by the rev 1.2.2.14 of pucdata.c.
We does not have the "puc_init_t *init;" as a member of struct puc_device_description in RELENG_4, such member only exists in the FreeBSD-current.

	
>How-To-Repeat:
install the above card and make the kernel with "device puc".

>Fix:
apply the following patch and compile the kernel.
the puc driver will probe and work well.

	puc0: <Avlab Low Profile PCI 4 Serial> port 0xbc00-0xbc07,0xb800-0xb807,0xb400-0xb407,0xb000-0xb007 irq 12 at device 0.0 on pci1
	sio2: type 16550A
	sio3: type 16550A
	sio4: type 16550A
	sio5: type 16550A


--- pucdata.c.diff begins here ---
--- pucdata.c.org	Fri Aug 29 04:53:20 2003
+++ pucdata.c	Thu Sep  4 17:20:19 2003
@@ -900,7 +900,6 @@
 
 	/* Moxa Technologies Co., Ltd. PCI I/O Card 8S RS232 */
 	{   "Moxa Technologies, C168U/PCI",
-	    NULL,
 	    {	0x1393,	0x1681,	0,	0	},
 	    {	0xffff,	0xffff,	0,	0,	},
 	    {
--- pucdata.c.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pb 
State-Changed-When: Sun Sep 7 14:39:46 PDT 2003 
State-Changed-Why:  
Fixed, thanks! 

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