[linux-usb-devel] Help USB Isochronous camera driver error

2005-06-06 Thread lianwu pan
my usb camera works fine under linux. but in linux it can not get the data. i custom the V4L2 driver for the camera. everything seems good,but just can not read data from the camera. i use the Isochronous mode to get the data from the camera. in the complete handler of the struct urb that been su

Re: [linux-usb-devel] Re: ati_remote and Qsonic Master Remote 6in1 (pearl)

2005-06-06 Thread Frank Loeffler
Hi, Joerg Hoener wrote: 1.) Sometimes the initialization, returned one byte 0xFF. The remote works in any case, but could it be that the initialization is not correct? What does this return value states? I did not look at this and I would not know what this would mean. Since the remote seems

RE: [linux-usb-devel] Question about usb_unlink_urb

2005-06-06 Thread 陳友士
On Mon, Jun 06, 2005 at 10:37:28AM +0800, Enzo Chen (?h) wrote: > > I list the code below. > > Please understand it is under development and so there should be many > > bugs in it. > > However, the point is why usb_unlink_urb() in mxu2s_close() function > > blocked? > > If you enable d

Re: [linux-usb-devel] Re: Patch for Prolific PL-3507

2005-06-06 Thread Alan Stern
On Sun, 5 Jun 2005, Phil Dibowitz wrote: > > What does bother me is preventing people from using the last sector of a > > disk when they already have valid data stored there. Assuming the updated > > PL-3507 chips don't get used in a context where the last disk sector could > > be written (for

Re: [linux-usb-devel] This patch lets Sony DSC-V3 to work under linux-2.4.31

2005-06-06 Thread Alan Stern
On Sun, 5 Jun 2005, Phil Dibowitz wrote: > Mariusz Muszynski wrote: > > diff -urNp linux-2.4.31/drivers/usb/storage/unusual_devs.h > > linux-2.4.31-bzyk/drivers/usb/storage/unusual_devs.h > > --- linux-2.4.31/drivers/usb/storage/unusual_devs.h Wed Nov 17 12:54:21 > > 2004 > > +++ linux-2.4.3

Re: [linux-usb-devel] Re: Patch for Prolific PL-3507

2005-06-06 Thread Alex Butcher
On Mon, 6 Jun 2005, Alan Stern wrote: On Sun, 5 Jun 2005, Phil Dibowitz wrote: What does bother me is preventing people from using the last sector of a disk when they already have valid data stored there. Assuming the updated PL-3507 chips don't get used in a context where the last disk secto

Re: [linux-usb-devel] Re: Patch for Prolific PL-3507

2005-06-06 Thread Alan Stern
On Mon, 6 Jun 2005, Alex Butcher wrote: > > Ultimately we may want to remove the FIX_CAPACITY flag. Thanks to the > > design geniuses at Prolific we're caught in a "damned if you do, damned if > > you don't" situation. > > Is it possible to do something in user space, based on a unique device >

Re: [linux-usb-devel] Re: [BUG] oops while completing async USB via usbdevio

2005-06-06 Thread Harald Welte
On Wed, Jun 01, 2005 at 12:12:58AM +0200, Harald Welte wrote: > > > Wouldn't it help to associate the URB with the file (instaed of the > > > task), and then send the signal to any task that still has opened the > > > file? I'm willing to hack up a patch, if this is considered a sane fix. > > >

Re: [linux-usb-devel] Re: [BUG] oops while completing async USB via usbdevio

2005-06-06 Thread Alan Stern
On Mon, 6 Jun 2005, Harald Welte wrote: > On Wed, Jun 01, 2005 at 12:12:58AM +0200, Harald Welte wrote: > > > > > Wouldn't it help to associate the URB with the file (instaed of the > > > > task), and then send the signal to any task that still has opened the > > > > file? I'm willing to hack up

Re: [linux-usb-devel] Re: [BUG] oops while completing async USB via usbdevio

2005-06-06 Thread Harald Welte
On Mon, Jun 06, 2005 at 12:24:25PM -0400, Alan Stern wrote: > > > Ok, I'll get something coded shortly. > > > > Unfortunately this approach is not feasible, since there is no 'reverse > > mapping' from a file to a process. So for every URB delivery, we would > > have to walk that task_list and ch

[linux-usb-devel] USB storage problems, lh7a404

2005-06-06 Thread Jamie Guinan
Hi, I'm running linux 2.6.11 (vanilla) on a custom board, with a Sharp LH7A404. .config: CONFIG_ARCH_LH7A40X=y CONFIG_ARCH_LH7A404=y I've been having problems with a USB storage chip connected to the USB host interface (ST72F65, soldered on to the board). To detect media presence, I have a

Re: [linux-usb-devel] USB storage problems, lh7a404

2005-06-06 Thread Alan Stern
On Mon, 6 Jun 2005, Jamie Guinan wrote: > Hi, > > I'm running linux 2.6.11 (vanilla) on a custom board, with a > Sharp LH7A404. > > .config: > CONFIG_ARCH_LH7A40X=y > CONFIG_ARCH_LH7A404=y > > I've been having problems with a USB storage chip connected to the > USB host interface (ST72F65,

Re: [linux-usb-devel] USB storage problems, lh7a404

2005-06-06 Thread Jamie Guinan
On Mon, 6 Jun 2005, Alan Stern wrote: > On Mon, 6 Jun 2005, Jamie Guinan wrote: > > > Hi, > > > > I'm running linux 2.6.11 (vanilla) on a custom board, with a > > Sharp LH7A404. > > > > .config: > > CONFIG_ARCH_LH7A40X=y > > CONFIG_ARCH_LH7A404=y > > > > I've been having problems with a US

Re: [linux-usb-devel] USB storage problems, lh7a404

2005-06-06 Thread David Brownell
On Monday 06 June 2005 12:03 pm, Jamie Guinan wrote: > > 2) Does the 0x30101 look like a sane response? I'm seeing 0x30100 > when I remove an IOGEAR media reader connected through via a > standard USB TypeA port. What's a bit curious is that the connect status bit change is set (CSC)

Re: [linux-usb-devel] USB storage problems, lh7a404

2005-06-06 Thread Alan Stern
On Mon, 6 Jun 2005, Jamie Guinan wrote: > > That's odd. While I'm not familiar with the details of OHCI or the > > LH7A404 driver, normally a host controller driver does not check the port > > status when communicating with a device. Port status is checked > > asynchronously by the hub driver

Re: [linux-usb-devel] USB storage problems, lh7a404

2005-06-06 Thread Alan Stern
On Mon, 6 Jun 2005, David Brownell wrote: > Thing is, other folk have been complaining recently about cases > where devices seem to be spontaneously disconnecting from Linux. > (Often storage devices, for that matter.) And I'm wondering if > your setup can be used to turn up more information on t

[linux-usb-devel] Update ub in 2.6.12-rc6

2005-06-06 Thread Pete Zaitcev
This smoothes two imperfections: - Increase number of LUNs per device from 4 to 9. The best solution would be to remove this limit altogether, but that has to wait until the time when more than 26 hosts are allowed. - Replace mdelay with msleep in a probing routine. Signed-off-by: Pete Zaitcev

Re: [linux-usb-devel] USB storage problems, lh7a404

2005-06-06 Thread David Brownell
On Monday 06 June 2005 1:37 pm, Alan Stern wrote: > On Mon, 6 Jun 2005, David Brownell wrote: > > > > What I'm curious about is whether there's something that usbcore > > is doing to the poor root hubs that make them disconnect devices. > > What could usbcore possibly do to make a hub disconnect

[linux-usb-devel] OHCI won't autosuspend on Libretto L5

2005-06-06 Thread Ben Slusky
Hello USB hackers, I would like to (belatedly) register a complaint concerning this patch: http://marc.theaimsgroup.com/?l=linux-usb-devel&m=110313153001002&w=2> Dave Brownell writes, "the only penalty is increased power consumption (from OHCI clocks) on boards/chips that don't work right." Sadly

[linux-usb-devel] PATCH: endpoint toggles and reset delays

2005-06-06 Thread Matthew Dharm
This patch does two things to help reset recovery. It started life as as496 and was rediffed by me. First, the patch checks the result of a CLEAR_HALT request and doesn't reset the endpoint's data toggle unless the request succeeded. Second, it reduces the timeout for a device reset from 20 se

[linux-usb-devel] PATCH: port reset on transport error

2005-06-06 Thread Matthew Dharm
This patch causes a port reset whenever there's a transport error or abort. If that fails it reverts back to doing a mass-storage device reset. It started life as as497 and was rediffed by me. This makes error recovery a lot quicker and more reliable. Greg, please apply. Matt Signed-off-by: Al

[linux-usb-devel] PATCH: retry hard errors

2005-06-06 Thread Matthew Dharm
This patch started life as as527, and was rediffed by me. Since the IDE interface doesn't convey much information about types of errors, many USB-IDE adapters report all low-level errors with SK = 0x04, which is supposed to be used only for non-recoverable errors. As a result the SCSI midlayer do

Re: [linux-usb-devel] Stuck control URBs on some APC UPSes

