Bug 26917

Summary: HP ScanJet 4300C not recognized by ugen
Product: Base System Reporter: Ernst de Haan <ernst>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
uscanner.c.diff
none
usbdevs.diff none

Description Ernst de Haan 2001-04-28 13:40:05 UTC
	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.
Comment 1 Ernst de Haan 2001-05-14 15:22:46 UTC
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)
Comment 2 Ernst de Haan 2001-05-15 12:37:57 UTC
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)
Comment 3 Nick Hibma freebsd_committer freebsd_triage 2001-08-21 23:17:01 UTC
State Changed
From-To: open->closed

Committed. Thanks!