diff options
author | Michal Suchanek <msuchanek@suse.de> | 2019-08-18 10:55:27 +0200 |
---|---|---|
committer | marex <marex@chi.lan> | 2019-09-11 10:11:29 +0200 |
commit | 3437121c037f502a3b0faaec97059777034a1ead (patch) | |
tree | 37400fd4fb2ce3b28b7f82f0530dc4d7efad1307 /drivers/usb/host/usb-sandbox.c | |
parent | 50dce8fbf0c8b6f55e32c8d2d08ccf6e58168027 (diff) | |
download | u-boot-3437121c037f502a3b0faaec97059777034a1ead.tar.gz |
usb: Add nonblock argument to submit_int_msg
This will be used to implement non-blocking keyboard polling in case of
errors.
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Diffstat (limited to 'drivers/usb/host/usb-sandbox.c')
-rw-r--r-- | drivers/usb/host/usb-sandbox.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/usb-sandbox.c b/drivers/usb/host/usb-sandbox.c index ff9d5b7231..28ee4b093b 100644 --- a/drivers/usb/host/usb-sandbox.c +++ b/drivers/usb/host/usb-sandbox.c @@ -99,7 +99,7 @@ static int sandbox_submit_bulk(struct udevice *bus, struct usb_device *udev, static int sandbox_submit_int(struct udevice *bus, struct usb_device *udev, unsigned long pipe, void *buffer, int length, - int interval) + int interval, bool nonblock) { struct udevice *emul; int ret; @@ -110,7 +110,8 @@ static int sandbox_submit_int(struct udevice *bus, struct usb_device *udev, usbmon_trace(bus, pipe, NULL, emul); if (ret) return ret; - ret = usb_emul_int(emul, udev, pipe, buffer, length, interval); + ret = usb_emul_int(emul, udev, pipe, buffer, length, interval, + nonblock); return ret; } |