Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161076AbbKFJiK (ORCPT ); Fri, 6 Nov 2015 04:38:10 -0500 Received: from lucky1.263xmail.com ([211.157.147.130]:45165 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033114AbbKFJiH (ORCPT ); Fri, 6 Nov 2015 04:38:07 -0500 X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 0 X-RL-SENDER: lyz@rock-chips.com X-FST-TO: john.youn@synopsys.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: lyz@rock-chips.com X-UNIQUE-TAG: <71f4b96b6d125cfe73425f4775747ee0> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 From: Yunzhi Li To: John.Youn@synopsys.com, dianders@chromium.org, jwerner@google.com, dinguyen@opensource.altera.com, yousaf.kaukab@intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, wulf@rock-chips.com, kever.yang@rock-chips.com, caesar.wang@rock-chips.com, huangtao@rock-chips.com Cc: rockchip-discuss@chromium.org, Yunzhi Li Subject: [RFC] usb: dwc2: hcd: fix split schedule issue Date: Fri, 6 Nov 2015 17:36:52 +0800 Message-Id: <1446802612-5828-1-git-send-email-lyz@rock-chips.com> X-Mailer: git-send-email 2.0.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1009 Lines: 32 Fix dwc2 split schedule sequence issue. Not schedule a SSPLIT_IN packet between SSPLIT-begin and SSPLIT-end. Signed-off-by: Yunzhi Li --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/