[linux-usb-devel] Question about writing a USB driver

2003-07-08 Thread Gary Ng
Hi guys, I am newbie trying to come up with my first USB driver, I've read through the usb-skeleton.c file and find it to be a very helpful starting point for a beginner like myself. There are several things though I am interested to learn a bit more. For example, is it a mandatory thing to set

Re: [linux-usb-devel] Question about writing a USB driver

2003-07-08 Thread David Brownell
Gary Ng wrote: For example, is it a mandatory thing to set the urb transfer_buffer size same as the device endpoint max packet size? What could happen if the urb transfer_buffer size is different from the max packet size? Don't make the i/o buffers small unless they need to be; it's a lot

Re: [linux-usb-devel] Question about writing a USB driver

2003-07-08 Thread Alan Stern
On Tue, 8 Jul 2003, Gary Ng wrote: Hi guys, I am newbie trying to come up with my first USB driver, I've read through the usb-skeleton.c file and find it to be a very helpful starting point for a beginner like myself. There are several things though I am interested to learn a bit more. For

Re: [linux-usb-devel] Question about writing a USB driver

2003-07-08 Thread Gary Ng
Thanks very much for such a quick feedback. The information is very helpful. Under 2.4, does that mean I have to set USE_QUEUE_BULK in transfer_flags if I want to invoke usb_submit_urb() multiple times without waiting for the completion handler to be called? Thanks, Gary --- Alan Stern [EMAIL

Re: [linux-usb-devel] Question about writing a USB driver

2003-07-08 Thread Alan Stern
On Tue, 8 Jul 2003, Gary Ng wrote: Thanks very much for such a quick feedback. The information is very helpful. Under 2.4, does that mean I have to set USE_QUEUE_BULK in transfer_flags if I want to invoke usb_submit_urb() multiple times without waiting for the completion handler to be

Re: [linux-usb-devel] Question about writing a USB driver

2003-07-08 Thread Duncan Sands
On Tuesday 08 July 2003 20:32, Alan Stern wrote: On Tue, 8 Jul 2003, Gary Ng wrote: Thanks very much for such a quick feedback. The information is very helpful. Under 2.4, does that mean I have to set USE_QUEUE_BULK in transfer_flags if I want to invoke usb_submit_urb() multiple times

Re: [linux-usb-devel] Question about writing a USB driver

2003-07-08 Thread David Brownell
Duncan Sands wrote: On Tuesday 08 July 2003 20:32, Alan Stern wrote: On Tue, 8 Jul 2003, Gary Ng wrote: Under 2.4, does that mean I have to set USE_QUEUE_BULK in transfer_flags if I want to invoke usb_submit_urb() multiple times without waiting for the completion handler to be called? I think

Re: [linux-usb-devel] Question about writing a USB driver

2003-07-08 Thread Gary Ng
Thanks again. I'll make sure the driver will work under 2.5/2.6 as well. Gary --- Duncan Sands [EMAIL PROTECTED] wrote: On Tuesday 08 July 2003 20:32, Alan Stern wrote: On Tue, 8 Jul 2003, Gary Ng wrote: Thanks very much for such a quick feedback. The information is very helpful. Under