Re: [linux-usb-devel] usb-storage bug in 2.6.12-rc3

2005-05-04 Thread Roman Kagan
On Fri, Apr 29, 2005 at 12:28:30PM -0700, David Brownell wrote: > On Friday 29 April 2005 11:23 am, Roman Kagan wrote: > > > > ... instead of trying to make sure the attributes are available via > > sysfs at hotplug time, we can use another means to pass them to hotplug: > > we can add a routine,

Re: [linux-usb-devel] [PATCH 2.6.12-rc2] drivers/base/bus.c: fix iteration in driver_detach()

2005-05-04 Thread Roman Kagan
On Wed, May 04, 2005 at 10:30:57AM +0400, Roman Kagan wrote: > On Fri, Apr 29, 2005 at 02:34:59PM -0400, Alan Stern wrote: > > Does the patch look good? If you like it, I'll submit it to Greg. > > Yes it looks reasonable. At the moment I can't test the problematic > multi-interface USB device ca

[linux-usb-devel] HASP key problems on 2.4 kernels

2005-05-04 Thread Marc Gibert Ginestà
Hi! I've got some problems making HASP keys work on 2.4 kernels (from 2.4.22 to 2.4.30) on a nForce2 IGP chipset (last update on 2004). The keys show like this on dmesg: hub.c: new USB device 00:02.0-4, assigned address 2 usb.c: USB device 2 (vend/prod 0x529/0x1) is not claimed by any active dri

[linux-usb-devel] [PATCH] USB: Spelling fixes for drivers/usb.

2005-05-04 Thread Greg KH
[PATCH] USB: Spelling fixes for drivers/usb. Here are some spelling corrections for drivers/usb. cancelation -> cancellation succesful -> successful cancelation -> cancellation decriptor -> descriptor Initalize -> Initialize wierd -> weird Protocoll -> Protocol occured -> occurred successfull ->

[linux-usb-devel] [PATCH] USB: unusual_devs.h: atmel snd1 storage

2005-05-04 Thread Greg KH
[PATCH] USB: unusual_devs.h: atmel snd1 storage Signed-off-by: Phil Dibowitz <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- commit 8af60be9a71d2c636cd800deab63a9fadf3aee96 tree caf59ac73e61a10c9a0559e1165fae31cc37cf57 parent 5e54f91d8d770c5a48da10a5c9c314c1c926536b

[linux-usb-devel] [PATCH] USB cypress_m8: update kernel driver with current source

2005-05-04 Thread Greg KH
[PATCH] USB cypress_m8: update kernel driver with current source Fixed problem where setting or retreiving the serial config would fail with EPIPE. Removed CRTS toggling so the driver behaves more like other usbserial adapters. Issued new interval of 1ms instead of the default bInterval. As a r

[linux-usb-devel] [PATCH] USB: ftdi_sio redundant macro removal

2005-05-04 Thread Greg KH
[PATCH] USB: ftdi_sio redundant macro removal [ftdi_sio] Replaced redundant INTERFACE_A and INTERFACE_B macros with the equivalent PIT_SIOA and PIT_SIOB macros. Signed-off-by: Ian Abbott <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- commit 5e54f91d8d770c5a48da10a5

[linux-usb-devel] [PATCH] USB: ehci power fixes

2005-05-04 Thread Greg KH
[PATCH] USB: ehci power fixes Miscellaneous updates for EHCI. - Mostly updates the power switching on EHCI controllers. One routine centralizes the "power on/off all ports" logic, and the capability to do that is reported more correctly. - Courtesy Colin Leroy, a patch to always power u

[linux-usb-devel] [PATCH] USB: VID/PID updates for ftdi_sio driver

2005-05-04 Thread Greg KH
[PATCH] USB: VID/PID updates for ftdi_sio driver Some VID/PID updates for the ftdi_sio driver: * The "Gude Analog- und Digitalsysteme GmbH" entries were missing from the "combined" table. * Replaced FTDI_8U232AM_ALT_ALT_PID with 3 PIDs for devices from 4n-galaxy.de. * Removed redundant FTDI_R

[linux-usb-devel] [PATCH] USB: add a driver for the AirPrime CDMA Wireless PC card.

2005-05-04 Thread Greg KH
[PATCH] USB: add a driver for the AirPrime CDMA Wireless PC card. Easier than trying to use the generic usb-serial driver. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- commit 3b86b2028c4de998978baae780edfc36995bebc5 tree 494299fb27050eb76e6fd011c4c9c74720ccb367 parent 56c1e26d75008d

[linux-usb-devel] [PATCH] USB: new usbnet device id

