Ticket #10915: 0001-Fix-UHCI-Short-Packet-Transfers.patch

File 0001-Fix-UHCI-Short-Packet-Transfers.patch, 898 bytes (added by akshay1994, 5 years ago)
  • src/add-ons/kernel/busses/usb/uhci.cpp

    From 4503e5e5209e234f23c8dcaeb671de8000a3442d Mon Sep 17 00:00:00 2001
    From: Akshay Jaggi <akshay1994.leo@gmail.com>
    Date: Sat, 7 Jun 2014 11:40:38 +0000
    Subject: [PATCH] Fix UHCI Short Packet Transfers
    
    ---
     src/add-ons/kernel/busses/usb/uhci.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/add-ons/kernel/busses/usb/uhci.cpp b/src/add-ons/kernel/busses/usb/uhci.cpp
    index f764d0d..6347430 100644
    a b UHCI::CreateDescriptor(Pipe *pipe, uint8 direction, size_t bufferSize) 
    21132113    else {
    21142114        result->status |= TD_CONTROL_3_ERRORS;
    21152115        if (direction == TD_TOKEN_IN
    2116             && (pipe->Type() & USB_OBJECT_CONTROL_PIPE) == 0)
     2116            && (pipe->Type() & USB_OBJECT_CONTROL_PIPE) != 0)
    21172117            result->status |= TD_CONTROL_SPD;
    21182118    }
    21192119    if (pipe->Speed() == USB_SPEED_LOWSPEED)