Re: [linux-usb-devel] NULs in input read from ATEN UC-232A (pl2303 v0.10, 2.4.26)

2004-05-21 Thread Pete Zaitcev
On Sat, 22 May 2004 13:56:40 +1000 Ben Low <[EMAIL PROTECTED]> wrote: > I'm using seven ATEN UC-232A USB-serial adapters on a 2.4.26 kernel and Give us brainsss... er, I mean, dmesg. No way to tell what subdriver ATEN is. And since you're on that, /proc/bus/usb/devices. -- Pete --

[linux-usb-devel] NULs in input read from ATEN UC-232A (pl2303 v0.10, 2.4.26)

2004-05-21 Thread Ben Low
Hello All, I'm using seven ATEN UC-232A USB-serial adapters on a 2.4.26 kernel and have found that data read from any of these devices it littered with NULs. For example, here's a sample from a Cisco router's boot sequence: # cat /dev/usb/tts/1 > /tmp/o # vi /tmp/o [EMAIL PROTECTED] System Bootstra

[linux-usb-devel] Fw: live power to usb cable

2004-05-21 Thread Randy.Dunlap
Is this a linux-usb issue? I haven't seen or heard of it. ~Randy Begin forwarded message: Date: Thu, 20 May 2004 15:45:30 -0400 To: [EMAIL PROTECTED] On my USB cables that have connectors on both ends, one end is live when the other end is plugged into the computer. I can get a pretty dece

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread Greg KH
On Fri, May 21, 2004 at 06:04:46PM -0400, nardelli wrote: > > Maybe I spoke too soon here. We have 1 bulk in, 2 bulk out, and 1 interrupt > in endpoint, which by the logic in usb-serial, translates to 2 ports. Only > one of those ports can have a read_urb associated with it, unless we want to >

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread Greg KH
On Fri, May 21, 2004 at 05:44:09PM -0400, nardelli wrote: > Greg KH wrote: > >On Fri, May 21, 2004 at 03:51:23PM -0400, nardelli wrote: > > > > > >Patch is line-wrapped, so I can't apply it :( > > > > > > Hmmm... I couldn't see the linewrap in the original I sent, or > in test ones that I did. Pr

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread nardelli
nardelli wrote: Greg KH wrote: @@ -456,7 +460,8 @@ static void visor_close (struct usb_seri return; /* shutdown our urbs */ -usb_unlink_urb (port->read_urb); +if (port->read_urb) +usb_unlink_urb (port->read_urb); I really do not think these extra checks for read_u

Re: [linux-usb-devel] Scalability of Linux USB Subsystem

2004-05-21 Thread Greg KH
On Fri, May 21, 2004 at 09:00:31AM -0600, Colin Dabisza wrote: > Hello there... > > I develop a software tool that controls mobile phones (up to 128 per > system). Recently we've received USB based phones, and I've had some > success using the usbserial driver to control them. Which usbserial

[linux-usb-devel] PATCH: (as285) Initially read 9 bytes of config descriptor

2004-05-21 Thread Alan Stern
Greg: This patch reads the full 9 bytes of a configuration descriptor during enumeration rather than just the first 8 bytes. That's how Windows does it, and today I ran across a device that doesn't work properly when asked to send only 8 bytes worth. I doubt very much this will cause any pro

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread nardelli
Greg KH wrote: On Fri, May 21, 2004 at 03:51:23PM -0400, nardelli wrote: Patch is line-wrapped, so I can't apply it :( Hmmm... I couldn't see the linewrap in the original I sent, or in test ones that I did. Probably my mail tool, but then it is getting late on a Friday, which probably means that

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread Greg KH
On Fri, May 21, 2004 at 03:51:23PM -0400, nardelli wrote: > I've made all of the changes that recommended below. If it looks like > I've missed anything, please indicate so. > > > > --- linux-2.6.6.old/drivers/usb/serial/visor.c2004-05-09 > 22:32:27.0 -0400 > +++ linux-2.6.6.ne

Re: [linux-usb-devel] Backporting USB 2.0 on linux2.4.18 kernel.

2004-05-21 Thread David Brownell
Hakoo bakoo wrote: Hi, I want to use USB2.0 stack on my linux2.4.18 version of kernel. Is there any direct patch available for this? There was, ages ago, but it's rather ancient by now. I would recommend not using it, even if you find it in the list archives. Or if I try to back port it (from 2.4.

Re: [linux-usb-devel] Scalability of Linux USB Subsystem

2004-05-21 Thread David Brownell
Colin Dabisza wrote: Hello there... I develop a software tool that controls mobile phones (up to 128 per system). Recently we've received USB based phones, and I've had some success using the usbserial driver to control them. The problem with these phones is that the chipset requires messages

Re: [linux-usb-devel] PXA255 + PCI + CardBus USB2.0 + DMA problems

2004-05-21 Thread David Brownell
Guennadi Liakhovetski wrote: /* Recover a TD/ED using its collision chain */ static inline void * dma_to_ed_td (struct hash_list_t * entry, dma_addr_t dma) { struct hash_t * scan = entry->head; while (scan && scan->dma != dma) scan = scan->next; if (!scan)

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread nardelli
[EMAIL PROTECTED] wrote: I've made all of the changes that recommended below. If it looks like I've missed anything, please indicate so. [snip] + if (num_ports <= 0 || num_ports > 2) { I like the idea of this check, but you are trying to test for a negative value on a __u16 variable, which is

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread jkroon
> I've made all of the changes that recommended below. If it looks like > I've missed anything, please indicate so. > > [snip] >> >>>+if (num_ports <= 0 || num_ports > 2) { >> >> >> I like the idea of this check, but you are trying to test for a negative >> value on a __u16 variable, which i

Re: [linux-usb-devel] Re: Oops in 2.6.6 on visor disconnect

2004-05-21 Thread nardelli
As punishment for not searching the archives, you are required to test it :-) Greg KH wrote: On Fri, May 21, 2004 at 02:56:02PM -0400, Adam C Powell IV wrote: Greetings, I've been experiencing crashes immediately following hotsync of a Handspring Treo 300. Just upgraded to 2.6.6 (reported to have

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread nardelli
I've made all of the changes that recommended below. If it looks like I've missed anything, please indicate so. --- linux-2.6.6.old/drivers/usb/serial/visor.c 2004-05-09 22:32:27.0 -0400 +++ linux-2.6.6.new/drivers/usb/serial/visor.c 2004-05-21 15:02:30.938875280 -0400 @@ -398,7 +398,8

[linux-usb-devel] Re: Oops in 2.6.6 on visor disconnect

2004-05-21 Thread Greg KH
On Fri, May 21, 2004 at 02:56:02PM -0400, Adam C Powell IV wrote: > Greetings, > > I've been experiencing crashes immediately following hotsync of a > Handspring Treo 300. Just upgraded to 2.6.6 (reported to have uhci > updates), and still get what seems to be the same crash still on both my > de

[linux-usb-devel] PATCH: (as286) UHCI: allow URBs to be unlinked when IRQs don't work

2004-05-21 Thread Alan Stern
Greg: A lot of people with USB controllers made by VIA have been suffering from the fact that these controllers stop working when they receive a babble packet. In particular, they stop generating interrupt requests. Since the UHCI driver relies on IRQs from the controller for proper timing an

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread nardelli
Alan Stern wrote: On Fri, 21 May 2004, nardelli wrote: The api for usb_control_msg says, 'If successful, it returns 0, othwise a negative error number', and I didn't see any other way to figure out how much data was being returned. In the current kernel sources, the kerneldoc for usb_control_msg(

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread Greg KH
On Fri, May 21, 2004 at 10:48:54AM -0400, nardelli wrote: > > The old check would error out of visor_open() with -ENODEV if there was > not a read_urb for any device, and there was a comment that this was > needed for 'some brain dead Sony devices'. I modified this to error out > only for Sony de

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread Alan Stern
On Fri, 21 May 2004, nardelli wrote: > The api for usb_control_msg says, 'If successful, it returns 0, othwise a > negative error number', and I didn't see any other way to figure out how > much data was being returned. In the current kernel sources, the kerneldoc for usb_control_msg() says "If s

[linux-usb-devel] Scalability of Linux USB Subsystem

2004-05-21 Thread Colin Dabisza
Hello there... I develop a software tool that controls mobile phones (up to 128 per system). Recently we've received USB based phones, and I've had some success using the usbserial driver to control them. The problem with these phones is that the chipset requires messages over 64 bytes even th

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread nardelli
Pete Zaitcev wrote: On Thu, 20 May 2004 21:30:32 -0700 Greg KH <[EMAIL PROTECTED]> wrote: - if (!port->read_urb) { + if ((serial->dev->descriptor.idVendor != SONY_VENDOR_ID && !port->read_urb)) + { Your patch says that we might not have a read_urb for the given port? How could t

Re: [linux-usb-devel] [PATCH] visor: Fix Oops on disconnect

2004-05-21 Thread nardelli
Greg KH wrote: On Thu, May 20, 2004 at 07:08:56PM -0400, nardelli wrote: Here is a proposed patch for Oops on disconnect in the visor module. For details of the problem, please see http://bugzilla.kernel.org/show_bug.cgi?id=2289 I would really appreciate it if anyone that uses this module could ple

[linux-usb-devel] PXA255 + PCI + CardBus USB2.0 + DMA problems

2004-05-21 Thread Guennadi Liakhovetski
Hello With a 2.4.21-rmk-pxa kernel I've got problems with PCI / CardBus, which I want to investigate on the USB example. Setup: PXA255 + IT8152 (PCI) + PCI4520 (CardBus) + CardBus USB2.0 card. Symptom: kernel BUG at host/usb-ohci.h:466! which is /* Recover a TD/ED using its collision chain */

[linux-usb-devel] Fix kobil_sct with uhci

2004-05-21 Thread Thomas Wahrenbruch
Hi, the kobil_sct didn't work with uhci hcds. It used usb_fill_bulk_urb instead of usb_fill_int_urb. The attached patch fixes this. It starts reading in open now - this gives apps (CT-API) the chance to detect the p'n'p string correctly. Greg, please apply. Best regards Thomas Wahren

Re: [linux-usb-devel] problem of hub port status on big endian board is ok

2004-05-21 Thread Alan Stern
On Fri, 21 May 2004, fengwei yin wrote: > Another question: where can I find the newest code of usb subsystem? > bk? or CVS? I want to learn more about linux-usb of 2.6.X. The code I use is a clone of Greg KH's USB development system. It's at bk://kernel.bkbits.net/home/gregkh/linux/gregkh-2.6

[linux-usb-devel] Backporting USB 2.0 on linux2.4.18 kernel.

2004-05-21 Thread Hakoo bakoo
Hi, I want to use USB2.0 stack on my linux2.4.18 version of kernel. Is there any direct patch available for this? Or if I try to back port it (from 2.4.20) to 2.4.18, Is it possible? If yes, how much effort it might take? (mainly I require this to support EHCI controller and Mass storage device

[linux-usb-devel] Mail delivery failed: returning message to sender

2004-05-21 Thread Mail Delivery System
This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: [EMAIL PROTECTED] This message has been rejected because it has a potentially e