2005-05-04 Thread Greg KH
[PATCH] USB: new usbnet device id On Thu, Apr 14, 2005 at 11:06:21PM +0400, Sergey Vlasov wrote: > http://thread.gmane.org/gmane.linux.usb.devel/32977 > > (see "[PATCH] N/3 cdc acm errors"). > > You also need this driver core fix: > > http://thread.gmane.org/gmane.linux.usb.devel/33132 I reproduc

[linux-usb-devel] [PATCH] USB Storage: fix compile error

2005-05-04 Thread Greg KH
[PATCH] USB Storage: fix compile error This patch fixes a compiler error caused by a missing prototype. It should apply directly to Greg KH's usb-2.6.git tree. Signed-off-by: Matthew Dharm <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- commit e2e66446e08a7a365a59e

[linux-usb-devel] [PATCH] USB: unusual_devs entry for Minolta Dimage Z10

2005-05-04 Thread Greg KH
[PATCH] USB: unusual_devs entry for Minolta Dimage Z10 This patch adds an unusual_devs entry for the Minolta Dimage Z10. Originally reported by Vilisas <[EMAIL PROTECTED]> Signed-off-by: Phil Dibowitz <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- commit 7b1cbebaa7

[linux-usb-devel] [GIT PATCH] USB bugfixes for 2.6.12-rc3

2005-05-04 Thread Greg KH
Here are a number of USB bugfixes for 2.6.12-rc3 and one new, tiny driver (63 lines, with comments). They have all been in the last few -mm releases. Pull from: rsync://rsync.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6.git/ Full patches will be sent to the linux-usb-devel mailing

Re: [linux-usb-devel] HASP key problems on 2.4 kernels

2005-05-04 Thread Pete Zaitcev
On Wed, 04 May 2005 09:37:52 +0200, Marc Gibert Ginestà <[EMAIL PROTECTED]> wrote: > Problem we have is that using 2.4 kernels, and a stress program on the > keys, and error shows up between 1 and 3000 read/writes on the device, > like this: > usb_control/bulk_msg: timeout > usb-ohci.c: unlink

[linux-usb-devel] usb serial gadget smp related bug

