From ernst@heinz.jollem.com  Sat Apr 28 05:35:41 2001
Return-Path: <ernst@heinz.jollem.com>
Received: from heinz.jollem.com (c104187.upc-c.chello.nl [212.187.104.187])
	by hub.freebsd.org (Postfix) with ESMTP id E2EA837B423
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 28 Apr 2001 05:35:39 -0700 (PDT)
	(envelope-from ernst@heinz.jollem.com)
Received: (from ernst@localhost)
	by heinz.jollem.com (8.11.3/8.11.3) id f3SCXxl61477;
	Sat, 28 Apr 2001 14:33:59 +0200 (CEST)
	(envelope-from ernst)
Message-Id: <200104281233.f3SCXxl61477@heinz.jollem.com>
Date: Sat, 28 Apr 2001 14:33:59 +0200 (CEST)
From: Ernst de Haan <ernst@heinz.jollem.com>
Reply-To: ernst@heinz.jollem.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: HP ScanJet 4300C not recognized by ugen
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         26917
>Category:       kern
>Synopsis:       HP ScanJet 4300C not recognized by ugen
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 28 05:40:05 PDT 2001
>Closed-Date:    Tue Aug 21 15:17:01 PDT 2001
>Last-Modified:  Tue Aug 21 15:17:23 PDT 2001
>Originator:     Ernst de Haan
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
Jollem Information Technology
>Environment:
System: FreeBSD heinz.jollem.com 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386


	
>Description:
	At boot time the HP ScanJet 4300C is not properly recognized. The exact product number is C7730A.
I noticed this issue on FreeBSD 4.2-STABLE boxes, and now it happens on 4.3-REL too. The following is an excerpt from dmesg on a fresh FreeBSD 4.3-REL box (P2-400, 348 MB, SCSI-only, UHCI), GENERIC kernel:

uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xd000-0xd01f irq 10 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 2
uhub1: 4 ports with 4 removable, bus powered
ukbd0: Logitech USB Receiver, rev 1.10/10.b7, addr 3, iclass 3/1
kbd1 at ukbd0
uhid0: Logitech USB Receiver, rev 1.10/10.b7, addr 3, iclass 3/0
ums0: Logitech USB Receiver, rev 1.10/9.10, addr 4, iclass 3/1
ums0: 5 buttons and Z dir.
ulpt0: Hewlett-Packard DeskJet 970C, rev 1.00/1.00, addr 5, iclass 7/1
ugen0: Hewlett Packard product 0x0305, rev 1.00/0.00, addr 6
ugen0: setting configuration index 0 failed
device_probe_and_attach: ugen0 attach returned 6
chip1: <Intel 82371AB Power management controller> port 0x5000-0x500f at device 7.3 on pci0

>How-To-Repeat:
	Attach a 4300C to an USB port and start FreeBSD.
>Fix:
	
>Release-Note:
>Audit-Trail:

