Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp645278pxb; Thu, 21 Apr 2022 07:28:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDOB2uxSeZZVZ2yyWNo7oQ2TgrfVpgqEuK9bCVsZ2L7L8yJK+nXcwOSSop2Y4QzrX+ssK8 X-Received: by 2002:aa7:cc02:0:b0:411:487e:36fe with SMTP id q2-20020aa7cc02000000b00411487e36femr29408689edt.338.1650551338852; Thu, 21 Apr 2022 07:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650551338; cv=none; d=google.com; s=arc-20160816; b=dksG0IA0ne360kjtUAvwiP5EXR6gJJ1diXzQdWupdYRY3RWmzUt/x7xpwGBXyywDjA xt1q02JfTdejYuLyEquzQIP5YA35fm043pyyImwtk98plEEDoUDIFyxq39YkM2La8gAW yD+GMJyrylmLWhLWULvUrUzO4Hmo6RP3BAr/Mh1ttf6HD7eky5wBNUpPjlH1zksnjysZ HvBP2a+aucSG40HM23XdxbEs1YrNdVEgNxB8YRdF45UCzx6uWaY1MO4arWCMkqGFk3Dy hz4RKZM+L/DASAhqvaPBHZ3pQHh+RX4Otc59DHpt6GDfb7V+VqB0Iyj8ncSo8TMimRV0 hKyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qf/GqMIhOc20zwq4tDPKXdjkdmAjGQtex2/gNLPfCGI=; b=ODvWYgc22WZNiyRald2ld+k3YogPtlc4b/RlMmn+y8sSelPRInfEVpBsDqhLff73Pu AU1uXqmpLJTYLT8KhgxZaaDCy8UT/OG+GOaPbFHLnbtgwS7MmrcJmnxCnipEWR+AvU9y 1v0M3uazLRjjYIYs1Goj6bGJaAVEMyE5sjuwewlAKWcqhsZeM58FuYdbUR+CXDy/sbwb 9USQu0oPr49jQAOHnLOnPS55wTCleKVYcrq8xF/groztyFg9xbN2ovQwTH0h95oUK6F8 6KLfjKvVQopnBTUjc0NDSKwM8tY9O2gvssN6V3Mgwox2OsN/1ucEbOly1JtyNUVDs82S uFUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=YdBFr2su; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx2-20020a170907774200b006e86937554dsi4233398ejc.3.2022.04.21.07.28.26; Thu, 21 Apr 2022 07:28:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=YdBFr2su; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359609AbiDTHLO (ORCPT + 99 others); Wed, 20 Apr 2022 03:11:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240579AbiDTHLM (ORCPT ); Wed, 20 Apr 2022 03:11:12 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ADCB2E0A9; Wed, 20 Apr 2022 00:08:27 -0700 (PDT) Received: from pyrite.rasen.tech (softbank114048062035.bbtec.net [114.48.62.35]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3DE1C25B; Wed, 20 Apr 2022 09:08:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1650438506; bh=660hDm8g+tKmivxQ/wa40tMJVujuie8GXITDeJZR+ME=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YdBFr2suV33dZeLTB7eG9PU6XRB6glWghOkrC8PjAWvW/L+8Emh4them1QqUqg2+Z FngtSR1JPY7Y5Si4yMfMOuULk3odTAOtrd4kg9EFe69WzSMedE8/LoGgMkhi3nz7Js x3nH0V1BvIC++zGpN+RVwaY0M7HYeVt4WYjWwPk4= Date: Wed, 20 Apr 2022 16:08:17 +0900 From: paul.elder@ideasonboard.com To: "Haifeng" Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH]usb: gadget: musb: Fix the DMA transfer error for Isochronous transfers Message-ID: <20220420070817.GC3237525@pyrite.rasen.tech> References: <001401d85247$2c66cd40$853467c0$@timesintelli.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001401d85247$2c66cd40$853467c0$@timesintelli.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Haifeng, On Sun, Apr 17, 2022 at 06:37:44PM +0800, Haifeng wrote: > For Isochronous transfer mode, the ISO bit should be kept in CSR. > Otherwise, the DMA transfer will be terminated unexpected since > the ISO bit is missed once the last packet is a short packet. > > Signed-off-by: Haifeng Li Looks good to me. Reviewed-by: Paul Elder > --- > drivers/usb/musb/musb_gadget.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c > index 51274b87f46c..b99faf627dce 100644 > --- a/drivers/usb/musb/musb_gadget.c > +++ b/drivers/usb/musb/musb_gadget.c > @@ -482,7 +482,7 @@ void musb_g_tx(struct musb *musb, u8 epnum) > if (csr & MUSB_TXCSR_TXPKTRDY) > return; > > - musb_writew(epio, MUSB_TXCSR, MUSB_TXCSR_MODE > + musb_writew(epio, MUSB_TXCSR, csr | MUSB_TXCSR_MODE > | MUSB_TXCSR_TXPKTRDY); > request->zero = 0; > } > -- > 2.17.1 >