On Wed, 13 Feb 2008 13:31:54 -0600, Andrew McKay <[EMAIL PROTECTED]> wrote:

>    spin_lock_bh(&port->lock);
>    if (port->write_urb_busy) {

If you lock against callbacks and do not trigger tasklets yourself,
you must use spin_lock_irqsave (or spin_lock_irq if you are belong
to Oliver's denomination).

> This leads me to my question.  Is there a buffer that the control URB ends up 
> sitting in that doesn't get flushed until a certain number of bytes are sent 
> to 
> the USB end point?  If this is the case, is there an accepted method of 
> fushing 
> the URB to the USB endpoint?

Don't overthink it.

Look at the traffic with usbmon, it provides you timestamps for
(S)ubmission and (C)allback events.

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to