[U-Boot] [PATCH v2 29/32] dm: usb: Clean up USB after each test
Simon Glass
sjg at chromium.org
Sun Mar 13 02:53:46 CET 2016
On 29 February 2016 at 15:26, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
> Changes in v2: None
>
> test/dm/usb.c | 2 ++
> 1 file changed, 2 insertions(+)
Applied to u-boot-dm/next.
More information about the U-Boot
mailing list