• David Brownell's avatar
    [PATCH] USB: usbtest: scatterlist OUT data pattern testing · 8b524901
    David Brownell authored
    Previously, scatterlist tests didn't write patterned data.  Given how many
    corner cases are addresed by them, this was a significant gap in Linux-USB
    test coverage.  Moreover, when peripherals checked for correct data patterns,
    false error reports would drown out the true ones.
    
    This adds the pattern on the way OUT from the host, so scatterlist tests can
    now be used to uncover bugs like host TX or peripheral RX paths failing for
    back-to-back short packets.  It's easy enough to get an error there with at
    least one of the {DMA,PIO}{RX,TX} code paths, or run into hardware races
    that need to be defended against.
    
    Note this patch doesn't add checking for correct data patterns on the way
    IN from peripherals, just a FIXME for later.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    8b524901
usbtest.c 56.1 KB