From patchwork Mon Oct 20 10:45:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 39043 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 523DC203C5 for ; Mon, 20 Oct 2014 10:46:21 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id ge10sf2322574lab.1 for ; Mon, 20 Oct 2014 03:46:20 -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=wABrNw4XGf6mkSRLvrIIqOwKftkjyzyaOXRyqB2QD6k=; b=XqMSM7Arp1O1iYOzZ+oALSj2+zsa7pvU8AOStXaoqUD1MMJ3vUTgtq6l1xlt5E/m1+ 0Ze5Qwy+x726KIUKiT7++1YoFA7m12jwxrLWNPapKuQsZkXE2pxVmqer+D6ioYk0Z0DG FyMqH9ocec8yi9nNuXinyCOGPmfB/68p1xZg0gua/K54XBhxv/LyPJe0Q4Z7WKyGVnt3 aBrsZZy5uF2CFBmVObZLIcEkXJTGEP9O4jLKDGzFyGzcjPU07CMHtHpT0EcGzmwUdagp z0xbVNu6eQYZi8WPso5NFXSnA/2GbiFwmTHMEbt2u8yENM+EUfOzL2mwHRSVk/o2EkR/ +07w== X-Gm-Message-State: ALoCoQk7vSH4vTpcs/CsK2KlaDh78yM4lgsTLJbkuEpDZV+Aq6VVsOfosRLVsIAAW2KXJwhPe2Lt X-Received: by 10.180.19.198 with SMTP id h6mr2323520wie.5.1413801980152; Mon, 20 Oct 2014 03:46:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.41 with SMTP id q9ls379429lag.67.gmail; Mon, 20 Oct 2014 03:46:20 -0700 (PDT) X-Received: by 10.112.94.133 with SMTP id dc5mr26471905lbb.11.1413801979999; Mon, 20 Oct 2014 03:46:19 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id kr10si13695920lac.72.2014.10.20.03.46.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Oct 2014 03:46:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ge10so3681113lab.10 for ; Mon, 20 Oct 2014 03:46:19 -0700 (PDT) X-Received: by 10.152.87.98 with SMTP id w2mr26083816laz.27.1413801979896; Mon, 20 Oct 2014 03:46:19 -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 c5csp278603lbz; Mon, 20 Oct 2014 03:46:19 -0700 (PDT) X-Received: by 10.66.182.200 with SMTP id eg8mr26775045pac.53.1413801978421; Mon, 20 Oct 2014 03:46:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id he8si7374540pbc.225.2014.10.20.03.46.17 for ; Mon, 20 Oct 2014 03:46:18 -0700 (PDT) Received-SPF: none (google.com: linux-usb-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 S1753522AbaJTKqP (ORCPT + 3 others); Mon, 20 Oct 2014 06:46:15 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54314 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753503AbaJTKpv (ORCPT ); Mon, 20 Oct 2014 06:45:51 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NDQ00KWPOP7QX10@mailout1.w1.samsung.com>; Mon, 20 Oct 2014 11:48:43 +0100 (BST) X-AuditID: cbfec7f4-b7f6c6d00000120b-54-5444e7dcbef8 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id CB.54.04619.CD7E4445; Mon, 20 Oct 2014 11:45:48 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NDQ009U7OK7MS20@eusync4.samsung.com>; Mon, 20 Oct 2014 11:45:48 +0100 (BST) From: Marek Szyprowski To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Felipe Balbi , Kyungmin Park , Robert Baldyga , Paul Zimmerman , Krzysztof Kozlowski Subject: [PATCH v2 02/10] usb: dwc2/gadget: fix enumeration issues Date: Mon, 20 Oct 2014 12:45:32 +0200 Message-id: <1413801940-31086-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1413801940-31086-1-git-send-email-m.szyprowski@samsung.com> References: <1413801940-31086-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCJMWRmVeSWpSXmKPExsVy+t/xa7p3nruEGGw+Ym1x8H69xesXhhZn m96wW8w4v4/JYtGyVmaLtUfusltsnzKdyeLB4Z3sDhwefVtWMXps2f+Z0eP4je1MHp83yQWw RHHZpKTmZJalFunbJXBldEycxlawhb3i/9GtrA2Ms9i6GDk5JARMJP78/gpli0lcuLceyObi EBJYyijxaflZJginj0lizYYWdpAqNgFDia63XWAdIgIOEkuW3gGzmQV+MkpMnmoDYgsLOElc ur2DBcRmEVCVOLx2NyuIzSvgIdF1tZERYpucxP+XK5hAbE4BT4k3L6aBxYWAajYtf8kygZF3 ASPDKkbR1NLkguKk9FxDveLE3OLSvHS95PzcTYyQkPqyg3HxMatDjAIcjEo8vAKWLiFCrIll xZW5hxglOJiVRHi7bwOFeFMSK6tSi/Lji0pzUosPMTJxcEo1ME7Mf5+27keFlet83V/c3Fwq Lw8kKMz6ZP7nvzD/9d0674znTkh+y3VAgP0wT+C9fq1Tm3vr/62+33d575YpxyzM9kv+Xbx1 wuajj2QuqgvnLE5qfbq9Yt2jr1k7Dz3dznBnh71Fp0xhf8iKxY5zf196d2Dl7VmLVmoLTaqe 0X1ZN/rb2TeRizWuKbEUZyQaajEXFScCAA0+mNMHAgAA Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@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.215.51 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 Acked-by: Paul Zimmerman --- 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));