From bel@white.orel.ru  Tue Oct 19 12:20:06 2004
Return-Path: <bel@white.orel.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 93FE616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Oct 2004 12:20:06 +0000 (GMT)
Received: from white.orel.ru (white.orel.ru [213.59.64.81])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7FF4243D49
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Oct 2004 12:20:03 +0000 (GMT)
	(envelope-from bel@white.orel.ru)
Received: from white.orel.ru (localhost [127.0.0.1])
	by white.orel.ru (8.12.9/8.12.9) with ESMTP id i9JCJvOC057899
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Oct 2004 16:19:58 +0400 (MSD)
	(envelope-from bel@white.orel.ru)
Received: (from bel@localhost)
	by white.orel.ru (8.12.9/8.12.9/Submit) id i9JCJu5o057897;
	Tue, 19 Oct 2004 16:19:56 +0400 (MSD)
Message-Id: <200410191219.i9JCJu5o057897@white.orel.ru>
Date: Tue, 19 Oct 2004 16:19:56 +0400 (MSD)
From: Andrew Belashov <bel@orel.ru>
Reply-To: Andrew Belashov <bel@orel.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] kernel will not recognize PCCard CD-ROM drive
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         72871
>Category:       kern
>Synopsis:       [patch] kernel will not recognize PCCard CD-ROM drive
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 19 12:20:19 GMT 2004
>Closed-Date:    Wed Oct 20 19:25:44 GMT 2004
>Last-Modified:  Wed Oct 20 19:25:44 GMT 2004
>Originator:     Andrew Belashov
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
JSC CenterTelecom
>Environment:
System: FreeBSD belnb.localdomain 6.0-CURRENT FreeBSD 6.0-CURRENT #38: Tue Oct
19 14:03:03 MSD 2004 bel@belnb.localdomain:/usr/obj/usr/src/sys/BELNBO i386

	Hardware: Fujitsu FMV-Biblio NU13 notebook; TEAC CD-224E CD-ROM
drive with "TEAC IDE Card/II" PCCard (PCMCIA card) aka "NinjaATA-".

>Description:

	Kernel does not attach CD-ROM.

>How-To-Repeat:

	Insert card.

>Fix:

	Use this patch.

--- ata-card.patch begins here ---
--- sys/dev/ata/ata-card.c.orig	Sun Oct 10 18:21:04 2004
+++ sys/dev/ata/ata-card.c	Tue Oct 19 14:15:47 2004
@@ -91,7 +91,7 @@ ata_pccard_match(device_t dev)
 static int
 ata_pccard_locknoop(struct ata_channel *ch, int type)
 {
-    return 1;
+    return ch->unit;
 }
 
 static void
--- ata-card.patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: le 
State-Changed-When: Wed Oct 20 19:25:21 GMT 2004 
State-Changed-Why:  
This was fixed in rev. 1.27 of ata-card.c. 

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