]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: usb: Remove inactive children after a bus scan
authorSimon Glass <sjg@chromium.org>
Mon, 9 Nov 2015 06:48:00 +0000 (23:48 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:27:52 +0000 (20:27 -0700)
commiteae11bece69a277a25fefe54ea475ba02ede687e
tree1a15dfeb359a2329c0a1a7738b4cb7886e225ea8
parente8ea5e8c8568c8cbb752e524e8eb74f776f5e262
dm: usb: Remove inactive children after a bus scan

Each scan of the USB bus may return different results. Existing driver-model
devices are reused when found, but if a device no longer exists it will stay
around, de-activated, but bound.

Detect these devices and remove them after the scan completes.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/usb-uclass.c