Simon Glass 61ccd886e2 dm: usb: Clean up USB after each test
The USB subsystem has a few counters that need to be reset since they are
stored in static variables rather than driver-model data. An example is
usb_max_devs. Ultimately we should move this data into the USB uclass.

For now, make sure that USB is reset after each test, so that the counters
go back to zero.

Note: this is not a perfect solution: It a USB test fails it will exit
immediately and leave USB un-reset. The impact here is that it may cause
subsequence test failures in the same run.

Signed-off-by: Simon Glass <sjg@chromium.org>
2016-03-14 15:34:50 -06:00
..
2015-11-02 10:38:00 +09:00
2015-07-21 17:39:30 -06:00
2015-05-21 09:16:16 -04:00
2015-07-21 17:39:32 -06:00
2016-02-26 08:53:10 -07:00
2015-07-21 17:39:32 -06:00
2015-07-21 17:39:32 -06:00
2015-07-21 17:39:33 -06:00
2015-05-21 09:16:16 -04:00
2015-05-21 09:16:16 -04:00
2015-05-21 09:16:16 -04:00
2016-03-14 15:34:50 -06:00