From patchwork Thu Feb 24 08:57:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 586801 X-Patchwork-Delegate: me@felipebalbi.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1O8w6cH031745 for ; Thu, 24 Feb 2011 08:58:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755282Ab1BXI5s (ORCPT ); Thu, 24 Feb 2011 03:57:48 -0500 Received: from na3sys009aog105.obsmtp.com ([74.125.149.75]:47802 "EHLO na3sys009aog105.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753699Ab1BXI5r (ORCPT ); Thu, 24 Feb 2011 03:57:47 -0500 Received: from source ([209.85.214.48]) (using TLSv1) by na3sys009aob105.postini.com ([74.125.148.12]) with SMTP ID DSNKTWYdiexaEjxvF+S7mtLtKjFtnR1qNCHW@postini.com; Thu, 24 Feb 2011 00:57:46 PST Received: by bwz8 with SMTP id 8so976073bwz.7 for ; Thu, 24 Feb 2011 00:57:44 -0800 (PST) Received: by 10.204.121.73 with SMTP id g9mr483957bkr.37.1298537863050; Thu, 24 Feb 2011 00:57:43 -0800 (PST) Received: from localhost (cs181221087.pp.htv.fi [82.181.221.87]) by mx.google.com with ESMTPS id b16sm1249424bkw.14.2011.02.24.00.57.40 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Feb 2011 00:57:41 -0800 (PST) Date: Thu, 24 Feb 2011 10:57:39 +0200 From: Felipe Balbi To: Alan Stern Cc: Felipe Balbi , Alexander Holler , Michael Jones , Greg KH , Kernel development list , stable@kernel.org, stable-review@kernel.org, torvalds@linux-foundation.org, Andrew Morton , Alan Cox , USB list , linux-omap@vger.kernel.org Subject: Re: [024/115] USB: prevent buggy hubs from crashing the USB stack Message-ID: <20110224085735.GD3528@legolas.emea.dhcp.ti.com> Reply-To: balbi@ti.com References: <4D64C81B.5060807@ahsoftware.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 24 Feb 2011 08:58:06 +0000 (UTC) From 65315c60a17f83e69d01888babe4445097c8ead0 Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Thu, 24 Feb 2011 10:36:53 +0200 Subject: [PATCH] usb: musb: core: set has_tt flag Organization: Texas Instruments\n MUSB is a non-standard host implementation which can handle all speeds with the same core. We need to set has_tt flag after commit d199c96d41d80a567493e12b8e96ea056a1350c1 (USB: prevent buggy hubs from crashing the USB stack) in order for MUSB HCD to continue working. Signed-off-by: Felipe Balbi --- drivers/usb/musb/musb_core.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 54a8bd1..c292d5c 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -1864,6 +1864,7 @@ allocate_instance(struct device *dev, INIT_LIST_HEAD(&musb->out_bulk); hcd->uses_new_polling = 1; + hcd->has_tt = 1; musb->vbuserr_retry = VBUSERR_RETRY_COUNT; musb->a_wait_bcon = OTG_TIME_A_WAIT_BCON; -- 1.7.4.rc2