commit | 8de4dedaae39a498fff08bd5f4a948b78e79d3b8 | [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 | 9c4f11d1d0da53e57caa93f890fc158c4c5f952b [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>