Skip to content
Snippets Groups Projects
Commit dc9a3912 authored by Hans de Goede's avatar Hans de Goede Committed by Marek Vasut
Browse files

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: default avatarHans de Goede <hdegoede@redhat.com>
parent 28a15ef7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment