• Alan Stern's avatar
    UHCI: Fix handling of short last packet · ab96dcd3
    Alan Stern authored
    This patch (as753) fixes the way uhci-hcd handles a short packet when it
    is the last packet of an URB.  Right now the driver handles short packets
    the same no matter when they occur.  However, the controller stops
    transferring packets when the short packet is not the last one (otherwise
    it would be reading beyond the end of the device's data) and needs to be
    restarted, whereas no such need occurs when the short packet is the last
    one.
    
    The result of the bug is that USB endpoint queues experience intermittent
    hangs, a regression in 2.6.17 with respect to earlier kernels.  The bug
    was raised in Bugzilla #6752 and this patch fixed it.
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    
    ab96dcd3
uhci-q.c 35.9 KB