Re: [linux-usb-devel] [patch]suspend support for usb serial

2007-05-03 Thread Greg KH
On Fri, Apr 27, 2007 at 08:54:57PM +0200, Oliver Neukum wrote: > +EXPORT_SYMBOL(usb_serial_suspend); I changed these to be EXPORT_SYMBOL_GPL() like the rest of the usb-serial core. > static const struct tty_operations serial_ops = { > .open = serial_open, > .close =

Re: [linux-usb-devel] [patch]suspend support for usb serial

2007-05-03 Thread Greg KH
On Wed, May 02, 2007 at 11:53:49PM -0700, Greg KH wrote: > On Fri, Apr 27, 2007 at 08:54:57PM +0200, Oliver Neukum wrote: > > +EXPORT_SYMBOL(usb_serial_suspend); > > I changed these to be EXPORT_SYMBOL_GPL() like the rest of the > usb-serial core. > > > static const struct tty_operations serial_

[linux-usb-devel] patch usb-make-the-autosuspend-workqueue-thread-freezable.patch added to gregkh-2.6 tree

2007-05-03 Thread gregkh
This is a note to let you know that I've just added the patch titled Subject: USB: make the autosuspend workqueue thread freezable to my gregkh-2.6 tree. Its filename is usb-make-the-autosuspend-workqueue-thread-freezable.patch This tree can be found at http://www.kernel.org/pu

[linux-usb-devel] patch usb-more-autosuspend-timer-stuff.patch added to gregkh-2.6 tree

2007-05-03 Thread gregkh
This is a note to let you know that I've just added the patch titled Subject: [PATCH 2/11] USB: more autosuspend timer stuff to my gregkh-2.6 tree. Its filename is usb-more-autosuspend-timer-stuff.patch This tree can be found at http://www.kernel.org/pub/linux/kernel/people/gre

[linux-usb-devel] patch usb-remove-unneeded-warn_on.patch added to gregkh-2.6 tree

2007-05-03 Thread gregkh
This is a note to let you know that I've just added the patch titled Subject: USB: remove unneeded WARN_ON to my gregkh-2.6 tree. Its filename is usb-remove-unneeded-warn_on.patch This tree can be found at http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/

[linux-usb-devel] patch usb-set-the-correct-interrupt-interval-in-usb_bulk_msg.patch added to gregkh-2.6 tree

2007-05-03 Thread gregkh
This is a note to let you know that I've just added the patch titled Subject: USB: set the correct Interrupt interval in usb_bulk_msg to my gregkh-2.6 tree. Its filename is usb-set-the-correct-interrupt-interval-in-usb_bulk_msg.patch This tree can be found at http://www.kernel.

[linux-usb-devel] USB patch queue catchup

2007-05-03 Thread Greg KH
Hi all, I've tried to apply all of the pending USB patches that everyone has sent me, but I know I missed a lot, due to odd mis-merges,and me not wanting to take some of the auto-suspend stuff just yet. So, can everyone check their patch queues with what I have applied from you already, and resen

Re: [linux-usb-devel] [PATCH] kernel option CONFIG_USB_HIDINPUT_POWERBOOK description update

2007-05-03 Thread Jiri Kosina
On Wed, 2 May 2007, No?l Köthe wrote: > The description of this option needs to be extended to be correct:) > --- /usr/src/linux-2.6.21/drivers/usb/input/Kconfig 2007-04-27 > 18:02:46.0 +0200 > +++ Kconfig.new 2007-05-02 16:47:56.0 +0200 > @@ -28,12 +28,12 @@ > depends

[linux-usb-devel] is hanging related to a hardware probelm?

2007-05-03 Thread nesta
hi all, i don't know why my pc host computer hangs after running my usb application that is connected to OMAP kit (which is the gadget). the application is streaming a movie from the host to the gadget then the gadget sends it back to the host. the pc just hangs up and i think this is a problem i

[linux-usb-devel] dead CONFIG_ variables: drivers/usb/