From: Ernst de Haan <ernst@jollem.com>
To: freebsd-gnats-submit@FreeBSD.org, ernst@jollem.com
Cc: n_hibma@FreeBSD.org
Subject: Re: kern/26917: HP ScanJet 4300C not recognized by ugen
Date: Mon, 14 May 2001 16:22:46 +0200

 --------------Boundary-00=_Y9XBMEAJVBX7S6Y7D3P1
 Content-Type: text/plain;
   charset="iso-8859-1"
 Content-Transfer-Encoding: 8bit
 Subject: 
 
 Hi,
 
 I've attached 2 modified files that allow FreeBSD to recognize the HP ScanJet 
 4300C as a uscanner device. This concerns the usr/src/sys/dev/usb/ stuff. 
 I've also taken the freedom to correct the full name of HP. While the usb 
 drivers used "Hewlett Packard" as the name for this company, the actual name 
 is "Hewlett-Packard", correctly spelled in usr/src/sys/dev/mly/mly_tables.h.
 
 This still doesn't fix the attach problem though :-/
 
 /Ernst (ernst@jollem.com)
 --------------Boundary-00=_Y9XBMEAJVBX7S6Y7D3P1
 Content-Type: text/plain;
   charset="iso-8859-1";
   name="uscanner.c.diff"
 Content-Transfer-Encoding: 8bit
 Content-Description: Unified diff for usr/src/sys/dev/usb/uscanner.c
 Content-Disposition: attachment; filename="uscanner.c.diff"
 
 --- uscanner.c.orig	Mon May 14 15:43:30 2001
 +++ uscanner.c	Mon May 14 15:43:09 2001
 @@ -99,6 +99,7 @@
  	{ USB_VENDOR_HP, USB_PRODUCT_HP_3300C },
  	{ USB_VENDOR_HP, USB_PRODUCT_HP_4100C },
  	{ USB_VENDOR_HP, USB_PRODUCT_HP_4200C },
 +	{ USB_VENDOR_HP, USB_PRODUCT_HP_4300C },
  	{ USB_VENDOR_HP, USB_PRODUCT_HP_S20 },
  	{ USB_VENDOR_HP, USB_PRODUCT_HP_5200C },
  	{ USB_VENDOR_HP, USB_PRODUCT_HP_5300C },
 
 --------------Boundary-00=_Y9XBMEAJVBX7S6Y7D3P1
 Content-Type: text/plain;
   charset="iso-8859-1";
   name="usbdevs.diff"
 Content-Transfer-Encoding: 8bit
 Content-Description: Unified diff for usr/src/sys/dev/usb/usbdevs
 Content-Disposition: attachment; filename="usbdevs.diff"
 
 --- usbdevs.orig	Mon May 14 15:26:39 2001
 +++ usbdevs	Mon May 14 16:06:39 2001
 @@ -43,7 +43,7 @@
  
  vendor AOX		0x03e8	AOX, Inc.
  vendor ATMEL		0x03eb	Atmel Corp.
 -vendor HP		0x03f0	Hewlett Packard
 +vendor HP		0x03f0	Hewlett-Packard
  vendor ADAPTEC		0x03f3	Adaptec, Inc.
  vendor NATIONAL		0x0400	National Semiconductor
  vendor ACERLABS		0x0402	Acer Labs, Inc.
 @@ -274,7 +274,7 @@
  vendor ACTIONTEC	0x1668	Actiontec Electronics, Inc.
  vendor DLINK		0x2001	D-Link Corp
  vendor INTEL		0x8086	Intel
 -vendor HP2		0xf003	Hewlett Packard
 +vendor HP2		0xf003	Hewlett-Packard
  
  /*
   * List of known products.  Grouped by vendor.
 @@ -491,6 +491,7 @@
  product HP 6200C		0x0201	ScanJet 6200C
  product HP S20b			0x0202	PhotoSmart S20
  product HP 3300C		0x0205	ScanJet 3300C
 +product HP 4300C		0x0305	ScanJet 4300C
  product HP 5200C		0x0401	Scanjet 5200C
  product HP 6300C		0x0601	Scanjet 6300C
  product HP 5300C		0x0701	Scanjet 5300C
 
 --------------Boundary-00=_Y9XBMEAJVBX7S6Y7D3P1--

From: Ernst de Haan <ernst@jollem.com>
To: freebsd-gnats-submit@FreeBSD.org, ernst@heinz.jollem.com
Cc:  
Subject: Re: kern/26917: HP ScanJet 4300C not recognized by ugen
Date: Tue, 15 May 2001 13:37:57 +0200

 Output from dmesg is now different, with these patches applied:
 
 > dmesg | grep uscan
 uscanner0: Hewlett-Packard ScanJet 4300C, rev 1.00/0.00, addr 6
 uscanner0: setting config no failed
 device_probe_and_attach: uscanner0 attach returned 6
 > dmesg | grep ulpt
 ulpt0: Hewlett-Packard DeskJet 970C, rev 1.00/1.00, addr 5, iclass 7/1
 
 /Ernst (how's still struggling to get his scanner working under FreeBSD)
 
State-Changed-From-To: open->closed 
State-Changed-By: n_hibma 
State-Changed-When: Tue Aug 21 15:17:01 PDT 2001 
State-Changed-Why:  
Committed. Thanks! 


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