summaryrefslogtreecommitdiff
path: root/common/usb.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-09-14 19:56:09 -0400
committerTom Rini <trini@konsulko.com>2019-09-14 19:56:09 -0400
commit6f4001315af2f818bfc656df81e138d1434d1fc2 (patch)
treed5ec9d0a2c49bfa7e6dc144faa59f45588480742 /common/usb.c
parent23b93e33adde0a8313388eda7c78d1d0786e3c92 (diff)
parente3e5825d0143c2b24583d256ef111ae9344382a2 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-usb
- Assorted bugfixes
Diffstat (limited to 'common/usb.c')
-rw-r--r--common/usb.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/common/usb.c b/common/usb.c
index b70f614d244..d9bcb5a57e8 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -192,12 +192,15 @@ int usb_disable_asynch(int disable)
*/
/*
- * submits an Interrupt Message
+ * submits an Interrupt Message. Some drivers may implement non-blocking
+ * polling: when non-block is true and the device is not responding return
+ * -EAGAIN instead of waiting for device to respond.
*/
-int usb_submit_int_msg(struct usb_device *dev, unsigned long pipe,
- void *buffer, int transfer_len, int interval)
+int usb_int_msg(struct usb_device *dev, unsigned long pipe,
+ void *buffer, int transfer_len, int interval, bool nonblock)
{
- return submit_int_msg(dev, pipe, buffer, transfer_len, interval);
+ return submit_int_msg(dev, pipe, buffer, transfer_len, interval,
+ nonblock);
}
/*