summaryrefslogtreecommitdiffstats
path: root/common/cmd_irq.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 12:22:05 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:21 -0600
commit128fcac087664b63757bc2bb2a9fd943bd2b797d (patch)
treef8e1227b127f698837110ed53cdfec6a1686268c /common/cmd_irq.c
parent862e75c0dbb578ec2e1f374794007048f3dd29c6 (diff)
downloadtalos-obmc-uboot-128fcac087664b63757bc2bb2a9fd943bd2b797d.tar.gz
talos-obmc-uboot-128fcac087664b63757bc2bb2a9fd943bd2b797d.zip
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 'common/cmd_irq.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud