]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: usb: Complete the splitting up of usb_new_device()
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:22:07 +0000 (12:22 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:54 +0000 (21:47 +0200)
commita2e74f1880d013db9ff2b29fb685a6c2ac1dfeb0
tree3c367f501ba843ea8294eb8ec05c98fb5a5edd42
parente0385c6d24f759135757daf0062611c61b4fbced
dm: usb: Complete the splitting up of usb_new_device()

This function now calls usb_setup_device() to set up the device and
usb_hub_probe() to check if it is a hub. The XHCI special case is now a
parameter to usb_setup_device(). The latter will be used by the USB uclass
when it is added, since it does not rely on any CONFIGs or legacy data
structures.

Signed-off-by: Simon Glass <sjg@chromium.org>
Bug-fixes for descriptor reading and usb_new_device() return value
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Tested-by: Tom Rini <trini@konsulko.com>
common/usb.c