Alan Stern wrote:

> On Thu, 24 Nov 2005, Ajay Jain wrote:
> 
> 
>>Alan Stern wrote:
>>
>>
>>>On Wed, 23 Nov 2005, Ajay Jain wrote:
>>>
>>>
>>>
>>>>Hi,
>>>>
>>>>I am doing a USB Host driver for my h/w on an arm board on linux. My
>>>>question is regarding interrupt urbs. Are these things periodic? I mean
>>>>if I get an interrupt urb done from the h/w and I call the
>>>>urb->complete, then do I have to resubmit the same urb again or will the
>>>>usb layer resubmit it?
>>>
>>>
>>>Questions like this, concerning the development of a USB host or device 
>>>driver, should be posted to the linux-usb-devel mailing list, not 
>>>linux-usb-users.  I have taken the liberty of changing the CC.
>>>
>>>Interrupts are indeed periodic, but interrupt URBs are not.  Host 
>>>controller drivers do not resubmit interrupt URBs.  If the higher layers 
>>>want to resubmit an URB, they must do so themselves.
>>>
>>>Alan Stern
>>>
>>>
>>
>>Ok, this basically means that I do not need to resubmit a urb, but when
>>I am being given a urb, I report its status just once and retire it, or
>>do I keep giving its status again and again? I am confused because for a
>>root-hub you are given an interrupt-urb just once, and you start a timer
>>. In the timer's callback, you keep checking the port's status. So for a
>>normal case, should I emulate the same model or if I am given a urb, I
>>just send it on hardware, wait for its completion and on completion,
>>call urb->complete.
>>I am working on linux-kernel 2.4.
> 
> 
> You should have said that before.  Linux 2.4 works very differently from 
> 2.6.  The answers I gave you before were for 2.6.  If you can switch over 
> to 2.6 you should, because it's much better behaved and host controller 
> drivers are a lot simpler than they were for 2.4.
> 
> So forget what I told you earlier; it doesn't apply to 2.4.
> 
> Alan Stern

I regret for my mistake.  I am working in a company and I can not switch
kernel at my will, therefore can you please answer my questions now?

Ajay


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to