Re: [linux-usb-devel] Question about EHCI PCI/platform drivers

2007-05-17 Thread Tzachi Perelstein
David Brownell wrote: On Tuesday 15 May 2007, Tzachi Perelstein wrote: David Brownell wrote: On Sunday 13 May 2007, Tzachi Perelstein wrote: Hello, I'm working on EHCI HC glue port for Marvell Orion SoC. The Orion has a PCI/PCIE interfaces as well as an integrated USB controller. While

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Hans Petter Selasky
Hi, On Thursday 17 May 2007 06:38, David Brownell wrote: On Wednesday 16 May 2007, Hans Petter Selasky wrote: Hi, On Wednesday 16 May 2007 20:20, David Brownell wrote: URB submission has other failure possibilities than lack of memory. Those other things have to be checked

[linux-usb-devel] usb_control_msg() returns timeout !!

2007-05-17 Thread Jayaprakash Shanmugam
Hello Group, I have two devices connected to a host. I periodically read bulk data from first device and pass it on to the second device via EP-2. Apart from this periodic data, the host sends some vendor commands through EP-0 of first device. Though these vendor commands are received

Re: [linux-usb-devel] [PATCH] Remove duplicate ID in ipaq driver

2007-05-17 Thread Greg KH
On Wed, May 16, 2007 at 05:36:48PM -0400, Ben Collins wrote: On Wed, 2007-05-16 at 13:59 -0700, Roland Dreier wrote: /* The first entry is a placeholder for the insmod-specified device */ -{ USB_DEVICE(0x049F, 0x0003) }, Is it obvious why this patch is correct? Especially

Re: [linux-usb-devel] ark3116: receive returns negative

2007-05-17 Thread Greg KH
On Wed, May 16, 2007 at 06:04:45PM +0200, Jan Engelhardt wrote: Hello, I seem to have problems with the ark3116 driver from 2.6.18.8. This is a USB-RS232 cable. Just opening the /dev/ttyUSB0 device gives (this is the debug output enabled by `modprobe ark3116 debug=1`). The lines

Re: [linux-usb-devel] FW: Pl2303 on 2.4.x

2007-05-17 Thread Greg KH
On Tue, May 15, 2007 at 03:32:35PM -0400, Matthew Hickey wrote: Good afternoon all, i have a 2.4.26 kernel with the newer patch for the pl2303 driver (10.1) only the problem is that it only allows for a maxpacketsize of 64 bytes, if i look at the driver for 2.6.x i see that there is a

Re: [linux-usb-devel] [PATCH] Remove duplicate ID in ipaq driver

2007-05-17 Thread Ben Collins
On Thu, 2007-05-17 at 05:43 -0700, Greg KH wrote: On Wed, May 16, 2007 at 05:36:48PM -0400, Ben Collins wrote: On Wed, 2007-05-16 at 13:59 -0700, Roland Dreier wrote: /* The first entry is a placeholder for the insmod-specified device */ - { USB_DEVICE(0x049F, 0x0003)

Re: [linux-usb-devel] [PATCH] Remove duplicate ID in ipaq driver

2007-05-17 Thread Valdis . Kletnieks
On Thu, 17 May 2007 09:02:20 EDT, Ben Collins said: So we just have to live with it, and the infinitesimal speed hit it creates :) Any objection to adding it to planned-for-removal and spitting out a printk when someone uses the feature? Do we have any good reason to believe that this

Re: [linux-usb-devel] [PATCH] Remove duplicate ID in ipaq driver

