On Fri, Jun 06, 2003, Duncan Sands <[EMAIL PROTECTED]> wrote:
> diff -Nru a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c
> --- a/drivers/usb/host/uhci-hcd.c     Fri Jun  6 11:35:55 2003
> +++ b/drivers/usb/host/uhci-hcd.c     Fri Jun  6 11:35:55 2003
> @@ -831,7 +831,7 @@
>        */
>       destination ^= (USB_PID_SETUP ^ usb_packetid(urb->pipe));
>  
> -     if (!(urb->transfer_flags & URB_SHORT_NOT_OK))
> +     if (urb->transfer_flags & URB_SHORT_NOT_OK)
>               status |= TD_CTRL_SPD;
>  
>       /*
> @@ -1087,7 +1087,7 @@
>       status = uhci_maxerr(3) | TD_CTRL_ACTIVE;
>       if (urb->dev->speed == USB_SPEED_LOW)
>               status |= TD_CTRL_LS;
> -     if (!(urb->transfer_flags & URB_SHORT_NOT_OK))
> +     if (urb->transfer_flags & URB_SHORT_NOT_OK)
>               status |= TD_CTRL_SPD;
>  
>       /*

Seems to me that it was correct before this patch.

It will only set SPD if short packets were ok.

JE



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to