public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* USB device stopped working -  can't set config #1, error -71
@ 2006-09-16  9:37 Rene Rebe
  2006-09-16 14:39 ` [linux-usb-devel] " Alan Stern
  0 siblings, 1 reply; 3+ messages in thread
From: Rene Rebe @ 2006-09-16  9:37 UTC (permalink / raw)
  To: linux-kernel, linux-usb-devel; +Cc: Greg KH

Hi all,

with the latest kernels (definetly 2.6.17 and 1.6.8-rc*, I do now know off 
hand when this started) I can not access some (I think all USB 1) scanners 
via my SANE/Avision backend:

usb 3-1: new full speed USB device using uhci_hcd and address 2
usb 3-1: configuration #1 chosen from 1 choice
usb 3-1: can't set config #1, error -71

write(2, "attach: opening libusb:003:002\n", 31) = 31
open("/proc/bus/usb/003/002", O_RDWR)   = 4
ioctl(4, USBDEVFS_SETCONFIGURATION, 0xbfc10c74) = -1 EPROTO (Protocol error)
close(4)                                = 0
fstat64(2, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
write(2, "[avision] ", 10)              = 10
write(2, "attach: open failed (Invalid arg"..., 39) = 39

Currently this is on an x86 Apple MacBook:

Bus 005 Device 002: ID 05ac:1000 Apple Computer
Bus 005 Device 001: ID 0000:0000 Virtual Hub
Bus 004 Device 002: ID 05ac:8240 Apple Computer
Bus 004 Device 001: ID 0000:0000 Virtual Hub
Bus 003 Device 001: ID 0000:0000 Virtual Hub
Bus 002 Device 002: ID 05ac:0218 Apple Computer
Bus 002 Device 001: ID 0000:0000 Virtual Hub
Bus 001 Device 009: ID 05ac:020c Apple Computer
Bus 001 Device 008: ID 046d:c00c Logitech Inc. Optical Wheel Mouse
Bus 001 Device 007: ID 05ac:1003 Apple Computer
Bus 001 Device 004: ID 05ac:8300 Apple Computer
Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc.
Bus 001 Device 001: ID 0000:0000 Virtual Hub

While this simple lsusb is enough to trigger the issue:

usb 3-1: new full speed USB device using uhci_hcd and address 3
usb 3-1: configuration #1 chosen from 1 choice
usb 3-1: can't set config #1, error -71

And the affected devices do not appear in the lsusb output.

Btw: I saw a patch related to usb1 devics behind usb2 hubs, but
I think it made no difference here.

Btw2: I also do not see the standard bluetooth USB HCI that is suppost to be 
in the MacBook and that is listed and works fine in OS X.

Yours,

-- 
  René Rebe - ExactCODE - Berlin (Europe / Germany)
  http://exactcode.de | http://t2-project.org | http://rene.rebe.name
  +49 (0)30 / 255 897 45

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-usb-devel] USB device stopped working - can't set config #1, error -71
  2006-09-16  9:37 USB device stopped working - can't set config #1, error -71 Rene Rebe
@ 2006-09-16 14:39 ` Alan Stern
  2006-09-16 17:54   ` Pete Zaitcev
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2006-09-16 14:39 UTC (permalink / raw)
  To: Rene Rebe; +Cc: linux-kernel, linux-usb-devel, Greg KH

On Sat, 16 Sep 2006, Rene Rebe wrote:

> Hi all,
> 
> with the latest kernels (definetly 2.6.17 and 1.6.8-rc*, I do now know off 
> hand when this started) I can not access some (I think all USB 1) scanners 
> via my SANE/Avision backend:
> 
> usb 3-1: new full speed USB device using uhci_hcd and address 2
> usb 3-1: configuration #1 chosen from 1 choice
> usb 3-1: can't set config #1, error -71

This is bad already.  All the rest of the stuff below is just more of the 
same.

> write(2, "attach: opening libusb:003:002\n", 31) = 31
> open("/proc/bus/usb/003/002", O_RDWR)   = 4
> ioctl(4, USBDEVFS_SETCONFIGURATION, 0xbfc10c74) = -1 EPROTO (Protocol error)
> close(4)                                = 0
> fstat64(2, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
> write(2, "[avision] ", 10)              = 10
> write(2, "attach: open failed (Invalid arg"..., 39) = 39
> 
> Currently this is on an x86 Apple MacBook:
> 
> Bus 005 Device 002: ID 05ac:1000 Apple Computer
> Bus 005 Device 001: ID 0000:0000 Virtual Hub
> Bus 004 Device 002: ID 05ac:8240 Apple Computer
> Bus 004 Device 001: ID 0000:0000 Virtual Hub
> Bus 003 Device 001: ID 0000:0000 Virtual Hub
> Bus 002 Device 002: ID 05ac:0218 Apple Computer
> Bus 002 Device 001: ID 0000:0000 Virtual Hub
> Bus 001 Device 009: ID 05ac:020c Apple Computer
> Bus 001 Device 008: ID 046d:c00c Logitech Inc. Optical Wheel Mouse
> Bus 001 Device 007: ID 05ac:1003 Apple Computer
> Bus 001 Device 004: ID 05ac:8300 Apple Computer
> Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc.
> Bus 001 Device 001: ID 0000:0000 Virtual Hub
> 
> While this simple lsusb is enough to trigger the issue:
> 
> usb 3-1: new full speed USB device using uhci_hcd and address 3
> usb 3-1: configuration #1 chosen from 1 choice
> usb 3-1: can't set config #1, error -71
> 
> And the affected devices do not appear in the lsusb output.
> 
> Btw: I saw a patch related to usb1 devics behind usb2 hubs, but
> I think it made no difference here.
> 
> Btw2: I also do not see the standard bluetooth USB HCI that is suppost to be 
> in the MacBook and that is listed and works fine in OS X.

Try using usbmon to watch what happens when you plug in your scanner.  
Instructions are in the kernel source file Documentation/usb/usbmon.txt.

Alan Stern


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-usb-devel] USB device stopped working - can't set config #1, error -71
  2006-09-16 14:39 ` [linux-usb-devel] " Alan Stern
@ 2006-09-16 17:54   ` Pete Zaitcev
  0 siblings, 0 replies; 3+ messages in thread
From: Pete Zaitcev @ 2006-09-16 17:54 UTC (permalink / raw)
  To: Alan Stern; +Cc: Rene Rebe, Greg KH, linux-kernel, linux-usb-devel

On Sat, 16 Sep 2006 10:39:33 -0400 (EDT), Alan Stern <stern@rowland.harvard.edu> wrote:

> with the latest kernels (definetly 2.6.17 and 1.6.8-rc*, I do now know off 
> hand when this started) I can not access some (I think all USB 1) scanners 
> via my SANE/Avision backend:
>[...]
> Try using usbmon to watch what happens when you plug in your scanner.  
> Instructions are in the kernel source file Documentation/usb/usbmon.txt.

I second that. But it would also help a lot to find a kernel which
worked, even if it's relatively old, so we'd try to diff the hub.c.

-- Pete

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-16 17:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-16  9:37 USB device stopped working - can't set config #1, error -71 Rene Rebe
2006-09-16 14:39 ` [linux-usb-devel] " Alan Stern
2006-09-16 17:54   ` Pete Zaitcev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox