From jaco@titine.fr.eu.org  Sat May 19 13:59:20 2001
Return-Path: <jaco@titine.fr.eu.org>
Received: from musique.teaser.fr (musique.teaser.net [213.91.2.11])
	by hub.freebsd.org (Postfix) with ESMTP id DFBA537B424
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 May 2001 13:59:18 -0700 (PDT)
	(envelope-from jaco@titine.fr.eu.org)
Received: from titine.fr.eu.org (d47-31.ppp.teaser.fr [213.91.47.31])
	by musique.teaser.fr (Postfix) with ESMTP id D23DE7251C
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 May 2001 22:59:16 +0200 (CEST)
Received: by titine.fr.eu.org (Postfix, from userid 1001)
	id D8131335E; Sat, 19 May 2001 22:55:48 +0200 (CEST)
Message-Id: <20010519205548.D8131335E@titine.fr.eu.org>
Date: Sat, 19 May 2001 22:55:48 +0200 (CEST)
From: jaco@teaser.fr
Reply-To: jaco@teaser.fr
To: FreeBSD-gnats-submit@freebsd.org
Subject: incorrect entries for EPSON 1240 Scanner in /sys/dev/usb
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         27460
>Category:       kern
>Synopsis:       Bad entries for EPSON 1240U scanner
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    n_hibma
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 19 14:00:01 PDT 2001
>Closed-Date:    Tue Aug 21 14:52:33 PDT 2001
>Last-Modified:  Tue Aug 21 14:52:54 PDT 2001
>Originator:     Eric Jacoboni
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
None
>Environment:
System: FreeBSD titine.fr.eu.org 4.3-STABLE \
        FreeBSD 4.3-STABLE #0: Sat May 19 21:19:45 CEST 2001

>Description:
Recent MFC to /sys/dev/usb is incorrect, at least concerning the 1240U
EPSON scanner. Due to a little bug, the scanner is recognized as ugen0
instead of uscanner0

>How-To-Repeat:
Build a kernel with the pristine usbdevs and uscanner.c files.
Connect a 1240U scanner, see the dmesg informations. Try to use
the scanner with Sane: it does not work.

>Fix:
Here are two patches for usbdevs and uscanner.c that solve the problem.

--- usbdevs.orig        Sat May 19 22:38:28 2001
+++ usbdevs     Sat May 19 22:39:12 2001
@@ -499,7 +499,6 @@
 product EPSON 636              0x0101  Perfection 636U / 636Photo scanner
 product EPSON 610              0x0103  Perfection 610 scanner
 product EPSON 1200             0x0104  Perfection 1200U / 1200Photo scanner
-product EPSON 1240             0x010b  Perfection 1240U / 1240Photo scanner
 product EPSON 1600             0x0107  Expression 1600 scanner
 product EPSON 1640             0x010a  Perfection 1640SU scanner / GT-8700(F)
 product EPSON 1240             0x010b  Perfection 1240U / 1240Photo scanner / G
T 7700

--- uscanner.c.orig     Sat May 19 22:39:58 2001
+++ uscanner.c  Sat May 19 22:40:19 2001
@@ -144,6 +144,7 @@
        { USB_VENDOR_EPSON, USB_PRODUCT_EPSON_1200 },
        { USB_VENDOR_EPSON, USB_PRODUCT_EPSON_1600 },
        { USB_VENDOR_EPSON, USB_PRODUCT_EPSON_1640 },
+       { USB_VENDOR_EPSON, USB_PRODUCT_EPSON_1240 },
 
        /* UMAX */
        { USB_VENDOR_UMAX, USB_PRODUCT_UMAX_ASTRA1220U },

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->n_hibma 
Responsible-Changed-By: greid 
Responsible-Changed-When: Thu Aug 2 14:04:32 PDT 2001 
Responsible-Changed-Why:  
USB is Nick's baby 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27460 

From: Christoph Sold <so@server.i-clue.de>
To: freebsd-gnats-submit@FreeBSD.org, jaco@teaser.fr
Cc:  
Subject: Please close [Was: Re: kern/27460: Bad entries for EPSON 1240U scanner]
Date: Fri, 03 Aug 2001 10:21:54 +0200

 Eric Jacoboni wrote:
 > 
 > I don't know if it's the right place for this request (if not, please
 > ignore this message and feel free to redirect me).
 > 
 > I think the following open PR:
 > <http://www.freebsd.org/cgi/query-pr.cgi?pr=27460> could be closed
 > before RELEASE. Since i've posted it, i'm using the both patches
 > mentionned without any problem.
 > --
 > ric Jacoboni, n il y a 1300229378 secondes
 > 
 > To Unsubscribe: send mail to majordomo@FreeBSD.org
 > with "unsubscribe freebsd-stable" in the body of the message
State-Changed-From-To: open->closed 
State-Changed-By: n_hibma 
State-Changed-When: Tue Aug 21 14:52:33 PDT 2001 
State-Changed-Why:  
Was already committed. Thanks for reporting this! 

Nick 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27460 
>Unformatted:
