Re: [linux-usb-devel] Developping new usb driver

2007-01-15 Thread Oliver Neukum
Am Montag, 15. Januar 2007 16:34 schrieb David Brownell: > On Monday 15 January 2007 2:05 am, Oliver Neukum wrote: > > // as long as data wanted > > down_interruptible(&dev->sem_wantdata); > > > > You cannot use semaphores in interrupt context. Please read the kernel > > documentation abou

Re: [linux-usb-devel] Developping new usb driver

2007-01-15 Thread David Brownell
On Monday 15 January 2007 2:05 am, Oliver Neukum wrote: > // as long as data wanted > down_interruptible(&dev->sem_wantdata); > > You cannot use semaphores in interrupt context. Please read the kernel > documentation about spinlocks and locking in general. ISTR that you can up() a sem

Re: [linux-usb-devel] Developping new usb driver

2007-01-15 Thread Oliver Neukum
Am Montag, 15. Januar 2007 09:10 schrieb Guenther Sohler: > Unfortunately it does not work yet. It hangs as soon the driver internally > sees the first data arriving via USB cable. > > Could anybody have a look at the code to see if there are basic mistakes ? static void openradio_read_bulk_cal

[linux-usb-devel] Developping new usb driver

2007-01-15 Thread Guenther Sohler
Hallo, I have got a FX2 Board from Cypress, which is connected to the PC using USB2.0. My goal is to get quite a big bandwidth transmitted from the FX2 to the PC (my goal is actually about 15 MB/s, and many people told me that this is posible) My first attemts have been using libusb with a progr