public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] ush: ehci: initialize altnext pointers in QH
@ 2014-02-06 20:13 Stephen Warren
  2014-02-06 20:13 ` [U-Boot] [PATCH 2/2] usb: ehci: fully align interrupt QHs/QTDs Stephen Warren
  2014-02-07  2:53 ` [U-Boot] [PATCH 1/2] ush: ehci: initialize altnext pointers in QH Marek Vasut
  0 siblings, 2 replies; 12+ messages in thread
From: Stephen Warren @ 2014-02-06 20:13 UTC (permalink / raw)
  To: u-boot

From: Stephen Warren <swarren@nvidia.com>

A QH's overlay QTD altnext pointer should be explicitly marked invalid
so that the EHCI controller knows to look at the QTD next pointer. Update
the driver to do this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 drivers/usb/host/ehci-hcd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 17187caed482..7068b762d8a4 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -395,6 +395,7 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer,
 		QH_ENDPT2_UFCMASK(0) | QH_ENDPT2_UFSMASK(0);
 	qh->qh_endpt2 = cpu_to_hc32(endpt);
 	qh->qh_overlay.qt_next = cpu_to_hc32(QT_NEXT_TERMINATE);
+	qh->qh_overlay.qt_altnext = cpu_to_hc32(QT_NEXT_TERMINATE);
 
 	tdp = &qh->qh_overlay.qt_next;
 
@@ -1186,6 +1187,7 @@ create_int_queue(struct usb_device *dev, unsigned long pipe, int queuesize,
 			qh->qh_link = QH_LINK_TERMINATE;
 
 		qh->qh_overlay.qt_next = (uint32_t)td;
+		qh->qh_overlay.qt_altnext = QT_NEXT_TERMINATE;
 		qh->qh_endpt1 = (0 << 28) | /* No NAK reload (ehci 4.9) */
 			(usb_maxpacket(dev, pipe) << 16) | /* MPS */
 			(1 << 14) |
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-02-21  4:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06 20:13 [U-Boot] [PATCH 1/2] ush: ehci: initialize altnext pointers in QH Stephen Warren
2014-02-06 20:13 ` [U-Boot] [PATCH 2/2] usb: ehci: fully align interrupt QHs/QTDs Stephen Warren
2014-02-07  2:53   ` Marek Vasut
2014-02-07  6:48     ` Stephen Warren
2014-02-07 13:48       ` Marek Vasut
2014-02-07 16:24         ` Stephen Warren
2014-02-08 14:01           ` Marek Vasut
2014-02-21  4:17             ` Stephen Warren
2014-02-07  2:53 ` [U-Boot] [PATCH 1/2] ush: ehci: initialize altnext pointers in QH Marek Vasut
2014-02-07  6:47   ` Stephen Warren
2014-02-07 13:50     ` Marek Vasut
2014-02-07 16:44       ` Stephen Warren

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