diff options
author | Stephen Warren <swarren@nvidia.com> | 2016-01-26 10:59:43 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-28 21:01:23 -0700 |
commit | be1df82656b15663dee9216a320dc177c7d9c6c4 (patch) | |
tree | 4d351e25e99d0b976aba9262ded665a102a9303f /cmd/pci.c | |
parent | dd8204de157e10c080aa2cdc0f24bcb2e4ac73dd (diff) | |
download | u-boot-be1df82656b15663dee9216a320dc177c7d9c6c4.tar.gz u-boot-be1df82656b15663dee9216a320dc177c7d9c6c4.tar.bz2 u-boot-be1df82656b15663dee9216a320dc177c7d9c6c4.zip |
test/py: dfu: error out if USB device already exists
The DFU test requests U-Boot configure its USB controller in device mode,
then waits for the host machine to enumerate the USB device and create a
device node for it. However, this wait can be fooled if the USB device
node already exists before the test starts, e.g. if some previous software
stack already configured the USB controller into device mode and never
de-configured it. This "previous software stack" could even be another
test/py test, if U-Boot's own USB teardown does not operate correctly. If
this happens, dfu-util may be run before U-Boot is ready to serve DFU
commands, which may cause false test failures.
Enhance the dfu test to fail if the device node exists before it is
expected to.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/pci.c')
0 files changed, 0 insertions, 0 deletions