]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: usbtest: add pattern check on pipe in phase of unlink read
authorHuang Rui <ray.huang@amd.com>
Thu, 22 May 2014 10:06:14 +0000 (18:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 23:23:43 +0000 (16:23 -0700)
commita7683eb3af6df30e3a3f3666d834e9abba8f5c22
tree70e242757551fabb656392089a76fde7ebcbccf1
parente4d58f5dcb7d7be45df8def31881ebfae99c75da
usb: usbtest: add pattern check on pipe in phase of unlink read

TEST 11 unlinks the URB read request for N times. When host and gadget
both initialize pattern 1 (mod 63) data series to do IN transfer, the
host side function should check the data buffer if it is as mod 63
series, because the data packet which host receivced will follow
pattern 1. So this patch adds this checking action.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usbtest.c