commit | dc9a3912709e901eb8e513492fdad9743535b86f | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Sun Jan 11 20:34:49 2015 +0100 |
committer | Marek Vasut <marex@denx.de> | Sun Jan 18 12:31:36 2015 +0100 |
tree | cb0edca10e828d872ebc5730f8a1896b75a0f819 | |
parent | 28a15ef7fd7d97f0634440866c6b7baa7708b5eb [diff] |
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>