spl: net: dm: usb: bind the gadget before attempting to load the image
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Tue, 4 Dec 2018 10:30:48 +0000 (11:30 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 14 Dec 2018 16:59:09 +0000 (17:59 +0100)
commit0f46fb58a2355edf631c19797ad5c1f5f9403236
treeac14a52b2d78f78756457b899e32d5116b386232
parent9a1dde58f5ed4a929971b37b7436040947ec732a
spl: net: dm: usb: bind the gadget before attempting to load the image

If DM_USB_GADGET is used, the usb ethernet gadget driver must be bound to a
controller before the image can be downloaded over the network.
In u-boot this can be done with the bind command. In SPL it must be done
programmatically.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/spl_net.c