Re: [linux-usb-devel] Fixed bulk_msg, but check this out.

2006-05-27 Thread Alan Stern
On Sat, 27 May 2006, Paul Giblock wrote: > Wolfgang - > > > Aaah... the user should not be able to send the second command, if the > > first command is not finished. So you basicly have 2 choices: > > a) let the user write() function sleep (=blocking) until the first > > command is finished. > >

Re: [linux-usb-devel] resetting high speed usb device

2006-05-27 Thread Alan Stern
On Sun, 28 May 2006, Norbert Preining wrote: > > Try reverting all the patches you have made except the one that adds > > msleep() after the line setting srb->result. Instead of calling msleep, > > have it goto Handle_Errors. > > Yup done. Nice ... I still get a lot of resets, but the copying

Re: [linux-usb-devel] resetting high speed usb device

2006-05-27 Thread Norbert Preining
Hi Alan! On Sam, 27 Mai 2006, Alan Stern wrote: > > - the usb control interface works, lsusb -v does work all the time > > and the stuff is seen in usbmon > > It's not uncommon for one part of a USB interface (the part that handles It was only for your info, someone asked me about this. > >

Re: [linux-usb-devel] [PATCH] ftdi_sio serial driver

2006-05-27 Thread Greg KH
On Sat, May 27, 2006 at 01:03:58AM +0400, Vitja Makarov wrote: > Hi, all! > > I've recently found that ftdi_sio driver could cause some problems: > > * kernel panic: write much more data than device can transimt at once > and disconnect device, system hangs(( > * ftdi_sio could ran out of memory

Re: [linux-usb-devel] Fixed bulk_msg, but check this out.

2006-05-27 Thread Paul Giblock
Wolfgang - Aaah... the user should not be able to send the second command, if the first command is not finished. So you basicly have 2 choices: a) let the user write() function sleep (=blocking) until the first command is finished. This _would_ be ideal except I would need a way to signal the

Re: [linux-usb-devel] resetting high speed usb device

2006-05-27 Thread Alan Stern
On Fri, 26 May 2006, Norbert Preining wrote: > Dear Alan! > > On Fre, 26 Mai 2006, Alan Stern wrote: > > UNUSUAL_DEV( 0x1006, 0x3003, 0x0100, 0x0100, > > "iRiver", > > "H300 Series", > > US_SC_DEVICE, US_PR_DEVICE, NULL, > > US_FL_GO_SLOW ), > > O

[linux-usb-devel] Re: usb-serial ipaq kernel problem

2006-05-27 Thread Frank Gevaerts
On Fri, May 26, 2006 at 01:34:10PM -0700, Pete Zaitcev wrote: > On Fri, 26 May 2006 20:22:17 +0200, Frank Gevaerts <[EMAIL PROTECTED]> wrote: > > > usb 1-4.5.7: USB disconnect, address 79 > > [ cut here ] > > kernel BUG at kernel/workqueue.c:110! > > Please let me know if

Re: [linux-usb-devel] [PATCH] Driver for Apple Cinema Display

2006-05-27 Thread Christian Iversen
On Saturday 27 May 2006 13:36, Christian Iversen wrote: > On Saturday 27 May 2006 13:30, Michael Hanselmann wrote: > > Hello Andrew > > > > On Fri, May 26, 2006 at 01:16:30PM -0700, Andrew Morton wrote: > > > > + up(&pdata->bd->sem); > > > > + retval = appledisplay_bl_get_brightness(pda

Re: [linux-usb-devel] [PATCH] Driver for Apple Cinema Display

2006-05-27 Thread Christian Iversen
On Saturday 27 May 2006 13:30, Michael Hanselmann wrote: > Hello Andrew > > On Fri, May 26, 2006 at 01:16:30PM -0700, Andrew Morton wrote: > > > + up(&pdata->bd->sem); > > > + retval = appledisplay_bl_get_brightness(pdata->bd); > > > + if (retval >= 0) > > > + pdata->bd->props->brightness =

Re: [linux-usb-devel] [PATCH] Driver for Apple Cinema Display

2006-05-27 Thread Michael Hanselmann
Hello Andrew On Fri, May 26, 2006 at 01:16:30PM -0700, Andrew Morton wrote: > > + up(&pdata->bd->sem); > > + retval = appledisplay_bl_get_brightness(pdata->bd); > > + if (retval >= 0) > > + pdata->bd->props->brightness = retval; > > + down(&pdata->bd->sem); > Gee it's odd to go

Re: [linux-usb-devel] Fixed bulk_msg, but check this out.

2006-05-27 Thread Wolfgang Mües
Hello Paul, On Saturday 27 May 2006 11:27, Paul Giblock wrote: > Another problem is the way the radio seeks. To increase the > frequency I must send two messages, in sequence, with a delay in > between them. Then, I must wait for the next report sent from the > device. Why don't you use kernel t

Re: [linux-usb-devel] Fixed bulk_msg, but check this out.

2006-05-27 Thread Paul Giblock
Do all these URBs get created when the user writes to your driver's device file? If they do, then a simple approach needs only a mutex (so that only one write can happen at a time) and the value of "jiffies" as of the last URB. If the current transfer is too soon after the last one, do an inter