]> git.baikalelectronics.ru Git - kernel.git/commit
usb: usbtest: bmAttributes would better be masked
authorHuang Rui <ray.huang@amd.com>
Mon, 23 Sep 2013 16:03:43 +0000 (00:03 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 1 Oct 2013 14:39:07 +0000 (09:39 -0500)
commit4d56928d7c1d45696bafaa3c94dec47569eb00fb
tree9950d4d917869b4757409320f50229657a7131b8
parent671045537fd1fe3130bb03157c08c7f60538d6ba
usb: usbtest: bmAttributes would better be masked

When transfer type is isochronous, the other bits (bits 5..2) of
bmAttributes in endpoint descriptor might not be set zero. So it's better
to use usb_endpoint_type routine to mask bmAttributes with
USB_ENDPOINT_XFERTYPE_MASK to judge the transfter type later.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/misc/usbtest.c