Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp88401ybf; Thu, 27 Feb 2020 16:39:25 -0800 (PST) X-Google-Smtp-Source: APXvYqybXthiDY7Hw4fG9ST9dlRRcnwOP0430F0DlDybu54zCqx136MsE4JLEBvkUnDFhRdYnxB9 X-Received: by 2002:a9d:7c81:: with SMTP id q1mr1243308otn.112.1582850365560; Thu, 27 Feb 2020 16:39:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582850365; cv=none; d=google.com; s=arc-20160816; b=J9Nj6c7Z+61nCmiOLXVQyp0aeRSFQKw73VmwkWlfrMZu2xICkyv7Oo9BufDz/tXSXy tCYWZ3yDZ2NAK2uaLNxpYES3pzprZ870Yu5p34ZlmKgEWRp8kP9F0fMglQCF0sAx/bmL SmH8mGexdZdR/t/O71bOFeMcgACjU5U9Zlalm+HxA92Qur0lXlSTRCiGkJ0VUAEbYGBe Qw3nDSRO6kn3muO0daMv77k1jSDd2mBBaWSFsoSsbZRDi8rc+BclYauVE0ozyVFdE3Wb KGEIRY9IoB1ZNFeWFUUxu/bryjAJiMogL45aZpbGSHO0Q6/XGMTFDL7tVjTz7wd4nOyL HsRQ== 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=Z/yxTrdmlGAmNZb612vOa6OICzFDLjBrtfyjwcjGr0I=; b=mMo2IeUqzwjtIXelGiRukh7bUM55w3PJE1Q1kKWb8dgjNF2v41AHILl+hd40/jfq1g +kf2AI7a+LSrFawKAdCxHuse9QwVC7MTLnu8x4kid3qba6UzaIUq0GJ46djJxcBu5DLv zoVBtEVonBhUXMnXFQ27gxVRIrNRZqlz1rGd9ztFcDFYSTxWYtYO9zNsz2mqX7Cc39Dw Uvgwzv7U3vfYcheoz78yJ7mK3pZi7eJbIRNCVGh0kBFWAcUKhXTNhVMMlD6vfjEXFsmj ZenmmyBPMVm9va5Prr5QQ7PmnjpsnuyQI6Yr9RGe6qG7e1/Y1JoW7/h14tMI5fVEO7ik aaSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=qvOgREED; 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 l8si783673oii.249.2020.02.27.16.39.13; Thu, 27 Feb 2020 16:39:25 -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=qvOgREED; 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 S1730223AbgB1AjC (ORCPT + 99 others); Thu, 27 Feb 2020 19:39:02 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33069 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729984AbgB1AjB (ORCPT ); Thu, 27 Feb 2020 19:39:01 -0500 Received: by mail-pl1-f194.google.com with SMTP id ay11so516636plb.0; Thu, 27 Feb 2020 16:39:01 -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=Z/yxTrdmlGAmNZb612vOa6OICzFDLjBrtfyjwcjGr0I=; b=qvOgREEDhea8eVEYFz9FqSehJre6irn23Wigft+6rL2Zg1SfkE4xnms/IjVxqde/EW kQpfCOuBvFF4m62qUQcy/PNlUQZHAacD2g4PEvcx2ML6wSxgcnuBxAeBm+S9Sa3sHXC1 9pYbeqa7yaav0NlPou5YXeHLUMNMyIG+QPPwqfJ1OOC/65n9acuprnxXV20OeezE857v oypneDDwUgsy21O756k82Q/VRddxcSMcXzaIqsSsRILTqqPANxcuSTK/AZVWQKSzJmQ6 z0G2ojoTb3a+Z2rrCvLD97gr4ZAXnR8JzioAwuMYMpMAGZTSBJqkEzPJpX4G7v+PqOWd pCaA== 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=Z/yxTrdmlGAmNZb612vOa6OICzFDLjBrtfyjwcjGr0I=; b=JlKDgAHPzJRP3A9qm7p5tqQeQxsGmzPjZnkLgN/64pTke1GdJ6nkKPtmnItQZ5mstB ai8DeYx+lye8ye1vCsrL0tGGRhGl7M/YGUIENBkNJbyytt8J8sSMBXrHfRE8bBF2COKq yT+W/pDueYCMJuxjvV7Tyf52AvLNfEGE8zYBCnTINl1V1FhKarqK/Zz7GhcbLLe2AJZe RM2h9hI1RTJLe+qq3jI6ozocSAXr9PJp0VriQMhQQCZKzdV62UIym64bAEZreRaTDfkq Pb2hHMOFEmAIW0kSvxO0zFPuLRXuAZSXiaU93J0QG/V73Wt5OXNViC2bHdA0Elw9H98F V33A== X-Gm-Message-State: APjAAAU0Y3SvOyOzHgpEEHUPyV0SiWFopzhMRpdtn3yQVGvwm3UbU4+V 9YT9sRLK9uIc9NeaZ2KruEI= X-Received: by 2002:a17:902:8542:: with SMTP id d2mr1490574plo.200.1582850340892; Thu, 27 Feb 2020 16:39:00 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id g12sm8176155pfh.170.2020.02.27.16.39.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Feb 2020 16:39:00 -0800 (PST) Date: Thu, 27 Feb 2020 16:38:59 -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 4/4] usb: dwc2: Make "trimming xfer length" a debug message Message-ID: <20200228003859.GC11811@roeck-us.net> References: <20200226210414.28133-1-linux@roeck-us.net> <20200226210414.28133-5-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:07:14PM -0800, Doug Anderson wrote: > Hi, > > On Wed, Feb 26, 2020 at 1:04 PM Guenter Roeck wrote: > > > > With some USB network adapters, such as DM96xx, the following message > > is seen for each maximum size receive packet. > > > > dwc2 ff540000.usb: dwc2_update_urb_state(): trimming xfer length > > > > This happens because the packet size requested by the driver is 1522 > > bytes, wMaxPacketSize is 64, the dwc2 driver configures the chip to > > receive 24*64 = 1536 bytes, and the chip does indeed send more than > > 1522 bytes of data. Since the event does not indicate an error condition, > > the message is just noise. Demote it to debug level. > > > > Signed-off-by: Guenter Roeck > > --- > > drivers/usb/dwc2/hcd_intr.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Suggest a "Fixes" or "Cc: stable" tag. This one isn't as important as > the others, but presumably you'll start hitting it a lot more now > (whereas previously we'd just crash). > Good point. Added Fixes: 7359d482eb4d3 ("staging: HCD files for the DWC2 driver") > Reviewed-by: Douglas Anderson Thanks again! Guenter