Add a comment explaining the rationale behinde QT_TOKEN_IOC(req ==
NULL).

Signed-off-by: Andrey Smirnov <andrew.smir...@gmail.com>
---
 drivers/usb/host/ehci-hcd.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index f0d899e82..a6f497925 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -362,6 +362,15 @@ ehci_submit_async(struct usb_device *dev, unsigned long 
pipe, void *buffer,
 
                ret = ehci_prepare_qtd(ehci->dev,
                                       td, QT_TOKEN_DT(toggle) |
+                                      /*
+                                       * We only want this qTD to
+                                       * generate an interrupt if
+                                       * this is a BULK
+                                       * request. Otherwise, we'll
+                                       * rely on following status
+                                       * stage qTD's IOC to notify us
+                                       * that transfer is complete
+                                       */
                                       QT_TOKEN_IOC(req == NULL) |
                                       QT_TOKEN_PID(pid),
                                       buffer, length,
-- 
2.21.0


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

Reply via email to