Re: [PATCH] usb: usbtest: bmAttributes would better be masked

2013-09-23 Thread Huang Rui
On Mon, Sep 23, 2013 at 10:32:30AM -0400, Alan Stern wrote: > On Mon, 23 Sep 2013, Huang Rui wrote: > > > 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 mask > > bmAttributes > > with USB_ENDPO

Re: [PATCH] usb: usbtest: bmAttributes would better be masked

2013-09-23 Thread Alan Stern
On Mon, 23 Sep 2013, Huang Rui wrote: > 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 mask bmAttributes > with USB_ENDPOINT_XFERTYPE_MASK to judge the transfter type later. > > Signed-off-by: Huan

[PATCH] usb: usbtest: bmAttributes would better be masked

2013-09-23 Thread Huang Rui
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 mask bmAttributes with USB_ENDPOINT_XFERTYPE_MASK to judge the transfter type later. Signed-off-by: Huang Rui --- drivers/usb/misc/usbtest.c | 3 ++- 1 fi