Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5941544pxb; Mon, 14 Feb 2022 11:14:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzM3734+ClXhkRaiVB+l703DJmGX+6LJYoAb3tQXHIGzH0Zag4YruitlBokHvEhH+vQd/R1 X-Received: by 2002:a17:90b:38d0:: with SMTP id nn16mr90764pjb.21.1644866092777; Mon, 14 Feb 2022 11:14:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644866092; cv=none; d=google.com; s=arc-20160816; b=SJrbFauuW2DcwfL0UcZAafb9zO+8floVt4ELC2FmLkD1jjkXffc0rJydWk7dkU0rkM DMp+ghx56bwnYQByk2abI2qyI2gQIkqNdrCOaYripsp8yqfl4x5HeOLERYzlZ1AV2QQA oAKSHNI0wrxynSXWTvR70rC/zZ6MUbt2+/c5yTH9b7K3iupizSwjPh9Qlzgpc0OjTK3e DXqpZ5rWjbRHEe10J3iWXk51ysMfPttkK5yn9uNANB28dzhIB4vuyd4Yn8DHuHdb9Zzl SkZZsM9Nm4JFZnlTRoIrTmMzzEbFnr0zqOE4QL2I6q/jRMLguEH20BFdXOxS+SfEw2vU A+Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=z5TBL2tXvs2G8s52nqE7Jh27muVmJgYzHuAp9GiJJtE=; b=GtKpFtjdda+ODcsygy2LIVp8oN7WrilL/jZM0BCXMWlhP8zOAUwTIFTsSyHO5ngAGr OppxQwvNaBKr2bRhhB0KagLiMR5ZnZqZMHR0qPfpSEaAzU8FOHPgI7Pdv25ifUY4iYwO hlE3ORB0MFhHqdrk9aLZTtB3Ie3W2GA8WKZjAq9+co9gZwPX4abWEus6uyocEE6H7d7U jSbfOtsH1QZsqkNf14gTvL2UP1uSnHyjCIO1hHekmunj3kuCVws1Miart5l0mZ0T+Z+H erNN5qYAS9jT/pbi4TxW7U1ZaSoGBv+uVMFZc+5rIaVciF9Qf6hCDgFUms28sp4b1+VQ WTVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=jRkUCW44; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h69si457903pge.462.2022.02.14.11.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:14:52 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=jRkUCW44; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7BE3DBC3F; Mon, 14 Feb 2022 11:07:39 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352767AbiBNMR0 (ORCPT + 99 others); Mon, 14 Feb 2022 07:17:26 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345153AbiBNMR0 (ORCPT ); Mon, 14 Feb 2022 07:17:26 -0500 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F96749258; Mon, 14 Feb 2022 04:17:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644841038; x=1676377038; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=z5TBL2tXvs2G8s52nqE7Jh27muVmJgYzHuAp9GiJJtE=; b=jRkUCW44dkSsBXeefltIUTHtrRGhxc3c6gyQkni2FzmTZuNK78z4jz4Q 9KYg8dLg4/B2RqBSp7rF4pFMr5mCopL30Z2i3+X0hgxANb6reaYHu3A5I JrdXd+Id7igcvxKq6dvhEtB6nR7p2imtiRuxf8QxmOujQciMlXC7SniYr 4=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 14 Feb 2022 04:17:18 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 04:17:17 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Mon, 14 Feb 2022 04:17:17 -0800 Received: from hu-pkondeti-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Mon, 14 Feb 2022 04:17:14 -0800 Date: Mon, 14 Feb 2022 17:47:10 +0530 From: Pavan Kondeti To: Greg Kroah-Hartman CC: Pavankumar Kondeti , Mathias Nyman , , , , Jung Daehwan Subject: Re: [PATCH] xhci: reduce xhci_handshake timeout in xhci_reset Message-ID: <20220214121710.GA31021@hu-pkondeti-hyd.qualcomm.com> References: <1644836663-29220-1-git-send-email-quic_pkondeti@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Mon, Feb 14, 2022 at 12:36:47PM +0100, Greg Kroah-Hartman wrote: > On Mon, Feb 14, 2022 at 04:34:23PM +0530, Pavankumar Kondeti wrote: > > From: Daehwan Jung > > > > xhci_reset() is called with interrupts disabled. Waiting 10 seconds for > > controller reset and controller ready operations can be fatal to the > > system when controller is timed out. Reduce the timeout to 1 second > > and print a error message when the time out happens. > > > > Fixes: 22ceac191211 ("xhci: Increase reset timeout for Renesas 720201 host.") > > Signed-off-by: Daehwan Jung > > Signed-off-by: Pavankumar Kondeti > > --- > > drivers/usb/host/xhci.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c > > index dc357ca..ec4df72 100644 > > --- a/drivers/usb/host/xhci.c > > +++ b/drivers/usb/host/xhci.c > > @@ -196,7 +196,7 @@ int xhci_reset(struct xhci_hcd *xhci) > > udelay(1000); > > > > ret = xhci_handshake(&xhci->op_regs->command, > > - CMD_RESET, 0, 10 * 1000 * 1000); > > + CMD_RESET, 0, 1 * 1000 * 1000); > > if (ret) > > return ret; > > > > @@ -210,7 +210,7 @@ int xhci_reset(struct xhci_hcd *xhci) > > * than status until the "Controller Not Ready" flag is cleared. > > */ > > ret = xhci_handshake(&xhci->op_regs->status, > > - STS_CNR, 0, 10 * 1000 * 1000); > > + STS_CNR, 0, 1 * 1000 * 1000); > > > > xhci->usb2_rhub.bus_state.port_c_suspend = 0; > > xhci->usb2_rhub.bus_state.suspended_ports = 0; > > -- > > 2.7.4 > > > > I do not see any "print an error message" change here. Where is that > addition? > Thanks for taking a look. The "error messages prints" are in my working tree unstaged :-( sorry for the confusion. I will fix it and resend the patch. Thanks, Pavan