mbed-os/TESTS/usb_device/basic
Filip Jagodzinski 4a4dcdb5b8 Tests: USB: Use astyle to format the test class 2019-02-22 10:53:23 -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 Tests: USB: Use astyle to format the test class 2019-02-22 10:53:23 -06:00
USBEndpointTester.h Tests: USB: Use astyle to format the test class 2019-02-22 10:53:23 -06:00
USBTester.cpp Remove endpoint parameter from USB callbacks 2019-02-22 10:53:18 -06:00
USBTester.h Remove endpoint parameter from USB callbacks 2019-02-22 10:53:18 -06:00
main.cpp Tests: USB: Check ep buffer is released by abort 2019-02-22 10:53:20 -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.