public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problems with usb and digital camera
@ 2005-06-09 23:19 J.A. Magallon
  2005-06-10  8:50 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: J.A. Magallon @ 2005-06-09 23:19 UTC (permalink / raw)
  To: Lista Linux-Kernel

Hi...

I have a Canon Powershot A70 and it used to work nicely with linux and
gnome. But now it has stopped working.

When I plug the camera, gthumb pops and try to import photos. But I get a
window with this message:

An error occurred in the io-library ('Error updating the port settings'): Could not set config 0/1 (Device or resource busy)

syslog shows this:

Jun  6 23:43:04 werewolf kernel: usb 5-2: new full speed USB device using uhci_hcd and address 6
Jun  6 23:45:38 werewolf kernel: usb 5-2: usbfs: interface 0 claimed by usbfs while 'gthumb' sets config #1

I have now 2.6.12-rc6-mm1. My USB pendrive works nicely.

Are you aware of any strange behaviour of USB in this kernel ?
What means the syslog message ? The kernel grabs the device to show in usbfs
and nobody can open it ?

TIA

--
J.A. Magallon <jamagallon()able!es>     \               Software is like sex:
werewolf!able!es                         \         It's better when it's free
Mandriva Linux release 2006.0 (Cooker) for i586
Linux 2.6.11-jam23 (gcc 4.0.0 (4.0.0-3mdk for Mandriva Linux release 2006.0))



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

* Re: Problems with usb and digital camera
  2005-06-09 23:19 Problems with usb and digital camera J.A. Magallon
@ 2005-06-10  8:50 ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2005-06-10  8:50 UTC (permalink / raw)
  To: J.A. Magallon; +Cc: Lista Linux-Kernel

On Thu, Jun 09, 2005 at 11:19:49PM +0000, J.A. Magallon wrote:
> Hi...
> 
> I have a Canon Powershot A70 and it used to work nicely with linux and
> gnome. But now it has stopped working.
> 
> When I plug the camera, gthumb pops and try to import photos. But I get a
> window with this message:
> 
> An error occurred in the io-library ('Error updating the port settings'): Could not set config 0/1 (Device or resource busy)
> 
> syslog shows this:
> 
> Jun  6 23:43:04 werewolf kernel: usb 5-2: new full speed USB device using uhci_hcd and address 6
> Jun  6 23:45:38 werewolf kernel: usb 5-2: usbfs: interface 0 claimed by usbfs while 'gthumb' sets config #1

That looks fine.

> I have now 2.6.12-rc6-mm1. My USB pendrive works nicely.
> 
> Are you aware of any strange behaviour of USB in this kernel ?

Nope :)

> What means the syslog message ? The kernel grabs the device to show in usbfs
> and nobody can open it ?

No, gthumb uses libusb to grab it (thats the usbfs bind message.)

How about enabling CONFIG_USB_DEBUG in your kernel and posting the
results of your syslog to the linux-usb-devel mailing list when you try
this?

thanks,

greg k-h

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

* Re: Problems with usb and digital camera
       [not found] <20050610085033.GA16936@kroah.com.suse.lists.linux.kernel>
@ 2005-06-10 10:04 ` Marcus Meissner
  0 siblings, 0 replies; 3+ messages in thread
From: Marcus Meissner @ 2005-06-10 10:04 UTC (permalink / raw)
  To: Greg KH, linux-kernel

In article <20050610085033.GA16936@kroah.com.suse.lists.linux.kernel> you wrote:
>> I have a Canon Powershot A70 and it used to work nicely with linux and
>> gnome. But now it has stopped working.

>> When I plug the camera, gthumb pops and try to import photos. But I get a
>> window with this message:
>> 
>> 
>> Jun  6 23:43:04 werewolf kernel: usb 5-2: new full speed USB device using uhci_hcd and address 6
>> Jun  6 23:45:38 werewolf kernel: usb 5-2: usbfs: interface 0 claimed by usbfs while 'gthumb' sets config #1
> 
> That looks fine.
> 
>> I have now 2.6.12-rc6-mm1. My USB pendrive works nicely.
>> 
>> Are you aware of any strange behaviour of USB in this kernel ?
> 
> Nope :)

This was a bug (?) in libgphoto2 which is fixed with 2.1.6rc2 or 
later.

Please download libgphoto2-2.1.6rc2 from sf.net/projects/gphoto 
and it will be fixed.

The technical problem was that that the libusb call
usb_set_configuration() could only be called with the USB interface
released via usb_release_interface() before.

I do not know why this is necessary, but we fixed it neithertheless.

Ciao, Marcus

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

end of thread, other threads:[~2005-06-10 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-09 23:19 Problems with usb and digital camera J.A. Magallon
2005-06-10  8:50 ` Greg KH
     [not found] <20050610085033.GA16936@kroah.com.suse.lists.linux.kernel>
2005-06-10 10:04 ` Marcus Meissner

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