• Thomas Pugliese's avatar
    usb: wusbcore: serialize access to the HWA data out endpoint · 679ee475
    Thomas Pugliese authored
    This patch serializes access to the HWA data transfer out (DTO)
    endpoint.  This prevents a situation where two transfer requests being
    sent concurrently to separate downstream endpoints could interleave
    their transfer request and transfer data packets causing data
    corruption.  The transfer processing code will now attempt to acquire
    the DTO resource before sending a transfer to the HWA.  If it cannot
    acquire the resource, the RPIPE that the transfer is assigned to will
    be placed on a waiting list.  When the DTO resource is released, the
    actor releasing the resource will serivce the RPIPEs that are waiting.
    Signed-off-by: default avatarThomas Pugliese <thomas.pugliese@gmail.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    679ee475
wa-xfer.c 68.9 KB