Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp284788ybf; Wed, 26 Feb 2020 13:06:16 -0800 (PST) X-Google-Smtp-Source: APXvYqz8NUpEO+B9V8QLB+nl33nivBubpC/8h/Vo15kVnmrDAfQHwPu3Z77+/tfDQRJJsYOb4vJb X-Received: by 2002:a9d:5a09:: with SMTP id v9mr585114oth.214.1582751175994; Wed, 26 Feb 2020 13:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582751175; cv=none; d=google.com; s=arc-20160816; b=nY1Gmx3gDFmnyoq3BfvP8jNkrpjj7Bq9H+rCuPHtVB4bs5jHPyzSCzL7RE7GzzCq2p o4zUYEbWjXgy65fILW53tg+urgZ2ls7wx8aSQOsyJ9qypKASFNOUK9zHv6db3CXq+OPE HfimJtFZ/tym7iFm/IEWxAFlZJGYHVLM1Zsy3QIyxgbsl4mWhqK4kEiVuvqqIOO/Y+8T jmi3cfID9c852FKhTqfiivAE7jjFrlLQbHN4IS5xyPa65w8ItYx/jQhsrxT/yA1wEuMW 3jljfuNEGu1oAN2lukjzeo2u7siNuq1DtpaUHM9cawdqUJSbovR2QyXxRs9wumLCdrGG rMhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=xAl1x+LpHJ0/VGX33EY28LK5EWDI6zzFinArxJkf/Us=; b=uD5DrPTWRo6WjgfsKT/NKavuaLm+CMoiAugVwZKcd/3kBwvVY7lyB2SdCRtBeB980R 32DsyooIhvSXWUpPYCXSbBmUB5CDECLqiwhh4xZSe+EV6osi84zCoUHFuNqrlX6r9WYV BK9uHMWSjoqp/SeCAMiIjhgcL8/lLC0uuTETpU1HDj0W3ybU+TNnGJHr/wJJAcl292kj O5omYYQEaONIBxk+pPEdKNJ9q4yOBzMxWC611wPBZxchSEpUgc38oO1IguRoYh47MuJ0 C4eBGXElApdTwHm9xShAlpkW/nwO24vvn6/q0XfNdrG0PlKCWGdBlBCSdIgbYlnzU1Gk IDXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="i/MIoEkI"; 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 v5si195221oix.197.2020.02.26.13.06.04; Wed, 26 Feb 2020 13:06:15 -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="i/MIoEkI"; 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 S1727740AbgBZVEc (ORCPT + 99 others); Wed, 26 Feb 2020 16:04:32 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:33411 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727701AbgBZVE3 (ORCPT ); Wed, 26 Feb 2020 16:04:29 -0500 Received: by mail-pl1-f196.google.com with SMTP id ay11so200361plb.0; Wed, 26 Feb 2020 13:04:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=xAl1x+LpHJ0/VGX33EY28LK5EWDI6zzFinArxJkf/Us=; b=i/MIoEkIkUelCWWx6h02qcZVRrQclgV7C5pVM14h6peF/Ryl4gGu6eXes/xJT1aE6E mq+oM2W8jWqREiUFdm5SsrqNGQ8hnfXOZP2MrZxKwP9bCwAMoROzYXl2H6/XHKP6PZpj FsBlJyU97lfwxT0sxx+SwL0eYdtK4+ZuFrT2mBVSHAov8oi4NKrG4jwLQJmYEvLqqsdf 6eaJhdFFEVINUGhxVi/AkY09abXyerQ9GcwFjRUUIA1DGA110o3rqtIsvbG2O0AesPWo 5NClYjADavsoI9fj6GiVslYvq1mASMgXVTJIA5lT0G800a3UNXGVqOEKnq7y/Kg2XpKb Wt+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=xAl1x+LpHJ0/VGX33EY28LK5EWDI6zzFinArxJkf/Us=; b=OUS0nIlp1cjVKTQhZ1h7EYiI36cedIz/FKom6wt3Jk4jWuV7dpHYezvApR5dvXWFed 8lfE/LsrWclmtljd6hD5sp0E/RBu0ZhuZGPjiIpLZm/93wDfm414eeHCgjHkV21rGlWd jpCHuW14+4AXlKGoChmyltyhbyxpX3+g6N6pqDNBO9bne8+omuu+6MjbmflkP00CH5yq ma06dbZ08skoo/6qsDpQQ7aSmOM3ajMkEMXoIcl5YkWqmoga+pTmrsKL6NlRSxZmxQYP cdn51FODVavVHG5oweYSGk00+XYiNVYolcecKnQaHOPd6P9qe+PLPpdrQJmdi0FdRGrP nivQ== X-Gm-Message-State: APjAAAV2iRI3XrDkdEky/Y8ftkgQZsvulE9DXUwvWk3tnF9PqSqmz2c3 NWgUfGzG2590YiWt4aclPXA= X-Received: by 2002:a17:902:7589:: with SMTP id j9mr1169794pll.312.1582751068697; Wed, 26 Feb 2020 13:04:28 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id q8sm3966221pfs.161.2020.02.26.13.04.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Feb 2020 13:04:28 -0800 (PST) From: Guenter Roeck To: Minas Harutyunyan Cc: Greg Kroah-Hartman , =?UTF-8?q?Antti=20Sepp=C3=A4l=C3=A4?= , Boris ARZUR , Douglas Anderson , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Guenter Roeck Subject: [RFT PATCH 4/4] usb: dwc2: Make "trimming xfer length" a debug message Date: Wed, 26 Feb 2020 13:04:14 -0800 Message-Id: <20200226210414.28133-5-linux@roeck-us.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200226210414.28133-1-linux@roeck-us.net> References: <20200226210414.28133-1-linux@roeck-us.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) diff --git a/drivers/usb/dwc2/hcd_intr.c b/drivers/usb/dwc2/hcd_intr.c index 12819e019e13..d5f4ec1b73b1 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.17.1