public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* usb devices get redetected all the time in 2.6.0-test{7,9}
@ 2003-10-29  7:15 Soeren Sonnenburg
  2003-10-29 20:01 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Soeren Sonnenburg @ 2003-10-29  7:15 UTC (permalink / raw)
  To: Linux Kernel

Hi.

When I attach a camera to a 2.4. based machine hotplug starts up some
script to download images of that camera and fine thats it.

In 2.6.0-testX I see kernel messages like:

hub 2-0:1.0: new USB device on port 1, assigned address 2
bus usb: add device 2-1
bound device '2-1' to driver 'usb'
bus usb: add device 2-1:1.0
bus usb: remove device 2-1:1.0
bus usb: add device 2-1:1.0
bus usb: remove device 2-1:1.0
bus usb: add device 2-1:1.0
bus usb: remove device 2-1:1.0
bus usb: add device 2-1:1.0
[...]

and several of these hotplug scripts get started... Is this a wanted
behaviour and something has to be fixed in userspace or is it a kernel
bug ?

Soeren


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

* Re: usb devices get redetected all the time in 2.6.0-test{7,9}
  2003-10-29  7:15 usb devices get redetected all the time in 2.6.0-test{7,9} Soeren Sonnenburg
@ 2003-10-29 20:01 ` Greg KH
  2003-10-30  6:27   ` Soeren Sonnenburg
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2003-10-29 20:01 UTC (permalink / raw)
  To: Soeren Sonnenburg; +Cc: Linux Kernel

On Wed, Oct 29, 2003 at 08:15:26AM +0100, Soeren Sonnenburg wrote:
> Hi.
> 
> When I attach a camera to a 2.4. based machine hotplug starts up some
> script to download images of that camera and fine thats it.
> 
> In 2.6.0-testX I see kernel messages like:
> 
> hub 2-0:1.0: new USB device on port 1, assigned address 2
> bus usb: add device 2-1
> bound device '2-1' to driver 'usb'
> bus usb: add device 2-1:1.0
> bus usb: remove device 2-1:1.0
> bus usb: add device 2-1:1.0
> bus usb: remove device 2-1:1.0
> bus usb: add device 2-1:1.0
> bus usb: remove device 2-1:1.0
> bus usb: add device 2-1:1.0
> [...]
> 
> and several of these hotplug scripts get started... Is this a wanted
> behaviour and something has to be fixed in userspace or is it a kernel
> bug ?

Does this settle down after a bit, or does the add/remove stuff keep
going on for a while?

Can you enable CONFIG_USB_DEBUG and see if you get any more information
in the kernel debug log as to why this is happening?

thanks,

greg k-h

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

* Re: usb devices get redetected all the time in 2.6.0-test{7,9}
  2003-10-29 20:01 ` Greg KH
@ 2003-10-30  6:27   ` Soeren Sonnenburg
  0 siblings, 0 replies; 3+ messages in thread
From: Soeren Sonnenburg @ 2003-10-30  6:27 UTC (permalink / raw)
  To: Greg KH; +Cc: Linux Kernel

On Wed, 2003-10-29 at 21:01, Greg KH wrote:
> On Wed, Oct 29, 2003 at 08:15:26AM +0100, Soeren Sonnenburg wrote:
> > Hi.
> > 
> > When I attach a camera to a 2.4. based machine hotplug starts up some
> > script to download images of that camera and fine thats it.
> > 
> > In 2.6.0-testX I see kernel messages like:
> > 
> > hub 2-0:1.0: new USB device on port 1, assigned address 2
> > bus usb: add device 2-1
> > bound device '2-1' to driver 'usb'
> > bus usb: add device 2-1:1.0
> > bus usb: remove device 2-1:1.0
> > bus usb: add device 2-1:1.0
> > bus usb: remove device 2-1:1.0
> > bus usb: add device 2-1:1.0
> > bus usb: remove device 2-1:1.0
> > bus usb: add device 2-1:1.0
> > [...]
> > 
> > and several of these hotplug scripts get started... Is this a wanted
> > behaviour and something has to be fixed in userspace or is it a kernel
> > bug ?
> 
> Does this settle down after a bit, or does the add/remove stuff keep
> going on for a while?

I realized that when I disable the hotplug script the camera is detected
only once (as it should).

The script fetches the directory listing off the camera... thus is
probably opening+closing the device once. So I wonder whether this could
somehow trigger an usb disconnect on close() making the usb driver to
redetect the device ?!

> Can you enable CONFIG_USB_DEBUG and see if you get any more information
> in the kernel debug log as to why this is happening?

If still needed I will do.

Soeren


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

end of thread, other threads:[~2003-10-30  6:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-29  7:15 usb devices get redetected all the time in 2.6.0-test{7,9} Soeren Sonnenburg
2003-10-29 20:01 ` Greg KH
2003-10-30  6:27   ` Soeren Sonnenburg

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