Re: [PATCH 1/2] usb: usbtest: update bos test coverage to usb 2.1 device

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

 



On Wed, Nov 13, 2013 at 10:35:13PM +0800, Huang Rui wrote:
> The commit "usb: usbtest: support bos descriptor test for usb 3.0"
> introduced a test for bos descriptor. And USB 2.1 device also can be
> checked. So this patch extends the test coverage to support USB 2.1 device.
> 
> Reported-by: Sarah Sharp <sarah.a.sharp@xxxxxxxxxxxxxxx>
> Signed-off-by: Huang Rui <ray.huang@xxxxxxx>

Acked-by: Felipe Balbi <balbi@xxxxxx>

> ---
>  drivers/usb/misc/usbtest.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c
> index 69605f1..5ef202b 100644
> --- a/drivers/usb/misc/usbtest.c
> +++ b/drivers/usb/misc/usbtest.c
> @@ -807,7 +807,7 @@ static int ch9_postconfig(struct usbtest_dev *dev)
>  	 * 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) {
> +	if (le16_to_cpu(udev->descriptor.bcdUSB) >= 0x0210) {
>  		struct usb_bos_descriptor *bos = NULL;
>  		struct usb_dev_cap_header *header = NULL;
>  		unsigned total, num, length;
> -- 
> 1.7.11.7
> 
> 

-- 
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