Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303664
b: refs/heads/master
c: 6a23ccd
h: refs/heads/master
v: v3
  • Loading branch information
Paul Zimmerman authored and Greg Kroah-Hartman committed May 1, 2012
1 parent ca17a6c commit c18a105
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73108aa90cbfc663649885a06fe5c1235307de1c
refs/heads/master: 6a23ccd216b6a8ba2c67a9f9d8969b4431ad2920
17 changes: 12 additions & 5 deletions trunk/drivers/usb/misc/usbtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,10 @@ test_ctrl_queue(struct usbtest_dev *dev, struct usbtest_param *param)
case 13: /* short read, resembling case 10 */
req.wValue = cpu_to_le16((USB_DT_CONFIG << 8) | 0);
/* last data packet "should" be DATA1, not DATA0 */
len = 1024 - udev->descriptor.bMaxPacketSize0;
if (udev->speed == USB_SPEED_SUPER)
len = 1024 - 512;
else
len = 1024 - udev->descriptor.bMaxPacketSize0;
expected = -EREMOTEIO;
break;
case 14: /* short read; try to fill the last packet */
Expand Down Expand Up @@ -1387,11 +1390,15 @@ static int test_halt(struct usbtest_dev *tdev, int ep, struct urb *urb)

static int halt_simple(struct usbtest_dev *dev)
{
int ep;
int retval = 0;
struct urb *urb;
int ep;
int retval = 0;
struct urb *urb;
struct usb_device *udev = testdev_to_usbdev(dev);

urb = simple_alloc_urb(testdev_to_usbdev(dev), 0, 512);
if (udev->speed == USB_SPEED_SUPER)
urb = simple_alloc_urb(udev, 0, 1024);
else
urb = simple_alloc_urb(udev, 0, 512);
if (urb == NULL)
return -ENOMEM;

Expand Down

0 comments on commit c18a105

Please sign in to comment.