2005-05-04 Thread Eugeny S. Mints
Hello usb-devel, potential deadlock was at usb serial gadget (SMP case), please merge. (I haven't checked the latest serial.c changes so not sure whether this is not fixed already) Adjust dev->dev_lock spinlock lock/unlock calls to be safe for SMP case. Signed-off-by: Eugeny S. Mints <[EMAIL PROT

[linux-usb-devel] possible race in pxa2xx_udc driver in pxa2xx_ep_disable

2005-05-04 Thread Eugeny S. Mints
Hello David, usb-devel! I;d like to share my concern about a race in pxa2xx_ep_disable. Since very async nature of pxa2xx_ep_disable I think for ex ep->queue list may get corrupted (via nuke()) and a protection is needed. David: what about the following fix (though the irqs disabled section prob

[linux-usb-devel] oops in serial_open and serial_close

2005-05-04 Thread Flavio Leitner
Hello, I'm testing with pl2303 but oops show at serial_open() then I don't know if happens with other modules too. The program that trigger bug is attached below and just open(), tcsetattr() and close(). To reproduce: # for i in $(seq 5); do ./test_case /dev/ttyUSB0 ; done & # for i in $(seq

Re: [linux-usb-devel] oops in serial_open and serial_close

2005-05-04 Thread Flavio Leitner
On Wed, May 04, 2005 at 07:09:12PM +0530, [EMAIL PROTECTED] wrote: > >Hi Flavio, >Check the major number and try to open device file "/dev/usb/ttyUSB0" According with Documentation/usb/usb-serial.txt /dev/ttyUSB0 should be c 188 0. [EMAIL PROTECTED] usb-oops]# ls -la /dev/ttyUSB0 crw-r--

RE: [linux-usb-devel] oops in serial_open and serial_close

2005-05-04 Thread rao.shalini
Try to give "chmod 755 /dev/ttyUSB0" and it should work. Regards Shalini -Original Message- From: Flavio Leitner [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 7:24 PM To: Shalini Rao (WT01 - TELECOM SOLUTIONS) Cc: linux-usb-devel@lists.sourceforge.net; [EMAIL PROTECTED] Su

Re: [linux-usb-devel] Data corruption on usb key

2005-05-04 Thread Alan Stern
On Tue, 3 May 2005, Grégory SCHMITT wrote: > Hello, > > I have a no-name USB mp3 player coming with 128 MB. > > Vendor: Winbond Electronics Corp. 0x0416 > Product: CT986 0xc986 > > It works fine under windows: sometimes data corruption will occur, but > that remains rare and reading/writing sp

Re: [linux-usb-devel] no more "applied, thanks" emails from me.

2005-05-04 Thread Alan Stern
On Tue, 3 May 2005, Greg KH wrote: > Just a short note to know that I'll probably not be sending any kind of > ACK message out to the mailing list anymore when I apply patches to my > tree. Instead, the patch submitter will get a message when it gets > applied, that contains a bunch of info about

Re: [linux-usb-devel] Data corruption on usb key

2005-05-04 Thread Paulo Marques
Grégory SCHMITT wrote: > [...] I tried latest patch regarding ignoring residue for read and write operations, it somehow helped as all those error message are gone and files are copied without problem, but it is horribly slow (transfer rate around 20 kb/s at best), which makes mp3 transfers a real

Re: [linux-usb-devel] [PATCH 2.6.12-rc2] drivers/base/bus.c: fix iteration in driver_detach()

2005-05-04 Thread Alan Stern
On Wed, 4 May 2005, Roman Kagan wrote: > > Does the patch look good? If you like it, I'll submit it to Greg. > > Yes it looks reasonable. At the moment I can't test the problematic > multi-interface USB device case where that bug revealed itself, which > was observed by Duncan Sands; I'm attach

[linux-usb-devel] isp1362-hcd success & question

2005-05-04 Thread Michael
Hi. I'm pleased to announce that I've got my driver working! I was able yesterday to attach a USB-network device, and get it onto the network, and use telnet! The ohci-isp1362 driver didn't get me that far. That's encouraging, and I think that I'll likely be able to write reliably to a flash driv

Re: [linux-usb-devel] ISP1362 HCD detects, but no interrupts

2005-05-04 Thread Michael
> Thanks for this clearing int_edge_triggered has made the > interrupts > appear, but unfortunately now I hit a 'BUG_ON' in isp1362_irq, > > 1089:spin_lock(&isp1362_hcd->lock); > 1090: > 1091:BUG_ON(isp1362_hcd->irq_active++); > 1092: > 1093:isp1362_write_reg16(isp1362_hc

Re: [linux-usb-devel] Bug AMD 756 OHCI isochronous tranfers

2005-05-04 Thread Brian Beardall
Brian Beardall wrote: >Brian Beardall wrote: > > > >>David Brownell wrote: >> >> >> >> >> >>>On Monday 02 May 2005 12:36 pm, Brian Beardall wrote: >>> >>> >>> >>> >>> >>> David Brownell wrote: I enabled the CONFIG_USB_DEBUG, and this is what I get: ohci_hcd :00

Re: [linux-usb-devel] isp1362-hcd success & question

2005-05-04 Thread Alan Stern
On Wed, 4 May 2005, Michael wrote: > Hi. > I'm pleased to announce that I've got my driver working! I was > able yesterday to attach a USB-network device, and get it onto the > network, and use telnet! The ohci-isp1362 driver didn't get me > that far. > That's encouraging, and I think that I'll

Re: [linux-usb-devel] no more "applied, thanks" emails from me.

2005-05-04 Thread Greg KH
On Wed, May 04, 2005 at 11:16:54AM -0500, Dmitry Torokhov wrote: > On 5/4/05, Alan Stern <[EMAIL PROTECTED]> wrote: > > On Tue, 3 May 2005, Greg KH wrote: > > > > > Just a short note to know that I'll probably not be sending any kind of > > > ACK message out to the mailing list anymore when I appl

Re: [linux-usb-devel] [PATCH 2.6.12-rc2] drivers/base/bus.c: fix iteration in driver_detach()

2005-05-04 Thread Greg KH
On Wed, May 04, 2005 at 11:19:15AM -0400, Alan Stern wrote: > Here's an idea I had recently to improve the klist library; tell me what > you think. As a space optimization, instead of storing a struct > completion in every klist_node, just put a wait_queue_header in struct > klist. Under normal

[linux-usb-devel] USB Gadget MASS Storage Device w/Windows

2005-05-04 Thread Benavides, Tony
Hello, I am using a mainstone pxa processor with a linux 2.6.9 kernel. My goal is to configure the kernel with USB Mass Storage support and via USB see the storage device in Windows. Initially I have built in the kernel the support. I cannot find any documentation on how to setup the mass stor

Re: [linux-usb-devel] Understanding the USB OHCI Glue layer (OMAP)

2005-05-04 Thread David Brownell
On Tuesday 03 May 2005 11:42 pm, Nori, Soma Sekhar wrote: > > Hi All, > > The probe function of OMAP Bus Glue for USB OHCI HCD, > (function "usb_hcd_omap_probe" in file drivers\usb\host\ohci-omap.c) > expects the HCD memory and interrupt resources to be allocated in the > platform_device struct

Re: [linux-usb-devel] possible race in pxa2xx_udc driver in pxa2xx_ep_disable

2005-05-04 Thread David Brownell
On Wednesday 04 May 2005 4:30 am, Eugeny S. Mints wrote: > Hello David, usb-devel! > > I'd like to share my concern about a race in pxa2xx_ep_disable. > Since very async nature of pxa2xx_ep_disable I think for ex ep->queue > list may get corrupted (via nuke()) and a protection is needed. > > Dav

Re: [linux-usb-devel] usb serial gadget smp related bug

2005-05-04 Thread David Brownell
On Wednesday 04 May 2005 3:32 am, Eugeny S. Mints wrote: > Hello usb-devel, > > potential deadlock was at usb serial gadget (SMP case), please merge. > (I haven't checked the latest serial.c changes so not sure whether this > is not fixed already) > > Adjust dev->dev_lock spinlock lock/unlock ca

[linux-usb-devel] list head in struct urb

2005-05-04 Thread Roman Kagan
Hi, As the recommended practice in 2.6 is to keep the endpoint queue busy, drivers (should) normally want to use multiple urbs on an endpoint. Given that, it would be very handy to have a list head in struct urb, so that drivers could conveniently manipulate multiple urbs. (As a real world exam

Re: [linux-usb-devel] Data corruption on usb key

2005-05-04 Thread Grégory SCHMITT
> - Original Message - > Date: Wed, 4 May 2005 10:54:16 -0400 (EDT) > From: Alan Stern <[EMAIL PROTECTED]> > To: Gregory SCHMITT <[EMAIL PROTECTED]> > Cc: USB development list > Subject: Re: [linux-usb-devel] Data corruption on usb key > On Tue, 3 May 2005, Grégory SCHMITT wrote: > > >

Re: [linux-usb-devel] [PATCH 2.6.12-rc2] drivers/base/bus.c: fix iteration in driver_detach()

2005-05-04 Thread Roman Kagan
On Wed, May 04, 2005 at 11:19:15AM -0400, Alan Stern wrote: > Here's an idea I had recently to improve the klist library; tell me what > you think. As a space optimization, instead of storing a struct > completion in every klist_node, just put a wait_queue_header in struct > klist. Under normal

Re: [linux-usb-devel] USB Gadget MASS Storage Device w/Windows

2005-05-04 Thread Alan Stern
On Wed, 4 May 2005, Benavides, Tony wrote: > Hello, > > I am using a mainstone pxa processor with a linux 2.6.9 kernel. > My goal is to configure the kernel with USB Mass Storage support and via > USB see the storage device in Windows. > > Initially I have built in the kernel the support. > >

Re: [linux-usb-devel] Data corruption on usb key

2005-05-04 Thread Alan Stern
On Wed, 4 May 2005, Grégory SCHMITT wrote: > > > It was natively not working with kernel 2.6.11, so I decided to hack > > > the unusual_devs.h. I added those line: > > > > > > UNUSUAL_DEV(0x0416, 0xc986, 0x0100, 0x0100, > > > "Winbond Electronics Corp.", > > > "CT986", > > > US

Re: [linux-usb-devel] no more "applied, thanks" emails from me.

2005-05-04 Thread Christian Iversen
On Wednesday 04 May 2005 18:50, Greg KH wrote: > On Wed, May 04, 2005 at 11:16:54AM -0500, Dmitry Torokhov wrote: > > On 5/4/05, Alan Stern <[EMAIL PROTECTED]> wrote: > > > On Tue, 3 May 2005, Greg KH wrote: > > > > Just a short note to know that I'll probably not be sending any kind > > > > of ACK

Re: [linux-usb-devel] ISP1362 HCD detects, but no interrupts

2005-05-04 Thread Andre Renaud
> Hey. I just wanted to pipe in that I had this problem for a short > while as well. It boggled my mind.. doesn't spin_lock prevent two > interrupt handlers from entering this function at the same time? > > irq_active is only referenced in this function, and it's subtracted > at the end. I did

Re: [linux-usb-devel] list head in struct urb

2005-05-04 Thread David Brownell
On Wednesday 04 May 2005 12:19 pm, Roman Kagan wrote: > struct urb { > /* private, usb core and host controller only fields in the urb */ > ... > struct list_head urb_list; /* list pointer to all active urbs */ > ... > }; > > Is it safe to use it for driver's purposes

Re: [linux-usb-devel] mmap() for usbdevfs, zerocopy EHCI ?

2005-05-04 Thread Christopher Li
I would like to see (or may be working on it depends how many times I get) the zero copy for usbfs. It has been mention a few times about the usbfs2. What is the plan there so far? On Mon, May 02, 2005 at 10:23:11AM -0700, David Brownell wrote: > > I was rather shocked to notice that gadgetfs

Re: [linux-usb-devel] USB Gadget MASS Storage Device w/Windows

2005-05-04 Thread David Brownell
On Wednesday 04 May 2005 10:49 am, Benavides, Tony wrote: > Hello, > > I am using a mainstone pxa processor with a linux 2.6.9 kernel. I thought "mainstone" was the devel board, not the processor; and that the CPU on that board would be a pxa 27x ("bulverde"). So far as I know, there's no usable

Re: [linux-usb-devel] OHCI and suspend/resume problems

2005-05-04 Thread David Brownell
On Sunday 01 May 2005 7:14 pm, Alan Stern wrote: > David: > > I found part of the source for the trouble I've had with root-hub > suspend/resume on OHCI. It's these two lines near the end of > ohci-hub.c:ohci_hub_suspend(): > > if (status == 0) > hcd->state = HC_STATE_S

RE: [linux-usb-devel] USB Gadget MASS Storage Device w/Windows

2005-05-04 Thread Benavides, Tony
Very true David. Just getting it all in a sentence. You get the idea. I didn't know that there was not a useable pxa27x_udc driver. Originally I had thought that there was one in the 2.6. base kernel. Thanks for your input, this is new info to me and Im really interested in getting this done.

[linux-usb-devel] usb_class_driver .name element

2005-05-04 Thread Stephen Morgan
Hello all, In usb-skeleton.c, (line 225) skel_class.name is set to "usb/skel%d", however, the device name "skel0" gets created in /dev, not /dev/usb. What is the "usb/" part of that string supposed to do? Thanks, Stephen Morgan --- This SF.

Re: [linux-usb-devel] Data corruption on usb key

2005-05-04 Thread Grégory SCHMITT
> - Original Message - > Date: Wed, 4 May 2005 17:03:50 -0400 (EDT) > From: Alan Stern <[EMAIL PROTECTED]> > To: Grégory SCHMITT <[EMAIL PROTECTED]> > Cc: linux-usb-devel@lists.sourceforge.net > Subject: Re: [linux-usb-devel] Data corruption on usb key > > > It sounds like the ignore-resi

Re: [linux-usb-devel] Re: [OOPS] on usb removal, and minicom closing 2.6.11.7

2005-05-04 Thread David Brownell
On Tuesday 03 May 2005 6:22 pm, Andrea Arcangeli wrote: > The cellphone shows 3 modes, you have to choose between "mass storagae" > or "modem" before you plug in the cable, then if you connect the cable > as "modem" you can as well transform it into a usbnet while the cable is > plugged it (after t

Re: [linux-usb-devel] USB Gadget MASS Storage Device w/Windows

2005-05-04 Thread David Brownell
On Wednesday 04 May 2005 3:28 pm, Benavides, Tony wrote: > Very true David. > > Just getting it all in a sentence. You get the idea. > > I didn't know that there was not a useable pxa27x_udc driver. > Originally I had thought that there was one in the 2.6. base kernel. There's one for the pxa25

[linux-usb-devel] gadget hotplug

2005-05-04 Thread mike lee
Hi all I just finish my draft version gadget controller driver on imx platform, but how can i benefit from the hotplug function provided from kernel? Do i need to provide the hotplug function in my driver, and example for hotplugging gadget? Thanks for any help best regard Mike Lee

RE: [linux-usb-devel] oops in serial_open and serial_close

2005-05-04 Thread rao.shalini
Title: RE: [linux-usb-devel] oops in serial_open and serial_close Hi Flavio, Check the major number and try to open device file "/dev/usb/ttyUSB0" Regards Shalini -Original Message- From: [EMAIL PROTECTED] on behalf of Flavio Leitner Sent: Wed 5/4/2005 6:51 PM To: linux-usb-

Re: [linux-usb-devel] [PATCH 2.6.12-rc2] drivers/base/bus.c: fix iteration in driver_detach()

2005-05-04 Thread Greg KH
On Wed, May 04, 2005 at 11:32:10PM +0400, Roman Kagan wrote: > On Wed, May 04, 2005 at 11:19:15AM -0400, Alan Stern wrote: > > Here's an idea I had recently to improve the klist library; tell me what > > you think. As a space optimization, instead of storing a struct > > completion in every klis