Re: urb packetizing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 31, 2009 at 11:44:09AM +0530, Viral Mehta wrote:
> 
> As usual nice responses, thanks.
> 
> >>> 3. USB host driver will convert that URB into different packets and will 
> >>> transmit to USB device. The packet size will be as defined in USB spec 
> >>> and as listed in protocol spec and also depends on what type of 
> >>> transfers are happening.
> >>>       
> >> Yes.
> >>
> >>     
> >>> 4. USB host driver will call completion only iff all packets are 
> >>> transmitted and thus one URB is transmitted correctly. Yes?
> >>>       
> >> Yes.
> >>     
> >
> > Actually no.  If usb_submit_urb() succeeded then the completion routine 
> > will definitely be called, whether or not the URB was transmitted 
> > correctly.
> >   
> Alright.
> And in that case my urb->status (in my completion callback routine) will 
> tell whether URB transmitted correctly or not. Yes ?

Yes.

> And urb->status will show successful only when all packets and thus one 
> URB is transmitted successfully. right?

Yes.

Any chance to see your driver source code?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux