diff options
author | Simon Glass <sjg@chromium.org> | 2015-03-25 18:22:05 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 17:11:21 (GMT) |
commit | 128fcac087664b63757bc2bb2a9fd943bd2b797d (patch) | |
tree | f8e1227b127f698837110ed53cdfec6a1686268c /configs/paz00_defconfig | |
parent | 862e75c0dbb578ec2e1f374794007048f3dd29c6 (diff) | |
download | u-boot-128fcac087664b63757bc2bb2a9fd943bd2b797d.tar.xz |
dm: usb: Move descriptor setup code into its own function
usb_new_device() is far too long and does far too much. As a first step, move
the code that does initial setup and reads a descriptor into its own function
called usb_setup_descriptor().
For XHCI the init order is different - we set up the device but don't
actually read the descriptor until after we set an address. Support this
option as a parameter to usb_setup_descriptor().
Avoid changing this torturous code more than necessary to make it easy to
review.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'configs/paz00_defconfig')
0 files changed, 0 insertions, 0 deletions