musb-new: Use time based timeouts rather then cpu-cycles based timeouts
authorHans de Goede <hdegoede@redhat.com>
Sun, 11 Jan 2015 19:34:49 +0000 (20:34 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 18 Jan 2015 11:31:36 +0000 (12:31 +0100)
commitdc9a3912709e901eb8e513492fdad9743535b86f
treecb0edca10e828d872ebc5730f8a1896b75a0f819
parent28a15ef7fd7d97f0634440866c6b7baa7708b5eb
musb-new: Use time based timeouts rather then cpu-cycles based timeouts

CPU cycle based timeouts are no good, because how long they use depends on
CPU speed. Instead use time based timeouts, and wait one second for a
device connection to show up (per the USB spec), and wait USB_TIMEOUT_MS
for various urbs to complete.

This fixes "usb start" taking for ever when no device is plugged into the
otg port.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/usb/musb-new/musb_uboot.c