Return-Path: Received: from na3sys009aog105.obsmtp.com ([74.125.149.75]:58621 "EHLO na3sys009aog105.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753874Ab0LPNID (ORCPT ); Thu, 16 Dec 2010 08:08:03 -0500 Date: Thu, 16 Dec 2010 15:07:56 +0200 From: Felipe Balbi Subject: Re: [RFC v2 4/4] USB: Eliminate delays involved in root hub initialization during HNP Message-ID: <20101216130756.GE6652@legolas.emea.dhcp.ti.com> Reply-To: balbi@ti.com References: <1292497742-2618-1-git-send-email-pkondeti@codeaurora.org> <1292497742-2618-5-git-send-email-pkondeti@codeaurora.org> <4D0A0887.4030901@ru.mvista.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <4D0A0887.4030901@ru.mvista.com> Sender: linux-arm-msm-owner@vger.kernel.org List-ID: To: Sergei Shtylyov Cc: Pavankumar Kondeti , linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org On Thu, Dec 16, 2010 at 03:39:35PM +0300, Sergei Shtylyov wrote: >Hello. > >On 16-12-2010 14:09, Pavankumar Kondeti wrote: > >>Some USB controllers have common resources (IRQ, register address >>space) for Host, Peripheral and OTG. So HCD is added only before >>entering into Host mode. Root hub initialization is done in >>different steps to decrease boot up time. But this makes B-device >>difficult to meet HNP timings. Hence eliminate delays involved in >>root hub initialization for B-host. > >>This patch also marks hnp_supported flag TRUE for B-host while >>registering the bus. > >>Change-Id: I821775e8c90bd71a7abbe17176f189664a1841e1 >>Signed-off-by: Pavankumar Kondeti >[...] > >>index ac79fd5..2df61ba 100644 >>--- a/drivers/usb/core/hub.c >>+++ b/drivers/usb/core/hub.c >>@@ -680,6 +680,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type) >> int status; >> bool need_debounce_delay = false; >> unsigned delay; >>+ bool hnp_in_progress = hdev->bus->is_b_host&& (type == HUB_INIT); > > Parens here are not necessary. there's also a missing space before && -- balbi