Re: [PATCH 1/4] usb: usbtest: support bos descriptor test for usb 3.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 21, 2013 at 11:50:39AM -0400, Alan Stern wrote:
> On Mon, 21 Oct 2013, Huang Rui wrote:
> 
> > In Test 9 of usbtest module, it is used for performing chapter 9 tests N
> > times. This patch adds to support getting bos descriptor test scenario for
> > USB 3.0.
> > 
> > Signed-off-by: Huang Rui <ray.huang@xxxxxxx>
> > ---
> >  drivers/usb/misc/usbtest.c | 13 +++++++++++++
> >  1 file changed, 13 insertions(+)
> > 
> > diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c
> > index 3e91d3e9..a22f0d0 100644
> > --- a/drivers/usb/misc/usbtest.c
> > +++ b/drivers/usb/misc/usbtest.c
> > @@ -689,6 +689,19 @@ static int ch9_postconfig(struct usbtest_dev *dev)
> >  		return (retval < 0) ? retval : -EDOM;
> >  	}
> >  
> > +	/*
> > +	 * there's always [9.4.3] a bos device descriptor [9.6.2] in USB
> > +	 * 3.0 spec
> > +	 */
> > +	if (le16_to_cpu(udev->descriptor.bcdUSB) == 0x0300) {
> 
> When USB 3.1 is announced, won't you want to test those devices too?  
> Shouldn't the test be >= 0x0300?

It was already announced:

http://www.usb.org/developers/events/USB_3_1_DD/
http://www.usb.org/developers/ssusb/
http://en.wikipedia.org/wiki/USB#USB_3.1

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux