]> git.sur5r.net Git - u-boot/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)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:21 +0000 (11:11 -0600)
commit0ed27905ceb82d5dc9aafd249ccbb8ff6081c7ca
tree1035123f0b9effff8d5ff5ff1aec6f44971bdabb
parent91398f985460bb8ff47db2b406a5fc7fbc31ab9f
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