From patchwork Thu Oct 16 12:57:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 38807 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B15B220973 for ; Thu, 16 Oct 2014 12:58:48 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id a1sf1856335wgh.1 for ; Thu, 16 Oct 2014 05:58:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=sUu1KYw3vrHn2kOBFIHkH+cvKTOXvlD9azjse9LnQPs=; b=G9g3RwuyVKYHZEZe4qBUGK70sdnPMmMLzwGmza97gYAcwhZ+TLKC+UZT/OCtQhIJVG /20pCMnVbcMxowPivTuDAeB/2BsY+9clEoJ5wWEGMFvyDQHj5cee+Mc9Yj87frgFul9U f9YMCO6SCnH5pEVCKYYhbZMMtv67e5fhPJNQF8NcoJ87HOqLeDRlxLGKrNhreX7ymHaA iqEukURquG01F10yQp0H5eOoZAhDaMpVAUHDdgdrbcpwtpMkA8D5DGC0x/pUbg+N1tdu WafkYUrQDqYkhx5+/gWN2lGBXqpVu8d29cT9saatMlBFwnszrn8IPdXJsORJvuukJXFy VSxQ== X-Gm-Message-State: ALoCoQkWgrE7tYhXxEiJzxmtF/TEUHwSVE+0clsCzuRV1+pp9GDPAir5PP1WYAV0JfiDc0Uui7mA X-Received: by 10.180.98.165 with SMTP id ej5mr515542wib.1.1413464327932; Thu, 16 Oct 2014 05:58:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.1 with SMTP id u1ls168311laj.29.gmail; Thu, 16 Oct 2014 05:58:47 -0700 (PDT) X-Received: by 10.112.38.67 with SMTP id e3mr1606849lbk.6.1413464327710; Thu, 16 Oct 2014 05:58:47 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by mx.google.com with ESMTPS id wl7si670262lbb.134.2014.10.16.05.58.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Oct 2014 05:58:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id u10so2768971lbd.34 for ; Thu, 16 Oct 2014 05:58:47 -0700 (PDT) X-Received: by 10.152.29.8 with SMTP id f8mr1520288lah.56.1413464327625; Thu, 16 Oct 2014 05:58:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp33512lbz; Thu, 16 Oct 2014 05:58:46 -0700 (PDT) X-Received: by 10.66.216.232 with SMTP id ot8mr775093pac.19.1413464326027; Thu, 16 Oct 2014 05:58:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yk7si11920691pab.135.2014.10.16.05.58.45 for ; Thu, 16 Oct 2014 05:58:46 -0700 (PDT) Received-SPF: none (google.com: linux-samsung-soc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752445AbaJPM6k (ORCPT + 6 others); Thu, 16 Oct 2014 08:58:40 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:54147 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752456AbaJPM6d (ORCPT ); Thu, 16 Oct 2014 08:58:33 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NDJ00BCLG663XB0@mailout3.w1.samsung.com>; Thu, 16 Oct 2014 14:01:18 +0100 (BST) X-AuditID: cbfec7f5-b7f776d000003e54-ec-543fc0f2165e Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id BE.EC.15956.2F0CF345; Thu, 16 Oct 2014 13:58:26 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NDJ00F34G17BB00@eusync2.samsung.com>; Thu, 16 Oct 2014 13:58:25 +0100 (BST) From: Marek Szyprowski To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Kyungmin Park , Robert Baldyga , Paul Zimmerman , Krzysztof Kozlowski Subject: [PATCH 2/9] usb: dwc2/gadget: fix enumeration issues Date: Thu, 16 Oct 2014 14:57:58 +0200 Message-id: <1413464285-24172-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1413464285-24172-1-git-send-email-m.szyprowski@samsung.com> References: <1413464285-24172-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDJMWRmVeSWpSXmKPExsVy+t/xK7qfDtiHGNxZI2zx+oWhxdmmN+wW M87vY7JYtKyV2WLtkbvsFtunTGeyeHB4J7sDu0ffllWMHlv2f2b0+LxJLoA5issmJTUnsyy1 SN8ugSvjxJxzrAVd7BUz9j5ga2D8ytrFyMkhIWAi8bxvPRuELSZx4R6IzcUhJLCUUeJ6634W CKePSaK39zMTSBWbgKFE19susA4RAQeJJUvvgHUwC9xhlFi//xNYkbCArcSJ4/vBbBYBVYlJ B66BNfAKeEhcv7mUGWKdnMT/lyvAajgFPCV2bV4JFhcCqjl/dTrjBEbeBYwMqxhFU0uTC4qT 0nON9IoTc4tL89L1kvNzNzFCQujrDsalx6wOMQpwMCrx8GoE24cIsSaWFVfmHmKU4GBWEuFd NAkoxJuSWFmVWpQfX1Sak1p8iJGJg1OqgVGp9br6y1WGqrGW116rrPwd+YCdv1XHuMTmlcGx O9uFjLseOc52lWZwS3PafoX3uWe7uW2LpOT5zaW8R8KOvIhZePBT56oA4c+Fe/Z5S0assDPc fM7h3/nsYJsr93do3qrtffRr+v9bUzbLfZr37H5ypnHJKqfPazz/HP1r9+xZAKeQRtk50y1K LMUZiYZazEXFiQDFSXL8/wEAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m.szyprowski@samsung.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Excessive debug messages might cause timing issues that prevent correct usb enumeration. This patch hides information about USB bus reset to let driver enumerate fast enough to avoid making host angry. This fixes endless enumeration and usb reset loop observed with some Linux hosts. Signed-off-by: Marek Szyprowski Reviewed-by: Felipe Balbi --- drivers/usb/dwc2/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 119c8a3effc2..8870e38c1d82 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -2333,7 +2333,7 @@ irq_retry: u32 usb_status = readl(hsotg->regs + GOTGCTL); - dev_info(hsotg->dev, "%s: USBRst\n", __func__); + dev_dbg(hsotg->dev, "%s: USBRst\n", __func__); dev_dbg(hsotg->dev, "GNPTXSTS=%08x\n", readl(hsotg->regs + GNPTXSTS));