2007-05-17 Thread Greg KH
On Thu, May 17, 2007 at 09:02:20AM -0400, Ben Collins wrote: On Thu, 2007-05-17 at 05:43 -0700, Greg KH wrote: On Wed, May 16, 2007 at 05:36:48PM -0400, Ben Collins wrote: On Wed, 2007-05-16 at 13:59 -0700, Roland Dreier wrote: /* The first entry is a placeholder for the

Re: [linux-usb-devel] Question about EHCI PCI/platform drivers

2007-05-17 Thread David Brownell
On Thursday 17 May 2007, Tzachi Perelstein wrote: Besides arguing with me if I have a buggy PCI or not, you couldn't explain _why_ this is the appropriate handling. I was pointing out to you that there's nothing particularly wrong about it. And it has the virtues of being straightforward ...

Re: [linux-usb-devel] ark3116: receive returns negative

2007-05-17 Thread Jan Engelhardt
Hi Greg, On May 17 2007 05:45, Greg KH wrote: I seem to have problems with the ark3116 driver from 2.6.18.8. This is a USB-RS232 cable. Just opening the /dev/ttyUSB0 device gives (this is the debug output enabled by `modprobe ark3116 debug=1`). The lines that look suspicious are

Re: [linux-usb-devel] usb_control_msg() returns timeout !!

2007-05-17 Thread Alan Stern
On Thu, 17 May 2007, Jayaprakash Shanmugam wrote: Hello Group, I have two devices connected to a host. I periodically read bulk data from first device and pass it on to the second device via EP-2. Apart from this periodic data, the host sends some vendor commands through EP-0 of first

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread David Brownell
On FreeBSD it will never happen that you call the equivalent of usb_submit_urb() after that the device has detached! It must be something terribly wrong in the Linux USB stack if the callbacks are alive after that you have detached a USB device. How does that work then

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Alan Stern
On Thu, 17 May 2007, Hans Petter Selasky wrote: If you need to do Async stuff, then you have to do it in a separate thread or in a so-called task-queue. Else you are in for great trouble! That was the big sin in the old USB stack on FreeBSD: Calling synchronous USB callbacks from

Re: [linux-usb-devel] ark3116: receive returns negative

2007-05-17 Thread Jan Engelhardt
On May 17 2007 16:10, Jan Engelhardt wrote: Hi Greg, But does the driver seem to work properly? Do you get data through the device properly? I have taken a voltmeter and an appropriate testcase program - and yes, at least transmit works. USB-RS232-GenderChanger-RS232-USB. A faulty setup that

Re: [linux-usb-devel] ark3116: receive returns negative

2007-05-17 Thread Greg KH
On Thu, May 17, 2007 at 04:51:09PM +0200, Jan Engelhardt wrote: On May 17 2007 16:10, Jan Engelhardt wrote: Hi Greg, But does the driver seem to work properly? Do you get data through the device properly? I have taken a voltmeter and an appropriate testcase program - and yes, at least

[linux-usb-devel] [PATCH] Re: ark3116: receive returns negative

2007-05-17 Thread Jan Engelhardt
On May 17 2007 07:58, Greg KH wrote: On Thu, May 17, 2007 at 04:51:09PM +0200, Jan Engelhardt wrote: On May 17 2007 16:10, Jan Engelhardt wrote: Hi Greg, But does the driver seem to work properly? Do you get data through the device properly? I have taken a voltmeter and an appropriate

[linux-usb-devel] anybody have a working driver for ELO 1529L with Mag-Tek USB Swipe Reader?

2007-05-17 Thread Jason Brewster
Thanks, JB - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Hans Petter Selasky
On Thursday 17 May 2007 16:35, Alan Stern wrote: On Thu, 17 May 2007, Hans Petter Selasky wrote: If you need to do Async stuff, then you have to do it in a separate thread or in a so-called task-queue. Else you are in for great trouble! That was the big sin in the old USB stack on FreeBSD:

Re: [linux-usb-devel] [3/3] 2.6.22-rc1: known regressions v2

2007-05-17 Thread Michal Piotrowski
Hi all, Here is a list of some known regressions in 2.6.22-rc1. Feel free to add new regressions/remove fixed etc. http://kernelnewbies.org/known_regressions Timers/NOHZ Subject: 2.6.21-git4 BUG: soft lockup detected on CPU#1! References : http://lkml.org/lkml/2007/5/2/511 Submitter :

Re: [linux-usb-devel] [3/3] 2.6.22-rc1: known regressions v2

2007-05-17 Thread Mauro Carvalho Chehab
Hi Michal, V4L Subject: V4L ABI breakage References : http://lkml.org/lkml/2007/5/14/42 Submitter : Robert Fitzsimons [EMAIL PROTECTED] Caused-By : Hans Verkuil [EMAIL PROTECTED] Mauro Carvalho Chehab [EMAIL PROTECTED] commit

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Hans Petter Selasky
On Thursday 17 May 2007 16:20, David Brownell wrote: On FreeBSD it will never happen that you call the equivalent of usb_submit_urb() after that the device has detached! It must be something terribly wrong in the Linux USB stack if the callbacks are alive after that you

Re: [linux-usb-devel] Cannot stall an endpoint 0 control transfer from a data stage callback function

2007-05-17 Thread Geoffrey Tam
For some reason, this didn't appear in the mailing list archive, so I'm sending again. -Original Message- From: Geoffrey Tam Sent: Wednesday, May 09, 2007 11:14 AM To: 'linux-usb-devel@lists.sourceforge.net' Cc: '[EMAIL PROTECTED]' Subject: RE: [linux-usb-devel] Cannot stall an endpoint

[linux-usb-devel] rx errors reported by usbnet

2007-05-17 Thread Yum Rayan
Hi, I have a bunch of USB devices configured for ethernet over USB connected to my machine. The host is running a 2.6.16 based kernel and I notice that rx errors reported via /proc/net/dev keep increasing infinitely. Initially the device responds without any problems, but at some random time,

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Alan Stern
On Thu, 17 May 2007, Hans Petter Selasky wrote: In Linux, the USB callbacks are generally atomic. Does that answer your question? Yes. So you protect the callback with a lock to make it atomic? No, you don't understand. The callback is atomic because it is not allowed to sleep. That's

Re: [linux-usb-devel] rx errors reported by usbnet

2007-05-17 Thread Alan Stern
On Thu, 17 May 2007, Yum Rayan wrote: Hi, I have a bunch of USB devices configured for ethernet over USB connected to my machine. The host is running a 2.6.16 based kernel and I notice that rx errors reported via /proc/net/dev keep increasing infinitely. Initially the device responds

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread David Brownell
On Thursday 17 May 2007, Hans Petter Selasky wrote: I would like introduce a new USB API call, so that my pre-allocate model will work better with your USB API. For example I want something like this: void usb_setup_endpoint(struct usb_device *usb, struct usb_interface *ui, struct

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Hans Petter Selasky
Hi, On Thursday 17 May 2007 19:03, Alan Stern wrote: On Thu, 17 May 2007, Hans Petter Selasky wrote: In Linux, the USB callbacks are generally atomic. Does that answer your question? Yes. So you protect the callback with a lock to make it atomic? No, you don't understand. The

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Pete Zaitcev
On Thu, 17 May 2007 10:44:13 -0700, David Brownell [EMAIL PROTECTED] wrote: So what's the model ... GPL'd Linux drivers will be modified to incorporate that call, so they'd work better on FreeBSD? I thought that we ignored this on purpose and talking about the licensing so deeply in the thread

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Alan Stern
On Thu, 17 May 2007, Hans Petter Selasky wrote: Hi, On Thursday 17 May 2007 19:03, Alan Stern wrote: On Thu, 17 May 2007, Hans Petter Selasky wrote: In Linux, the USB callbacks are generally atomic. Does that answer your question? Yes. So you protect the callback with a lock

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Hans Petter Selasky
On Thursday 17 May 2007 19:44, David Brownell wrote: On Thursday 17 May 2007, Hans Petter Selasky wrote: I would like introduce a new USB API call, so that my pre-allocate model will work better with your USB API. For example I want something like this: void usb_setup_endpoint(struct

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Pete Zaitcev
On Thu, 17 May 2007 14:26:18 -0400 (EDT), Alan Stern [EMAIL PROTECTED] wrote: As it happens, USB callbacks cannot be interrupted. That's a somewhat artificial restriction; in theory there's no reason we couldn't allow interrupts. Do you remember why we're doing this? I did not touch that

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Hans Petter Selasky
On Thursday 17 May 2007 20:19, Pete Zaitcev wrote: On Thu, 17 May 2007 10:44:13 -0700, David Brownell [EMAIL PROTECTED] wrote: So what's the model ... GPL'd Linux drivers will be modified to incorporate that call, so they'd work better on FreeBSD? I thought that we ignored this on purpose

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Alan Stern
On Thu, 17 May 2007, Pete Zaitcev wrote: On Thu, 17 May 2007 14:26:18 -0400 (EDT), Alan Stern [EMAIL PROTECTED] wrote: As it happens, USB callbacks cannot be interrupted. That's a somewhat artificial restriction; in theory there's no reason we couldn't allow interrupts. Do you

[linux-usb-devel] [patch 2.6.21-rc1-git] ehci refcounts work on ppc7448

2007-05-17 Thread David Brownell
Remove atomic operations on the reference counter for EHCI queue heads. On various platforms (including ppc7448), atomic operations are unusable with dma-coherent memory. Signed-off-by: Steven J. Hill [EMAIL PROTECTED] Signed-off-by: David Brownell [EMAIL PROTECTED] ---

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread David Brownell
On Thursday 17 May 2007, Pete Zaitcev wrote: On Thu, 17 May 2007 14:26:18 -0400 (EDT), Alan Stern [EMAIL PROTECTED] wrote: As it happens, USB callbacks cannot be interrupted. That's a somewhat artificial restriction; in theory there's no reason we couldn't allow interrupts. Do you

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread David Brownell
On Thursday 17 May 2007, Pete Zaitcev wrote: On Thu, 17 May 2007 10:44:13 -0700, David Brownell [EMAIL PROTECTED] wrote: So what's the model ... GPL'd Linux drivers will be modified to incorporate that call, so they'd work better on FreeBSD? I thought that we ignored this on purpose and

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread David Brownell
On Thursday 17 May 2007, Hans Petter Selasky wrote: On Thursday 17 May 2007 19:44, David Brownell wrote: On Thursday 17 May 2007, Hans Petter Selasky wrote: I would like introduce a new USB API call, so that my pre-allocate model will work better with your USB API. ... int

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Hans Petter Selasky
Hi, On Thursday 17 May 2007 21:26, David Brownell wrote: On Thursday 17 May 2007, Hans Petter Selasky wrote: On Thursday 17 May 2007 19:44, David Brownell wrote: On Thursday 17 May 2007, Hans Petter Selasky wrote: I would like introduce a new USB API call, so that my pre-allocate

Re: [linux-usb-devel] Is usb_buffer_alloc a generic URB buffer allocator ? (was Split Bulk Transfers)

2007-05-17 Thread Laurent Pinchart
On Wednesday 16 May 2007, Alan Stern wrote: On Tue, 15 May 2007, Laurent Pinchart wrote: Hi everybody, following the discussion about the split bulk transfers, Alan Stern and David Brownell told me I shouldn't use usb_buffer_alloc as a generic purpose URB buffer allocated. However,

Re: [linux-usb-devel] Is usb_buffer_alloc a generic URB buffer allocator ? (was Split Bulk Transfers)

2007-05-17 Thread Laurent Pinchart
On Wednesday 16 May 2007, David Brownell wrote: On Tuesday 15 May 2007, Laurent Pinchart wrote: Hi everybody, following the discussion about the split bulk transfers, Alan Stern and David Brownell told me I shouldn't use usb_buffer_alloc as a generic purpose URB buffer allocated.

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Laurent Pinchart
On Wednesday 16 May 2007, David Brownell wrote: On Wednesday 16 May 2007, Hans Petter Selasky wrote: Hi, I'm currently working on a Linux USB emulation layer for FreeBSD. In that regard I have some issues that makes the stack peform non-optimal due to its API design. ... in that

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread David Brownell
On Thursday 17 May 2007, Laurent Pinchart wrote: On Wednesday 16 May 2007, David Brownell wrote: On Wednesday 16 May 2007, Hans Petter Selasky wrote: in that when you have pre-allocated all buffers and all USB host controller descriptors, you will never get in the situation of not

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Alan Stern
On Thu, 17 May 2007, Laurent Pinchart wrote: A user of the Linux UVC driver unfortunately reported such a failure. The driver allocates 5 bulk URBs, and the device asked for a 2.7MB buffer. The system had been used for quite some time, and the user reported that allocating such an amount

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Laurent Pinchart
On Thursday 17 May 2007, David Brownell wrote: On Thursday 17 May 2007, Laurent Pinchart wrote: On Wednesday 16 May 2007, David Brownell wrote: On Wednesday 16 May 2007, Hans Petter Selasky wrote: in that when you have pre-allocated all buffers and all USB host controller

Re: [linux-usb-devel] Is usb_buffer_alloc a generic URB buffer allocator ? (was Split Bulk Transfers)

2007-05-17 Thread David Brownell
On Thursday 17 May 2007, Laurent Pinchart wrote: Shouldn't we implement scatter-gather for EHCI (and possibly other) controllers ? If by scatter-gather you mean struct scatterlist, we've had that support for some time now ... in usb_sg_*() routines. That's the usual definition inside Linux.

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread David Brownell
The call will setup one or two pre-allocated USB transfers for the emulation layer between the Linux USB stack and the FreeBSD USB stack. So what's a transfer ... just a bunch of TDs? And what would be the advantage to a Linux driver, since the TDs are allocated on demand in any

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Hans Petter Selasky
On Thursday 17 May 2007 23:04, Alan Stern wrote: On Thu, 17 May 2007, Laurent Pinchart wrote: A user of the Linux UVC driver unfortunately reported such a failure. The driver allocates 5 bulk URBs, and the device asked for a 2.7MB buffer. The system had been used for quite some time, and

Re: [linux-usb-devel] anybody have a working driver for ELO 1529L with Mag-Tek USB Swipe Reader?

2007-05-17 Thread Jiri Kosina
On Thu, 17 May 2007, Jason Brewster wrote: Thanks, What kind of device is that? (could you please post at least output of lsusb, etc.). It might be that the device is standard-compliant (for example HID), so wouldn't require any extra driver. Thanks, -- Jiri Kosina

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread Pete Zaitcev
On Thu, 17 May 2007 12:08:15 -0700, David Brownell [EMAIL PROTECTED] wrote: As it happens, USB callbacks cannot be interrupted. That's a somewhat artificial restriction; in theory there's no reason we couldn't allow interrupts. Do you remember why we're doing this? I did not

[linux-usb-devel] [patch] berry_charge.c updated with Blackberry Pearl support, and other bugfixes

2007-05-17 Thread Chris Frey
Hi, Below is a patch with the following changes to the berry_charge.c module: 1) kzalloc() is called, but memory is never freed Is this a memory leak? I'm not sure, but the buffer is only a dummy buffer to hold return data that is never used, so I suspect a stack

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread David Brownell
On Thursday 17 May 2007, Pete Zaitcev wrote: On Thu, 17 May 2007 12:08:15 -0700, David Brownell [EMAIL PROTECTED] wrote: As it happens, USB callbacks cannot be interrupted. That's a somewhat artificial restriction; in theory there's no reason we couldn't allow interrupts.

[linux-usb-devel] SAĞLIĞINIZ SİZİN İÇİN ÖNEMLİYSE..

2007-05-17 Thread =?windows-1254?q?YE=DE=DDM_ARMA=D0AN_
TAM KAPSAMLI CHECK-UP KAMPANYASI SAÐLIÐINIZ Description: Binary data - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just

Re: [linux-usb-devel] New USB stack on FreeBSD w/Linux emulation layer coming

2007-05-17 Thread David Brownell
On Thursday 17 May 2007, Hans Petter Selasky wrote: Isn't that the job of usb_buffer_alloc(), to allocate memory in blocks of PAGE_SIZE bytes? Not at all. The size parameter is in bytes, and the utility code it calls goes to some lengths to *avoid* that kind of wastage. As they say: UTSL!

[linux-usb-devel] problem with EHCI port status register

2007-05-17 Thread Tomohiro Kusumi
Hi I'm using HP storageworks USB DAT device on RHEL4 (based on kernel 2.6.9). It works okay most of the times, but sometimes the driver does not detect the device (about 1 out of 10 times). No other USB devices are used on the system. Let me explain some details. I turned on the CONFIG_USB_DEBUG

Re: [linux-usb-devel] [Bugme-new] [Bug 8498] New: BUG: 2.6.22-rc1+ resume after suspend-to-disk broken when USB compiled in.

2007-05-17 Thread Andrew Morton
On Thu, 17 May 2007 21:52:30 -0700 [EMAIL PROTECTED] wrote: http://bugzilla.kernel.org/show_bug.cgi?id=8498 Summary: BUG: 2.6.22-rc1+ resume after suspend-to-disk broken when USB compiled in. Kernel Version: