[PATCH v2 0/7] usb: usbtest misc changes

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

 



Changes for v2:

- Add le16_to_cpu to read descriptor value [Patch 5/7]
- Add MAX_SGLEN (128 currently) for maximum sglen [Patch 1/7]
- Using local variable to save max macket size value, in case
  some compiler create more code for dereferences all the pointers
  at every iteration. [Patch 5/7]

Hi all,

In this series, we do some improvements for usb test, including
usbtest at host side, sourcesink at gadget side, and testusb
app running at host side.

The main changes:
- Format the data pattern according to max packet size, then, the
host and gadget doesn't need to agree on the transfer size when
check data correctness.
- change the default value for length from 512 to 1024 at testusb app.
- Unlimit the length of sglen for iso transfer.

With these changes, now we can run the test (usbtest/g_zero) with
default parameters for all kinds of tests (interrupt transfer has not
tested due to lack of its support at g_zero).

For doing data compare test:
At host side:
modprobe usbtest alt=1 pattern
At gadget side:
modprobe g_zero pattern=1

Then run testapp at host side:
./testapp -a

Alan Stern (1):
  usb: misc: usbtest: format the data pattern according to max packet
    size

Peter Chen (6):
  usb: misc: usbtest: allocate size of urb array according to user
    parameter
  usb: misc: usbtest: delete useless memset for urbs array
  usb: misc: usbtest: using the same data format among
    write/compare/output
  usb: gadget: f_sourcesink: format data pattern according to max packet
    size
  tools: usb: testusb: change the help text
  tools: usb: testusb: change the default value for length from 512 to
    1024

 drivers/usb/gadget/function/f_sourcesink.c |  6 ++--
 drivers/usb/misc/usbtest.c                 | 51 ++++++++++++++++++++----------
 tools/usb/testusb.c                        | 10 +++---
 3 files changed, 43 insertions(+), 24 deletions(-)

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux