mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] usb: uhci-hcd: fix submit_int_msg() return value
@ 2017-03-22 21:37 Peter Mamonov
  0 siblings, 0 replies; only message in thread
From: Peter Mamonov @ 2017-03-22 21:37 UTC (permalink / raw)
  To: barebox; +Cc: Peter Mamonov

Signed-off-by: Peter Mamonov <pmamonov@gmail.com>
---
 drivers/usb/host/uhci-hcd.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c
index 04d167ee3..d32140026 100644
--- a/drivers/usb/host/uhci-hcd.c
+++ b/drivers/usb/host/uhci-hcd.c
@@ -579,6 +579,7 @@ static int submit_int_msg(struct usb_device *dev,
 	struct uhci_td *mytd;
 	void *_buffer;
 	dma_addr_t buffer_dma;
+	int ret = 0;
 
 	if (interval < 0 || interval >= 256)
 		return -1;
@@ -624,7 +625,7 @@ static int submit_int_msg(struct usb_device *dev,
 
 	usb_dotoggle(dev, usb_pipeendpoint(pipe), usb_pipeout(pipe));
 
-	handle_usb_interrupt(uhci);
+	ret = handle_usb_interrupt(uhci);
 
 	if (buffer) {
 		memcpy(buffer, _buffer, transfer_len);
@@ -633,7 +634,7 @@ static int submit_int_msg(struct usb_device *dev,
 
 	usb_check_int_chain(uhci);
 
-	return 0;
+	return ret;
 }
 /**********************************************************************
  * Low Level functions
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-22 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-22 21:37 [PATCH] usb: uhci-hcd: fix submit_int_msg() return value Peter Mamonov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox