Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3521613pxb; Mon, 1 Mar 2021 12:11:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqKnsuHwV9kt4e9HDn1A4ygTfivyI0HJVhJHY7S/ahw30mIBMfADDg6fTnLBT3RD04uWIz X-Received: by 2002:aa7:d6c2:: with SMTP id x2mr18157781edr.79.1614629460171; Mon, 01 Mar 2021 12:11:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614629460; cv=none; d=google.com; s=arc-20160816; b=KuTBjXZQRhs2onhMarEHra5Zr1LY7se6BpAutqZrmy9K3HpoAGZ5RYfb82LQBsn74T MP6YUxSx3IA6Godgo0xYwp2GFJiqnzft34LIt0bb2DL/PrBdtCYBvKLymXLr7NzWJiPd 9FX+uUABR0K+OWE9481yFTTqkm9vL30Sy7SRfLdYzHtYpatYTHfGXkYALVCXD4ugrA1m p4u8w9poOsajFDYWXdGnFBGxE8+PgHQrIC6MFGL/EN1LDayVQVDplJITU7+VvuVGz/sl 6DwTyUmhJRbXbtZ1D99zVAp/MIB7RwyLUIffcqn8aNqBQYLMckeeKk/IdOuWoylSFvjN oeHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IkCAo9rFih7pfQknIIGqN/KSwvfD9Sq0liIis9LE2/A=; b=SR4KNBb+Epa2/z2ck+NYSc8sSdO9XiLo8V5c7ZDIJDylPGO4h1IstAcZbvecBWdsqS yY9ArWoke3qIBxylloTWXOGdXCEGtuLsftGrtww9jw9nRchpuOry/ktTcAdcdbzqPb+z vueptci3Z3rCj8qTPnlg6dTl5F12+HFaiL7/73VWusFogZj2HmeY5eBAqrsgAYcVF8Wx Mt2v/zNGOHiR/k9YMjX4ea4NGek8/HFlKLpN4bAOs21H+lrwmHVCzYfpqPFekINpS8SQ Nr0xJ6S0iOtpJ99aTzlvli5tM0bTg+PQKValfssOqhVESiExTtYHPnnUDI4IQA/+FIVx YApQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R5ClEjf4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si12203646edp.366.2021.03.01.12.10.37; Mon, 01 Mar 2021 12:11:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R5ClEjf4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242923AbhCAUIr (ORCPT + 99 others); Mon, 1 Mar 2021 15:08:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:59900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236025AbhCAQ7d (ORCPT ); Mon, 1 Mar 2021 11:59:33 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0177464FE2; Mon, 1 Mar 2021 16:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616654; bh=mL09YJig77HNu0qIaVI95NMHTCeHIlURYFfYIByCyUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R5ClEjf4gAJffGBJThuVu8Rnp4JayRSdtA98C2x2+I5tKas9OB6YPKofY0uisa54U v8nzc9mMo2iF13l0PqRnr8rKw5uCWx2P2Q84uiwBBdGuHaIJ9J4ExWwZjvSz5rXJMD JWXqOt2X00e0JkK+TJiAA2DHlNKp6RdNhX1f0t6M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Saenz Julienne , Douglas Anderson , Guenter Roeck , Sasha Levin Subject: [PATCH 4.19 049/247] usb: dwc2: Make "trimming xfer length" a debug message Date: Mon, 1 Mar 2021 17:11:09 +0100 Message-Id: <20210301161034.077362824@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guenter Roeck [ Upstream commit 1a9e38cabd80356ffb98c2c88fec528ea9644fd5 ] 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. Fixes: 7359d482eb4d3 ("staging: HCD files for the DWC2 driver") Tested-by: Nicolas Saenz Julienne Reviewed-by: Douglas Anderson Signed-off-by: Guenter Roeck Signed-off-by: Nicolas Saenz Julienne Link: https://lore.kernel.org/r/20210113112052.17063-4-nsaenzjulienne@suse.de Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/dwc2/hcd_intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/hcd_intr.c b/drivers/usb/dwc2/hcd_intr.c index 12819e019e13c..d5f4ec1b73b15 100644 --- a/drivers/usb/dwc2/hcd_intr.c +++ b/drivers/usb/dwc2/hcd_intr.c @@ -500,7 +500,7 @@ static int dwc2_update_urb_state(struct dwc2_hsotg *hsotg, &short_read); if (urb->actual_length + xfer_length > urb->length) { - dev_warn(hsotg->dev, "%s(): trimming xfer length\n", __func__); + dev_dbg(hsotg->dev, "%s(): trimming xfer length\n", __func__); xfer_length = urb->length - urb->actual_length; } -- 2.27.0