Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp83721ybf; Thu, 27 Feb 2020 16:33:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxSx0dzg+k//577CGUBWCLh6Sm9lGwpTmEtk6rbcq1hBiGTnE4lIHLZ8picJ0kwnxz8Vw2g X-Received: by 2002:a05:6830:12d5:: with SMTP id a21mr1290054otq.296.1582850021353; Thu, 27 Feb 2020 16:33:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582850021; cv=none; d=google.com; s=arc-20160816; b=sTDaTO93X324OZnVhDowJinfetkPsInpfvAFMgXxmqXKQ8FX8p9lNpwCBKAHIeHaIU lt/DBqAIJiaCct57tQaAKaJoCFhyhldcdOwhP6JZ9QbjDOt5grldoTA9ztup2Xjcx11j PF7L0GMY3xSHUxtcMcrOZZQIvGxi8jZby8A4S/wjYsKWcelJzLKaDGq19k5cHRMypkaj i7uBbUAXkpVwnTGLrums6yg+F5uV0T49q0TuZI/O71nMJ2hvFlLp+m6BK05H/PSG/i7e 6cy9boNp+mC4FPZ3kF9015X44EW0FEcmArbLgYdB/GDOOby0uUYzZKfC/oDbK2d8XJSm cmFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=s30J624/VP3HrEoGo1r3bYubq6LVO8D9HM/6PcACQO0=; b=qw1wwyDzwCh67MRoRBdg8tyLaMLXwCtdMNzSxPDVET0C/D9IsQj/gRSX6F98SM1AG5 UBlWFHal93lpAGTSj69NmvCagzO/wCLQHXUob8/JXqzOpDiEYwZSXLzz2AG6Y7gy2sG1 kQNaKKp19/guQysm229nli2QZleMnKQ3YGseIgKSneWDZZD8feumrkgZQCmZWYOFktxH EkksCf6HpF+9uyheN7dFtOdtn+AcTEQY1gK6bpjaow0Upa5fCy5YVYoo0Ightoh4V0RI rhEsdcsje3bBK8RL2hvclMunizZiECK2mVjS98ASwj70iujV26PNUVoeim9fb1yz/oJf K4yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=qW06oxb1; 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 a13si478153otq.201.2020.02.27.16.33.21; Thu, 27 Feb 2020 16:33:41 -0800 (PST) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=qW06oxb1; 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 S1730387AbgB1Ac1 (ORCPT + 99 others); Thu, 27 Feb 2020 19:32:27 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36719 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730117AbgB1Ac1 (ORCPT ); Thu, 27 Feb 2020 19:32:27 -0500 Received: by mail-pf1-f195.google.com with SMTP id i13so746753pfe.3; Thu, 27 Feb 2020 16:32:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=s30J624/VP3HrEoGo1r3bYubq6LVO8D9HM/6PcACQO0=; b=qW06oxb1fzVXep6BwwNAyOwG70mCiGpQS6B6veLIokygiuOnqSU1PudiZIsyJpuDx2 Al7uKGJQUorkbQ1IGXFelHFXnR0NglIvfd2Lq/EiNe87HNeRuAgm5FeuRv/GssADtqzS tPnRqVZHQnEIK7DGqx7PWnEBCmtfPSElyVDFrTLGyLF0NhgxEItQ9kHYuoQWreLQZdyk l7WdZZ5VhrfNjRKEIRBtoelpxmuc4pgibYQ4PJK2iTrnCTuKVzZ4ytwBvEOK5Zpzy7oc eThbhOkSJ7pukiWAfWGhr+T/sLtsSdIFkXPifmZ5tQRfIcQSOMVAUQsIhuZCUVVB1d+r pURw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=s30J624/VP3HrEoGo1r3bYubq6LVO8D9HM/6PcACQO0=; b=qLR+98llWly/V6pEoVQoAy6iGXNLXQj9qprzalHAYofvp0sBSdL2QdMNsV8w7WAc+B ilI0quHj6IPLSgCanjQ0UvWY3tc08X/P/tfvzmH9/e52A0DCI+s5GVTB5wCsraBupV+q JMcd+x6XS09jjKgOp3eVgAFpeBbasmo2VsMiSw/fsIwl+xsfgxl+rkWzjYx8SlGFuLz6 xsT2ddvdJVglTTgptfMhVujfZHVLg6TE874Xe160oEwEr6LCB0k86hMfAMIb8MyX9d5u 8Dwq6HGQCecbBs2CBSw6Nr9embWtawPG9sAA3a7DXZsh7nPQk+J1iARBYyuRKLQxsHxa 8gxQ== X-Gm-Message-State: APjAAAWg3urrk24IFtoO/iGVai0u33LQHw7Kuu1XdG5VBXkRnElBdSgj ow0qyb+rjod0zuYjpBQHrX1+am0s X-Received: by 2002:a63:c550:: with SMTP id g16mr1961644pgd.9.1582849946286; Thu, 27 Feb 2020 16:32:26 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id u12sm7936215pgr.3.2020.02.27.16.32.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Feb 2020 16:32:25 -0800 (PST) Date: Thu, 27 Feb 2020 16:32:24 -0800 From: Guenter Roeck To: Doug Anderson Cc: Minas Harutyunyan , Greg Kroah-Hartman , Antti =?iso-8859-1?Q?Sepp=E4l=E4?= , Boris ARZUR , linux-usb@vger.kernel.org, LKML , Felipe Balbi , Stefan Wahren , Martin Schiller Subject: Re: [RFT PATCH 2/4] usb: dwc2: Do not update data length if it is 0 on inbound transfers Message-ID: <20200228003224.GA11811@roeck-us.net> References: <20200226210414.28133-1-linux@roeck-us.net> <20200226210414.28133-3-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 27, 2020 at 02:06:44PM -0800, Doug Anderson wrote: > Hi, > > On Wed, Feb 26, 2020 at 1:04 PM Guenter Roeck wrote: > > > > The DWC2 documentation states that transfers with zero data length should > > set the number of packets to 1 and the transfer length to 0. This is not > > currently the case for inbound transfers: the transfer length is set to > > the maximum packet length. This can have adverse effects if the chip > > actually does transfer data as it is programmed to do. Follow chip > > documentation and keep the transfer length set to 0 in that situation. > > > > Signed-off-by: Guenter Roeck > > --- > > drivers/usb/dwc2/hcd.c | 15 ++++++++------- > > 1 file changed, 8 insertions(+), 7 deletions(-) > > I don't have any other test setup that you don't have, so just giving > my review tag and not tested tag. > > I will note that it feels like this should have a "Fixes" tag or a > direct Cc to stable to make it obvious that it should make its way > back to stable trees. > I added Fixes: 56f5b1cff22a1 ("staging: Core files for the DWC2 driver") > Reviewed-by: Douglas Anderson Thanks! Guenter