2007-05-03 Thread Robert P. J. Day
$ ../dead_config.sh drivers/usb == MACH_OMAP_H4_OTG == drivers/usb/gadget/omap_udc.c:2159:#ifndef CONFIG_MACH_OMAP_H4_OTG == USBD_SAFE_SERIAL_PRODUCT == drivers/usb/serial/safe_serial.c:93:#if defined(CONFIG_USBD_SAFE_SERIAL_VENDOR) && !defined(CONFIG_USBD_SAFE_SER

[linux-usb-devel] Service for exhibition fair

2007-05-03 Thread Mr.Ricky Kwan
Dear Sir or Madam, We are a manufacturer of portable display systems located in Guangzhou City, China. Our products have been exported to more than 85 countries and we have over 50 dealers all around the world. In addition to portable display systems, we also supply printing graphics for

[linux-usb-devel] [patch]fix last races in usb serial

2007-05-03 Thread Oliver Neukum
Hi, this is John's patch for fixing the last disconnect/IO races in usb-serial. I ported it to Greg's current tree. To explain how it works, I quote him: This is a fix for race condition in usb-serial.c between serial_open and usb_serial_disconnect (kernel version 2

Re: [linux-usb-devel] [PATCH 1/3] xpad.c: Added flags into xpad_device structure and removed dpad_mapping.

2007-05-03 Thread Jan Kratochvil
Hi Dmitry, On Wed, 2 May 2007, Dmitry Torokhov wrote: > Hi Jan, > > On Wednesday 02 May 2007 11:01, Jan Kratochvil wrote: >> This changes are expected to simplify further improves of this driver, >> We will need to add information if the driver is xbox360 device or not. >> >> Second option was to

Re: [linux-usb-devel] [PATCH 2/3] xpad.c: Initial support for xbox360 gamepad.

2007-05-03 Thread Jan Kratochvil
Hi, now this patch doesn't need flags but rather adds new member xtype. Xbox 360 gamepad is slightly different then the previous model so it has its own version of process_packet method. Detection of this new device relies on USB_DEVICE_INTERFACE_PROTOCOL macro. This device got vendor specifi

Re: [linux-usb-devel] [PATCH 3/3] xpad.c: Added Xbox360 gamepad rumble support.

2007-05-03 Thread Jan Kratochvil
Hi Dmitry, thanks for feedback. Improved version of this patch follows: It is enabled only if CONFIG_XPAD_FF is set to y. Implementation is using force feedback support for memoryless devices. Signed-off-by: Jan Kratochvil <[EMAIL PROTECTED]> --- drivers/usb/input/Kconfig |7 +++ drive

Re: [linux-usb-devel] [BUG] usb/core/hub.c loops forever on resume from ram due to bluetooth

2007-05-03 Thread Alan Stern
On Wed, 2 May 2007, Mark Lord wrote: > Alan Stern wrote: > > > > A better approach would be to find out why your system gets into that loop > > and fix the underlying cause. > > Not better, just parallel. > > That loop should not be unbounded, as this example proves. > But it also shouldn't ge

Re: [linux-usb-devel] [BUG] usb/core/hub.c loops forever on resume from ram due to bluetooth

2007-05-03 Thread Mark Lord
Alan Stern wrote: > On Wed, 2 May 2007, Mark Lord wrote: > >> Alan Stern wrote: >>> A better approach would be to find out why your system gets into that loop >>> and fix the underlying cause. >> Not better, just parallel. >> >> That loop should not be unbounded, as this example proves. >> But it

Re: [linux-usb-devel] Bug creating USB endpoints in 2.6.20.x (kernel bug 8198)

2007-05-03 Thread Alan Stern
On Wed, 2 May 2007, Chris Rankin wrote: > Hi, > > I have been hitting this bug regularly in the 2.6.20.x kernels: > > http://bugzilla.kernel.org/show_bug.cgi?id=8198 I just looked at that bug report. It's a mess. > What *seems* to be happening is that something (winecfg?) is causing the USB

Re: [linux-usb-devel] Bug creating USB endpoints in 2.6.20.x (kernel bug 8198)

2007-05-03 Thread Tejun Heo
Hello, Alan Stern. Alan Stern wrote: >> The endpoint directory shown in the oops report does not exist if I'm not >> thrashing the box with >> winecfg. On Tejun Heo's suggestion, I put some debug code at the beginning >> of sysfs_release() to >> print a stack-dump and the kobject's path if the a

[linux-usb-devel] usbnet autosuspend redone

2007-05-03 Thread Oliver Neukum
Hi, this is against Greg's newest tree, which includes the pm fix for cdc devices. Do you like the principal approach? Regards Oliver - --- a/drivers/usb/net/usbnet.h 2007-05-03 15:55:56.0 +0200 +++ b/drivers/usb/net/usbnet.h 2007-05-03 14:24:05.0 +0

Re: [linux-usb-devel] requirements for suspend()

2007-05-03 Thread Alan Stern
On Thu, 3 May 2007, Oliver Neukum wrote: > > > How about exporting usb_disable_interface() and usb_enable_interface()? > > > It doesn't solve the problem for endpoint 0, but this case is rare. > > > > We could; it would save drivers the trouble of keeping track of their own > > URBs. Do you hav

Re: [linux-usb-devel] Unusual dev addition for memory stick?

2007-05-03 Thread Alan Stern
On Thu, 3 May 2007, Marco Polet wrote: > Hello Alan, > > Thanks for your reply. The errors I got was during a dd read of the complete > device. If I put the stick in another brand hub or directly on the back of > the PC (ASUS P5B motherboard), the entire stick is read without problems, > but if I

Re: [linux-usb-devel] requirements for suspend()

2007-05-03 Thread Oliver Neukum
Am Donnerstag, 3. Mai 2007 16:03 schrieb Alan Stern: > On Thu, 3 May 2007, Oliver Neukum wrote: > > > > > How about exporting usb_disable_interface() and usb_enable_interface()? > > > > It doesn't solve the problem for endpoint 0, but this case is rare. > > > > > > We could; it would save drivers

Re: [linux-usb-devel] Unusual dev addition for memory stick?

2007-05-03 Thread Marco Polet
Hi Alan, Do you think the SYBA hub (Genesys Logic, 05e3:0606) is that bad? I tried TEAC (Trek Technology, 0a16:9005) sticks, which work fine in the SYBA hub, and also another unknown brand (0204:6025), which worked fine also in the hub. What is very strange also, if I write data to the stick (i

Re: [linux-usb-devel] USB patch queue catchup

2007-05-03 Thread Alan Stern
On Thu, 3 May 2007, Greg KH wrote: > Hi all, > > I've tried to apply all of the pending USB patches that everyone has > sent me, but I know I missed a lot, due to odd mis-merges,and me not > wanting to take some of the auto-suspend stuff just yet. > > So, can everyone check their patch queues wi

Re: [linux-usb-devel] [BUG] usb/core/hub.c loops forever on resume from ram due to bluetooth

2007-05-03 Thread Alan Stern
On Thu, 3 May 2007, Mark Lord wrote: > > If the code never gets stuck in a loop, then there's no need to check > > whether the loop is unbounded! :-) > > Yes, except here we know it does actually get stuck in a loop, > and having unbounded loops in device-driver code is a known baddy. > > One

Re: [linux-usb-devel] Bug creating USB endpoints in 2.6.20.x (kernel bug 8198)

2007-05-03 Thread Alan Stern
On Thu, 3 May 2007, Tejun Heo wrote: > Hello, Alan Stern. > > Alan Stern wrote: > >> The endpoint directory shown in the oops report does not exist if I'm not > >> thrashing the box with > >> winecfg. On Tejun Heo's suggestion, I put some debug code at the beginning > >> of sysfs_release() to >

Re: [linux-usb-devel] requirements for suspend()

2007-05-03 Thread Alan Stern
On Thu, 3 May 2007, Oliver Neukum wrote: > Am Donnerstag, 3. Mai 2007 16:03 schrieb Alan Stern: > > On Thu, 3 May 2007, Oliver Neukum wrote: > > > > > > > How about exporting usb_disable_interface() and > > > > > usb_enable_interface()? > > > > > It doesn't solve the problem for endpoint 0, but

Re: [linux-usb-devel] Unusual dev addition for memory stick?

2007-05-03 Thread Alan Stern
On Thu, 3 May 2007, Marco Polet wrote: > Hi Alan, > > Do you think the SYBA hub (Genesys Logic, 05e3:0606) is that bad? I have no way at all to judge. _You_'ve got the hardware; what do you think? Is it a powered hub? If not, maybe the stick draws more current than the hub can provide. > I

Re: [linux-usb-devel] Bug creating USB endpoints in 2.6.20.x (kernel bug 8198)

2007-05-03 Thread Tejun Heo
Alan Stern wrote: > On Thu, 3 May 2007, Tejun Heo wrote: > >> Hello, Alan Stern. >> >> Alan Stern wrote: The endpoint directory shown in the oops report does not exist if I'm not thrashing the box with winecfg. On Tejun Heo's suggestion, I put some debug code at the beginning

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle (SOLVED!)

2007-05-03 Thread Alex Villací­s Lasso
Alan Stern escribió: On the other hand, I doubt that the usb_reset_configuration() call is needed. It merely duplicates what the USB core did a few moments earlier. Why does your driver bother to do a Clear-Halt? It should not be needed. Again, because stir4200 does it and I wa

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle (SOLVED!)

2007-05-03 Thread Oliver Neukum
Am Donnerstag, 3. Mai 2007 18:35 schrieb Alex Villací­s Lasso: > /* Coming out of suspend, so reset hardware */ > static int kingsun_resume(struct usb_interface *intf) > { > struct kingsun_cb *kingsun = usb_get_intfdata(intf); > > if (kingsun->rx_urb != NULL) usb_submit_urb(kingsun

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle (SOLVED!)

2007-05-03 Thread Alex Villací­s Lasso
Oliver Neukum escribió: > Am Donnerstag, 3. Mai 2007 18:35 schrieb Alex Villací­s Lasso: > >> /* Coming out of suspend, so reset hardware */ >> static int kingsun_resume(struct usb_interface *intf) >> { >> struct kingsun_cb *kingsun = usb_get_intfdata(intf); >> >> if (kingsun->rx

[linux-usb-devel] [PATCH] ehci-ps3, ohci-ps3: fix compilation

2007-05-03 Thread Alexey Dobriyan
As seen on powerpc-cell et al: CC [M] drivers/usb/host/ehci-hcd.o In file included from drivers/usb/host/ehci-hcd.c:941: drivers/usb/host/ehci-ps3.c:79: error: conflicting types for 'dev_dbg' include/linux/device.h:576: error: previous definition of 'dev_dbg' was here make[4]: *** [drivers/usb/

Re: [linux-usb-devel] [PATCH] ehci-ps3, ohci-ps3: fix compilation

2007-05-03 Thread Geoff Levand
Alexey Dobriyan wrote: > As seen on powerpc-cell et al: > > CC [M] drivers/usb/host/ehci-hcd.o > In file included from drivers/usb/host/ehci-hcd.c:941: > drivers/usb/host/ehci-ps3.c:79: error: conflicting types for 'dev_dbg' > include/linux/device.h:576: error: previous definition of 'dev_dbg'

Re: [linux-usb-devel] [PATCH] ehci-ps3, ohci-ps3: fix compilation

2007-05-03 Thread Andrew Morton
On Thu, 03 May 2007 13:27:53 -0700 Geoff Levand <[EMAIL PROTECTED]> wrote: > Alexey Dobriyan wrote: > > As seen on powerpc-cell et al: > > > > CC [M] drivers/usb/host/ehci-hcd.o > > In file included from drivers/usb/host/ehci-hcd.c:941: > > drivers/usb/host/ehci-ps3.c:79: error: conflicting ty

[linux-usb-devel] [patch] PS3: Remove dev_dbg redefinition in ehci-ps3.c and ohci-ps3.c

2007-05-03 Thread Geoff Levand
Commit 404d5b185b4eb56d6fa2f7bd27833f8df1c38ce4 changed the definition of dev_dbg in the !DEBUG case from being a #define to being a static inline. There was code in usb/host/ehci-ps3.c and ohci-ps3.c to do exactly that, which fails to compile now. This fixes it by removing the redefinition, as t

Re: [linux-usb-devel] Bug creating USB endpoints in 2.6.20.x (kernel bug 8198)

2007-05-03 Thread Chris Rankin
--- Tejun Heo <[EMAIL PROTECTED]> wrote: > I see. They're static alright. That leaves us with sd pointing to > the wrong attr. I'll take a look whether that's possible. I put a few printks in sysfs_remove_file() to see precisely what winecfg is doing, and it looks as if the ALSA OSS emulation

Re: [linux-usb-devel] [PATCH 3/3] xpad.c: Added Xbox360 gamepad rumble support.

2007-05-03 Thread Jan Kratochvil
Hi again, what do you think about this? (This patch will work only against last gamepad rumble support patch) Thanks for your time Jan Kratochvil BigX button on xbox360 gamepad is surrounded by 4 green leds. This patch adds support to control them. This device understand to 14 messag

Re: [linux-usb-devel] usbmon: Add class for binary interface

2007-05-03 Thread Pete Zaitcev
Add a class which allows for an easier integration with udev. This code was originally written by Paolo Abeni, and arrived to my tree as a part of big patch to add binary API on December 18. As I understand, Paolo always meant the class to be a part of the whole thing. This is his udev rule to go

[linux-usb-devel] [PATCH] USB: Add support for Olimex arm-usb-ocd JTAG interface serial port

2007-05-03 Thread Tony Lindgren
Hi, Here's a little patch to add support for the Olimex arm-usb-ocd JTAG. Regards, Tony From: Tony Lindgren <[EMAIL PROTECTED]> Subject: [PATCH] USB: Add support for Olimex arm-usb-ocd JTAG interface serial port This patch adds support for the serial port on Olimex arm-usb-ocd JTAG interface.

Re: [linux-usb-devel] [PATCH] USB: Add support for Olimex arm-usb-ocd JTAG interface serial port

2007-05-03 Thread Greg KH
On Fri, May 04, 2007 at 12:53:51AM +, Tony Lindgren wrote: > Hi, > > Here's a little patch to add support for the Olimex arm-usb-ocd JTAG. > > Regards, > > Tony > > From: Tony Lindgren <[EMAIL PROTECTED]> > Subject: [PATCH] USB: Add support for Olimex arm-usb-ocd JTAG interface > serial p

Re: [linux-usb-devel] requirements for suspend()

2007-05-03 Thread Greg KH
On Thu, May 03, 2007 at 11:05:54AM -0400, Alan Stern wrote: > On Thu, 3 May 2007, Oliver Neukum wrote: > > > Am Donnerstag, 3. Mai 2007 16:03 schrieb Alan Stern: > > > On Thu, 3 May 2007, Oliver Neukum wrote: > > > > > > > > > How about exporting usb_disable_interface() and > > > > > > usb_enabl

Re: [linux-usb-devel] USB patch queue catchup

2007-05-03 Thread Greg KH
On Thu, May 03, 2007 at 10:31:18AM -0400, Alan Stern wrote: > On Thu, 3 May 2007, Greg KH wrote: > > > Hi all, > > > > I've tried to apply all of the pending USB patches that everyone has > > sent me, but I know I missed a lot, due to odd mis-merges,and me not > > wanting to take some of the auto

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle (SOLVED!)

2007-05-03 Thread Oliver Neukum
Am Donnerstag, 3. Mai 2007 22:00 schrieb Alex Villací­s Lasso: > - kingsun_net_open() allocates the URB and (in successful completion) > leaves the device in the open state. A suspend/resume cycle here will > submit rx_urb, but the interface is supposed to be opened. Sorry, you are right. I misr