2005-06-06 Thread Martin Kessler
Adam Kropelin wrote: Alan Stern wrote: On Thu, 2 Jun 2005, Adam Kropelin wrote: It would certainly help to know exactly where the blockage occurs. Is it in the HID queuing code, in the HCD (unlikely), or in the UPS device? Suitable debugging statements ought to settle that pretty easily.

Re: [linux-usb-devel] Re: Patch for Prolific PL-3507

2005-06-06 Thread Phil Dibowitz
Alan Stern wrote: > On Sun, 5 Jun 2005, Phil Dibowitz wrote: > > >>>What does bother me is preventing people from using the last sector of a >>>disk when they already have valid data stored there. Assuming the updated >>>PL-3507 chips don't get used in a context where the last disk sector coul

Re: [linux-usb-devel] This patch lets Sony DSC-V3 to work under linux-2.4.31

2005-06-06 Thread Phil Dibowitz
Alan Stern wrote: > On Sun, 5 Jun 2005, Phil Dibowitz wrote: > > >>Mariusz Muszynski wrote: >> >>>diff -urNp linux-2.4.31/drivers/usb/storage/unusual_devs.h >>>linux-2.4.31-bzyk/drivers/usb/storage/unusual_devs.h >>>--- linux-2.4.31/drivers/usb/storage/unusual_devs.h Wed Nov 17 12:54:21 >>>

Re: [linux-usb-devel] Re: Patch for Prolific PL-3507

2005-06-06 Thread Phil Dibowitz
Alan Stern wrote: > On Mon, 6 Jun 2005, Alex Butcher wrote: > > >>>Ultimately we may want to remove the FIX_CAPACITY flag. Thanks to the >>>design geniuses at Prolific we're caught in a "damned if you do, damned if >>>you don't" situation. >> >>Is it possible to do something in user space, based

Re: [linux-usb-devel] Stuck control URBs on some APC UPSes

2005-06-06 Thread Pete Zaitcev
On Tue, 07 Jun 2005 11:24:25 +0800, Martin Kessler <[EMAIL PROTECTED]> wrote: > > I'm relying on the afflicted users to send debug traces. Sticking in a > > printk might be a quicker way for Martin and Christian to get infoif > > usbmon is proving troublesome. How's it going, guys? > Any activ

Re: [linux-usb-devel] Stuck control URBs on some APC UPSes

2005-06-06 Thread David Brownell
On Monday 06 June 2005 10:05 pm, Pete Zaitcev wrote: > On Tue, 07 Jun 2005 11:24:25 +0800, Martin Kessler <[EMAIL PROTECTED]> wrote: > > > > > I'm relying on the afflicted users to send debug traces. Sticking in a > > > printk might be a quicker way for Martin and Christian to get infoif > > >

Re: [linux-usb-devel] This patch lets Sony DSC-V3 to work under linux-2.4.31

2005-06-06 Thread Pete Zaitcev
On Mon, 06 Jun 2005 20:50:28 -0700, Phil Dibowitz <[EMAIL PROTECTED]> wrote: > >>>--- linux-2.4.31/drivers/usb/storage/unusual_devs.h Wed Nov 17 > >>>12:54:21 2004 > >>>+++ linux-2.4.31-bzyk/drivers/usb/storage/unusual_devs.hWed Jun 1 > >>>21:18:28 2005 > >>>@@ -255,6 +255,15 @@ UNU

Re: [linux-usb-devel] Stuck control URBs on some APC UPSes

2005-06-06 Thread Martin Kessler
David Brownell wrote: On Monday 06 June 2005 10:05 pm, Pete Zaitcev wrote: On Tue, 07 Jun 2005 11:24:25 +0800, Martin Kessler <[EMAIL PROTECTED]> wrote: I'm relying on the afflicted users to send debug traces. Sticking in a printk might be a quicker way for Martin and Christian to ge

Re: [linux-usb-devel] This patch lets Sony DSC-V3 to work under linux-2.4.31

2005-06-06 Thread Phil Dibowitz
Pete Zaitcev wrote: > On Mon, 06 Jun 2005 20:50:28 -0700, Phil Dibowitz <[EMAIL PROTECTED]> wrote: > > >--- linux-2.4.31/drivers/usb/storage/unusual_devs.h Wed Nov 17 >12:54:21 2004 >+++ linux-2.4.31-bzyk/drivers/usb/storage/unusual_devs.hWed Jun 1 >21:18:28 2005 >>

Re: [linux-usb-devel] PATCH: port reset on transport error

2005-06-06 Thread David Brownell
On Monday 06 June 2005 5:21 pm, Matthew Dharm wrote: > This patch causes a port reset whenever there's a transport error or abort. > If that fails it reverts back to doing a mass-storage device reset. It > started life as as497 and was rediffed by me. > > This makes error recovery a lot quicker a