mbed-os/TESTS/usb_device/basic
Russ Butler 9f116d9f33 Applied more astyle fixes 2019-02-22 10:53:24 -06:00
..
zadig_conf Tests: USB: Add device config files for Zadig 2019-02-22 10:53:18 -06:00
README.md Tests: USB: Add a README for Linux users 2019-02-22 10:53:22 -06:00
USBEndpointTester.cpp Remove inclusion of mbed.h from USB 2019-02-22 10:53:23 -06:00
USBEndpointTester.h Remove inclusion of mbed.h from USB 2019-02-22 10:53:23 -06:00
USBTester.cpp Applied suggested astyle fixes 2019-02-22 10:53:23 -06:00
USBTester.h Applied suggested astyle fixes 2019-02-22 10:53:23 -06:00
main.cpp Applied more astyle fixes 2019-02-22 10:53:24 -06:00

README.md

Testing the USB device data toggle reset with a Linux host

When you run the tests-usb_device-basic test suite on a Linux machine, please make sure that at least one of the following prerequisites are met:

  • using the Linux kernel 4.17 or newer,
  • using the eHCI USB driver instead of xHCI.

Implementations of the xHCI driver prior to version 4.17 of the Linux kernel did not have the functionality necessary to test "endpoint test data toggle reset". Even though the data toggle is correctly reset on the device side, the host side will not be synchronized and the test will falsely fail.

Further reading:

  1. the Linux kernel patch adding missing xHCI behavior,
  2. LKML discussion explaining the details of this issue.