• David Brownell's avatar
    [PATCH] USB: usb gadget drivers should be stricter about ZLPs · 775cd490
    David Brownell authored
    Some USB device controllers make it easy to handle all the various ways
    hosts interpret the USB spec about when control-IN transfers need to send
    a ZLP ... they can just send one if the host asks, or start the status
    stage whenever the host thinks it's time.  Other controllers make it hard
    to be forgiving in those cases.
    
    This patch updates all the gadget drivers to explicitly set the req->zero
    flag to reflect whether the USB spec says a ZLP "must" be sent by the
    device.  "Forgiving" drivers won't notice the change, but the others need
    to see this information passed down from the gadget driver.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    775cd490
zero.c 34.9 KB