Subject: kern/35061: umass failed to attach a digital camera
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <emiliano@maq033.imae.fceia.unr.edu.ar>
List: netbsd-bugs
Date: 11/16/2006 16:55:00
>Number:         35061
>Category:       kern
>Synopsis:       Umass digital camera doesn't work. Drive offline
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 16 16:55:00 +0000 2006
>Originator:     Emiliano Gavilan
>Release:        NetBSD 4.0_BETA
>Organization:
	
>Environment:
	
	
System: NetBSD maq033.imae.fceia.unr.edu.ar 4.0_BETA NetBSD 4.0_BETA (GENERIC) #1: Thu Nov 16 13:06:15 ART 2006 emiliano@maq033.imae.fceia.unr.edu.ar:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386

>Description:
	
My digital camera (Concord Eye-Q 3040) is recognized by the kernel,
but show messages about drive being offline.

The camera used to work with previous version of the branch (3.99.20)
but after upgrade to 4.0_BETA it no longer works.

I think this may be related to the post of Hubert Freyrer on tech-kern
http://mail-index.netbsd.org/tech-kern/2006/09/09/0013.html

if the camera is plugged while turned on
	umass0 at uhub0 port 2 configuration 1 interface 0
	umass0: Concord Eye-Q 3040 AF, rev 1.00/1.00, addr 2
	umass0: using ATAPI over Bulk-Only
	atapibus2 at umass0: 2 targets
	sd0 at atapibus2 drive 0: <CONCORD, DIGITAL CAMERA, 1.00> disk removable
	sd0(umass0:0:0): readonly device
	sd0: drive offline

unplug the camera
	umass0: at uhub0 port 2 (addr 2) disconnected
	sd0 detached
	atapibus2 detached
	umass0 detached

plug the camera while turned off
	umass0 at uhub0 port 2 configuration 1 interface 0
	umass0: Concord Eye-Q 3040 AF, rev 1.00/1.00, addr 2
	umass0: using ATAPI over Bulk-Only
	atapibus2 at umass0: 2 targets
	sd0 at atapibus2 drive 0: <CONCORD, DIGITAL CAMERA, 1.00> disk removable
	sd0(umass0:0:0): generic HBA error
	sd0: drive offline

>How-To-Repeat:
	Plug the camera
	
>Fix:
	
	Unknown. I try the previuos version of sd.c but it no longer compile
	on this system.

>Unformatted: