Received: by 10.192.165.148 with SMTP id m20csp3799416imm; Mon, 7 May 2018 20:10:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrCQwQQNy23NcvjKbca52xkapV2MMTVta8aHUr3ZKaUQGJ0NTyObRwEJ6cM85y+T6lXZyQG X-Received: by 2002:a17:902:4483:: with SMTP id l3-v6mr40000605pld.282.1525749049382; Mon, 07 May 2018 20:10:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525749049; cv=none; d=google.com; s=arc-20160816; b=dDzSOYnj9XwA8Q2OYX06YZhW73IJ/LbOihnP09r/IBbIZ3+ETzMNHnI3dd9LCkLJ8g aCaFv90in8EVehjdb57ZbbNzPHmOaX5FSygxx1NGJOmmi2Hvcl36dj9x4KipyGabV/tH gxQERbFsUDpmkDtN94hry9i2az8IrQRrN5DHc5j5K8v9miOzXVwtRE5h+n4fualtsk2u xEYB7j1QldxaWujPSUjKV0m1oYZfsKJz13VG6YtfOmP6ElEnEtGNMD1bzRoNzKZ/ktXF 1bIfI5cZyEHcTgDqb7mCayg7x/QECiVhtzul2QhL39t72WyaEhGnsU0WfdhtFbw6vE16 SENw== 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=S3dPeeLDbPlA61KfAL6q+gfHG7bl6BB47yi12kuR9ZE=; b=lf2+ibfhSMtL1yn8IFJxcNgU2i4nn9r8FK+2f18Y0X5q2EXTt4zHTHj0MKAQadgyos kWhLRYgKO7NSsh6CqrZ4JNrd5M4xFpHXHnezE8aVcX2eIQU93ZC+sUI2aVxl/VVpSa8Q m8RHCX2zlNgyftD8mXcVbwvYN7AYYhTZ69SiNqOyB69nTHtlkH3dO9H9Cqc1XpL9CuTw ImJn99y9TRXiXLA1X22xJZE7ZZL7lCV9UPCP5h0+MGa5kqY6qCrw4ED+5BJdFW/zJWnt Wpnq4B1f2ON9rm65xXrfCHtT1G8IYEmOtkKH6dTmb3DcBy/dHiY2IXJqBJfK/PAUsfvZ +Ikw== 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 q66si747191pfi.235.2018.05.07.20.10.35; Mon, 07 May 2018 20:10:49 -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 S1754084AbeEHDIw (ORCPT + 99 others); Mon, 7 May 2018 23:08:52 -0400 Received: from regular1.263xmail.com ([211.150.99.135]:44725 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753896AbeEHDIu (ORCPT ); Mon, 7 May 2018 23:08:50 -0400 Received: from william.wu?rock-chips.com (unknown [192.168.167.206]) by regular1.263xmail.com (Postfix) with ESMTP id 75DBA1DEFB; Tue, 8 May 2018 11:08:45 +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 F1F7B3B6; Tue, 8 May 2018 11:08: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: <0095e97bf258a81e73bf4537b2056f7a> 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 8796D1SD8R; Tue, 08 May 2018 11:08:44 +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 v3 0/2] usb: dwc2: fix isoc split in transfer issue Date: Tue, 8 May 2018 11:07:24 +0800 Message-Id: <1525748846-7767-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 | 85 ++++++++++++++++++++++++++++++++++++++++++-- drivers/usb/dwc2/hcd.h | 10 ++++++ drivers/usb/dwc2/hcd_intr.c | 11 ++++-- drivers/usb/dwc2/hcd_queue.c | 3 ++ 5 files changed, 107 insertions(+), 5 deletions(-) -- 2.0.0