From patchwork Wed Jan 13 11:20:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Saenz Julienne X-Patchwork-Id: 362585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED48AC433E6 for ; Wed, 13 Jan 2021 11:22:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A60CF2339F for ; Wed, 13 Jan 2021 11:22:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728179AbhAMLWK (ORCPT ); Wed, 13 Jan 2021 06:22:10 -0500 Received: from mx2.suse.de ([195.135.220.15]:40966 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726010AbhAMLVq (ORCPT ); Wed, 13 Jan 2021 06:21:46 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 408ADAEE0; Wed, 13 Jan 2021 11:21:04 +0000 (UTC) From: Nicolas Saenz Julienne To: Paul Zimmerman , Felipe Balbi , Greg Kroah-Hartman , Nick Hudson , linux-usb@vger.kernel.org Cc: linux@roeck-us.net, dianders@chromium.org, hminas@synopsys.com, Nicolas Saenz Julienne , linux-kernel@vger.kernel.org Subject: [PATCH 0/3] usb: dwc2: Fixes and improvements Date: Wed, 13 Jan 2021 12:20:48 +0100 Message-Id: <20210113112052.17063-1-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org I'm picking up this series by Guenter Roeck as he stated he has no time for it ATM. It was found to solve some unaligned DMA access issues on Raspberry Pi 3. You can find the original discussion here: https://lore.kernel.org/linux-usb/20200226210414.28133-1-linux@roeck-us.net/ I removed the fist patch from the original series as it turned out to be contententious and needs more in-depth testing. Following is the edited origin series description. Note that extra testing was performed on RPi3: "This series addresses the following problems: - Fix receive transfers with 0 byte transfer length - Abort transactions after unknown receive errors if the receive buffer is full - Reduce "trimming xfer length" logging noise The problems fixed with this series were observed when connecting a DM9600 Ethernet adapter to Veyron Chromebooks such as the ASUS Chromebook C201PA. The series was tested extensively with this and other adapters. The observed problems are also reported when tethering various phones, so test coverage with such phones would be very appreciated." --- Guenter Roeck (3): usb: dwc2: Do not update data length if it is 0 on inbound transfers usb: dwc2: Abort transaction after errors with unknown reason usb: dwc2: Make "trimming xfer length" a debug message drivers/usb/dwc2/hcd.c | 15 ++++++++------- drivers/usb/dwc2/hcd_intr.c | 14 +++++++++++++- 2 files changed, 21 insertions(+), 8 deletions(-)