]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: usb: Deal with USB keyboard persisting across tests
authorSimon Glass <sjg@chromium.org>
Sun, 1 Sep 2024 22:26:20 +0000 (16:26 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 18 Sep 2024 19:01:00 +0000 (13:01 -0600)
commitbc624321dc358b2d0fb1436533ece68e6422764c
treeb59d1ebbefeb9c343f6b407f72a789f944226106
parent010c44926386254ce7a6ec20bc75ffd5196be85c
dm: usb: Deal with USB keyboard persisting across tests

Clear any USB-keyboard devices before running a unit test, to avoid
using a stale udevice pointer in stdio. Add a long comment to explain
this situation and why this solution seems best, at least for now.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/console.c
common/usb_kbd.c
include/console.h
include/usb.h
test/test-main.c