Alan Stern <[EMAIL PROTECTED]> writes: > On Tue, 23 Mar 2004, Sean Neakums wrote: > >> gphoto2 is not too happy with this. Below is the output. >> >> Also attached is an strace log, in case it is of interest. >> >> >> *** Error *** >> Could not apply USB settings >> >> *** Error *** >> An error occurred in the io-library ('Error updating the port settings'): Could >> not set config 0/1 (Device or resource busy) >> *** Error (-37: 'Error updating the port settings') *** > > I'd say gphoto2 could use a little rewriting. > > In the meantime, here's a compromise patch. It should be acceptable to > gphoto2. Does it still result in those suspend_hc/wakeup_hc cycles? If > it does then something else is still wrong and needs to be fixed. Both > strace and dmesg output will help.
gphoto2 seems to now be happy, but it is still listed in lsusb after disconnection and the suspend_hc/wakeup_hc cycles are still present. Here is the dmesg log, and attached is the strace log. Mar 24 07:52:11 revox paul: Plug in: Mar 24 07:53:07 revox kernel: uhci_hcd 0000:00:1d.0: wakeup_hc Mar 24 07:53:07 revox kernel: uhci_hcd 0000:00:1d.0: port 1 portsc 0083 Mar 24 07:53:07 revox kernel: hub 1-0:1.0: port 1, status 101, change 1, 12 Mb/s Mar 24 07:53:07 revox kernel: hub 1-0:1.0: debounce: port 1: delay 100ms stable 4 status 0x101 Mar 24 07:53:07 revox kernel: usb 1-1: new full speed USB device using address 2 Mar 24 07:53:07 revox kernel: usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=0 Mar 24 07:53:07 revox kernel: drivers/usb/core/message.c: USB device number 2 default language ID 0x409 Mar 24 07:53:07 revox kernel: usb 1-1: Product: PowerShot A40 Mar 24 07:53:07 revox kernel: usb 1-1: Manufacturer: Canon Inc. Mar 24 07:53:07 revox kernel: drivers/usb/core/usb.c: usb_hotplug Mar 24 07:53:07 revox kernel: usb 1-1: registering 1-1:1.0 (config #1, interface 0) Mar 24 07:53:07 revox kernel: drivers/usb/core/usb.c: usb_hotplug Mar 24 07:53:19 revox paul: Run gphoto2: Mar 24 07:53:45 revox paul: Unplug: Mar 24 07:53:47 revox kernel: uhci_hcd 0000:00:1d.0: port 1 portsc 008a Mar 24 07:53:47 revox kernel: hub 1-0:1.0: port 1, status 100, change 3, 12 Mb/s Mar 24 07:53:47 revox kernel: usb 1-1: USB disconnect, address 2 Mar 24 07:53:47 revox kernel: usb 1-1: usb_disable_device nuking all URBs Mar 24 07:53:47 revox kernel: usb 1-1: unregistering interface 1-1:1.0 Mar 24 07:53:47 revox kernel: drivers/usb/core/usb.c: usb_hotplug Mar 24 07:53:48 revox kernel: uhci_hcd 0000:00:1d.0: suspend_hc Mar 24 07:53:48 revox kernel: uhci_hcd 0000:00:1d.0: wakeup_hc Mar 24 07:53:50 revox kernel: uhci_hcd 0000:00:1d.0: suspend_hc Mar 24 07:53:50 revox kernel: uhci_hcd 0000:00:1d.0: wakeup_hc Mar 24 07:53:53 revox kernel: uhci_hcd 0000:00:1d.0: suspend_hc Mar 24 07:53:53 revox kernel: uhci_hcd 0000:00:1d.0: wakeup_hc Mar 24 07:53:55 revox kernel: uhci_hcd 0000:00:1d.0: suspend_hc Mar 24 07:53:55 revox kernel: uhci_hcd 0000:00:1d.0: wakeup_hc Mar 24 07:53:58 revox kernel: uhci_hcd 0000:00:1d.0: suspend_hc Mar 24 07:53:58 revox kernel: uhci_hcd 0000:00:1d.0: wakeup_hc Mar 24 07:54:00 revox kernel: uhci_hcd 0000:00:1d.0: suspend_hc Mar 24 07:54:00 revox kernel: uhci_hcd 0000:00:1d.0: wakeup_hc
gphoto.strace.gz
Description: gphoto2 strace log