All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] usb: dwc2: hcd: fix split schedule issue
@ 2015-11-06  9:36 Yunzhi Li
  2015-11-06 10:04 ` Yunzhi Li
  2015-11-06 23:56 ` Doug Anderson
  0 siblings, 2 replies; 14+ messages in thread
From: Yunzhi Li @ 2015-11-06  9:36 UTC (permalink / raw)
  To: John.Youn, dianders, jwerner, dinguyen, yousaf.kaukab, linux-usb,
	linux-kernel, wulf, kever.yang, caesar.wang, huangtao
  Cc: rockchip-discuss, Yunzhi Li

Fix dwc2 split schedule sequence issue. Not schedule a SSPLIT_IN
packet between SSPLIT-begin and SSPLIT-end.

Signed-off-by: Yunzhi Li <lyz@rock-chips.com>
---
 drivers/usb/dwc2/hcd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index e79baf7..a32ed01 100644
--- a/drivers/usb/dwc2/hcd.c
+++ b/drivers/usb/dwc2/hcd.c
@@ -1122,6 +1122,10 @@ static void dwc2_process_periodic_channels(struct dwc2_hsotg *hsotg)
 			break;
 		}
 
+		if (qh->channel->xact_pos == DWC2_HCSPLT_XACTPOS_BEGIN ||
+		    qh->channel->xact_pos == DWC2_HCSPLT_XACTPOS_MID)
+			break;
+
 		/*
 		 * In Slave mode, stay on the current transfer until there is
 		 * nothing more to do or the high-bandwidth request count is
-- 
2.0.0



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

end of thread, other threads:[~2015-11-17  3:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-06  9:36 [RFC] usb: dwc2: hcd: fix split schedule issue Yunzhi Li
2015-11-06 10:04 ` Yunzhi Li
2015-11-12  0:22   ` Doug Anderson
2015-11-12  4:29     ` John Youn
2015-11-12  4:46       ` Doug Anderson
2015-11-13  5:05         ` John Youn
2015-11-14  0:33           ` Doug Anderson
2015-11-14 17:32             ` Alan Stern
2015-11-16 20:46             ` Julius Werner
2015-11-12  9:42       ` Yunzhi Li
2015-11-17  3:56       ` Doug Anderson
2015-11-06 23:56 ` Doug Anderson
2015-11-09  9:57   ` Yunzhi Li
2015-11-09 14:37     ` Doug Anderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.