From patchwork Tue Feb 4 13:28:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 24101 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f199.google.com (mail-yk0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3B93620445 for ; Tue, 4 Feb 2014 13:28:21 +0000 (UTC) Received: by mail-yk0-f199.google.com with SMTP id 142sf51206756ykq.2 for ; Tue, 04 Feb 2014 05:28:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=rfeZCVHCC3Ky6Q8L/PBDDn5C8CVQiimwAk86eyCqQPE=; b=XBwt4MGmlzOTcnRrmO69bXaUJj5rx8w7NYZwI0Dm/v8jwFVzGG9mhctOXdiojEriH0 m+tw+c9/vZ7wFF5X85ZsmJUwM1zuWmWcMkH1/OhDm8GpaluTMqiSehYFoYnuY/pHcSlY /B6A9fT2Au3CI0eEd31XGxG4J9tk24EJ8T98wD4XYDGQPt53ENatsHGZwcrfGW/I3BhG 8yYDMbLLva7RHoedwhrv05AuSGPVG1IK8GLgmkOfv38uB2sN60leK5S16RYC6qMR9kcW vCaNZI6O4a9cEDQ4aIKvph+gRUJpJqKn68JKcTowcvALRpgpI9BbTb0qR8pMnrqO1BML HmjQ== X-Gm-Message-State: ALoCoQlZPMnIMyQMKMlAwWp5LNu3wL+5DvSMZ2umBAAO5Shu0Cb/LmDvbDyCA9SEN84NbIybG62X X-Received: by 10.236.180.2 with SMTP id i2mr43169yhm.4.1391520500151; Tue, 04 Feb 2014 05:28:20 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.200 with SMTP id p66ls2231666qgp.74.gmail; Tue, 04 Feb 2014 05:28:20 -0800 (PST) X-Received: by 10.58.170.69 with SMTP id ak5mr1112930vec.28.1391520500060; Tue, 04 Feb 2014 05:28:20 -0800 (PST) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id at8si8111261vec.113.2014.02.04.05.28.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 05:28:20 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id ld13so5861541vcb.32 for ; Tue, 04 Feb 2014 05:28:20 -0800 (PST) X-Received: by 10.58.172.132 with SMTP id bc4mr74731vec.45.1391520499938; Tue, 04 Feb 2014 05:28:19 -0800 (PST) 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.220.174.196 with SMTP id u4csp234127vcz; Tue, 4 Feb 2014 05:28:19 -0800 (PST) X-Received: by 10.66.249.134 with SMTP id yu6mr43480637pac.37.1391520498772; Tue, 04 Feb 2014 05:28:18 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fl7si24671034pad.113.2014.02.04.05.28.18; Tue, 04 Feb 2014 05:28:18 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754443AbaBDN2M (ORCPT + 27 others); Tue, 4 Feb 2014 08:28:12 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:49060 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753677AbaBDN2K (ORCPT ); Tue, 4 Feb 2014 08:28:10 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s14DS9iX002141; Tue, 4 Feb 2014 07:28:09 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s14DS91k028709; Tue, 4 Feb 2014 07:28:09 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Tue, 4 Feb 2014 07:28:08 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s14DS6Km031249; Tue, 4 Feb 2014 07:28:07 -0600 From: Roger Quadros To: , CC: , , Subject: [PATCH 1/2] usb: musb: host: Fix SuperSpeed hub enumeration Date: Tue, 4 Feb 2014 15:28:06 +0200 Message-ID: <1391520486-26298-1-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1391520349-26192-1-git-send-email-rogerq@ti.com> References: <1391520349-26192-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , From: Ajay Kumar Gupta Disables PING on status phase of control transfer. PING token is not mandatory in status phase of control transfer and so some high speed USB devices don't support it. If such devices are connected to MUSB then they would not respond to PING token causing delayed or failed enumeration. [Roger Q] Fixes enumeration issues with some Super-Speed USB hubs e.g. Dlink DUB-1340 Signed-off-by: Ajay Kumar Gupta Signed-off-by: Roger Quadros Acked-by: Felipe Balbi --- drivers/usb/musb/musb_host.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index ed45572..abb38c3 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -1183,6 +1183,9 @@ irqreturn_t musb_h_ep0_irq(struct musb *musb) csr = MUSB_CSR0_H_STATUSPKT | MUSB_CSR0_TXPKTRDY; + /* disable ping token in status phase */ + csr |= MUSB_CSR0_H_DIS_PING; + /* flag status stage */ musb->ep0_stage = MUSB_EP0_STATUS;