Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp558509imm; Fri, 11 May 2018 02:48:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoaZw8roCfLeQiLwa6XiONXEhgsmg8Zz+ExIO07ZmbnTL1naOtSHQ6w8HsYPV3kXj9DOVUo X-Received: by 2002:a63:3756:: with SMTP id g22-v6mr1317247pgn.257.1526032120023; Fri, 11 May 2018 02:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526032119; cv=none; d=google.com; s=arc-20160816; b=CVrFUKj93Fj/g2wTmzN8FnWqTxDrt7/ofs+a+eECKj48jaBIrjg1C8oeA8R62KeTwL X5fC5qZd4Z2V+cmUJADXVh7k48/J9wzuVH9smWVfq6UZWYw70QVgNpfaKrIKUE9XKDy5 1U7NhU3sel21677uvIRgwqNwts/mOCKw+UvbhQiVpEa12HLwaUGRvS3hn7v9R8Lj0FK9 8SFPBDkpe+c277ndQnpNV3PRZApBskhgLSOASwtpNCEl/IzC6ubR1PQSzZUZGC5R/ro4 igm6TW252gnLaSHv4Ag9Xaj6DailCeoKtU/cN/4SstwcrWbrGTTDmhEtRejlqfc9C4L1 qWKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=6qLqly43vAF/coj2gtItS1f+vEQXyYmCzUaqwXgSUFA=; b=pfkp3q94EWIxYKRiHjvCr2gzIPUTbd0CDhgMcp+jpwR/mO7gIv4agWy00tN6eLOxGx yBbnjXXVUlAz0xTC3ah/SxF4vODut0E9mRF6SW7mVv5V02gKzLGoZvm8eAnBqmiKEtJA F1A75hcUGHAZjTwFEq9GovGTlF7TyQ7b79T7u2sFVQ5kvH4izrwizO4rN2HVy0VcuED/ Sz1osEh4UnGF5IZtW51OhfjmiaTJkBW28pRANsfXXxQkjowNeUpsxrEAoLQ89qSyEMdC ZrgmXRoRlki3IKNAMdvvH9CQxcoKhgWm4eujN4LNHz+TaYdOo+ij4UTMd4+XNp6pLeb0 l5nA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c65-v6si2965139pfa.99.2018.05.11.02.48.25; Fri, 11 May 2018 02:48:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752974AbeEKJr7 (ORCPT + 99 others); Fri, 11 May 2018 05:47:59 -0400 Received: from regular1.263xmail.com ([211.150.99.137]:43519 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752604AbeEKJr5 (ORCPT ); Fri, 11 May 2018 05:47:57 -0400 Received: from william.wu?rock-chips.com (unknown [192.168.167.157]) by regular1.263xmail.com (Postfix) with ESMTP id 71D7CDDE6; Fri, 11 May 2018 17:47:53 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id A73623F6; Fri, 11 May 2018 17:47:40 +0800 (CST) X-IP-DOMAINF: 1 X-RL-SENDER: william.wu@rock-chips.com X-FST-TO: hminas@synopsys.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: william.wu@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: wulf@rock-chips.com X-DNS-TYPE: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith ESMTP id 22140R3BKHA; Fri, 11 May 2018 17:47:51 +0800 (CST) From: William Wu To: hminas@synopsys.com, felipe.balbi@linux.intel.com, gregkh@linuxfoundation.org Cc: sergei.shtylyov@cogentembedded.com, heiko@sntech.de, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-rockchip@lists.infradead.org, frank.wang@rock-chips.com, huangtao@rock-chips.com, dianders@google.com, daniel.meng@rock-chips.com, John.Youn@synopsys.com, william.wu@rock-chips.com, wzz@rock-chips.com, zsq@rock-chips.com, Allen.Hsu@quantatw.com, StanTsui@AOPEN.com, Spruce.Wu@quantatw.com, Martin.Tsai@quantatw.com, Kevin.Shai@quantatw.com, Mon-Jer.Wu@quantatw.com, Claud.Chang@quantatw.com, San.Lin@quantatw.com, Ren.Kuo@quantatw.com, davidhtwang@aopen.com, fonglin@aopen.com, stevencheng@aopen.com, tomchen@aopen.com, donchang@aopen.com, milesschofield@aopen.com Subject: [PATCH v5 0/2] usb: dwc2: fix isoc split in transfer issue Date: Fri, 11 May 2018 17:46:30 +0800 Message-Id: <1526031992-16565-1-git-send-email-william.wu@rock-chips.com> X-Mailer: git-send-email 2.0.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fix dma unaligned problem and data lost problem for isoc split in transfer. Test on rk3288 platform, use an usb hs Hub (GL852G-12) and an usb fs audio device (Plantronics headset) to capture and playback. William Wu (2): usb: dwc2: alloc dma aligned buffer for isoc split in usb: dwc2: fix isoc split in transfer with no data drivers/usb/dwc2/core.h | 3 ++ drivers/usb/dwc2/hcd.c | 89 +++++++++++++++++++++++++++++++++++++++++--- drivers/usb/dwc2/hcd.h | 8 ++++ drivers/usb/dwc2/hcd_intr.c | 11 +++++- drivers/usb/dwc2/hcd_queue.c | 3 ++ 5 files changed, 107 insertions(+), 7 deletions(-) -- 2.0.0