Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4625691pxj; Tue, 22 Jun 2021 04:40:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylEB2UJfImWlH4HITH5nRQlhYvY9D7RswiARhNFTwEwMKgWZz0C+QP/gBFWAK6OTfEkHc6 X-Received: by 2002:a5d:9cc8:: with SMTP id w8mr34468iow.100.1624362003189; Tue, 22 Jun 2021 04:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624362003; cv=none; d=google.com; s=arc-20160816; b=UNn1dov7SF2H/XV/fz/hOp9UP96VOe1dBReBe7yb4Nd1ahpDf+TImQdxJoeFPCTdDo MVSh1kjndTbaWIw97REB6XX2Bcdq1mC1lOI4OngYkQJdyHRdYqfKmc9BaBj6deVWfouO uhbrq2sG3T2QkeQFPUm+TtJy2r14uzoyNf2zdmcfO0qFupO+SQEEQlt8Dr5hQcEHtEQI KJnBBygJfTYjkLHDNnqxeZHZYASK8mUdsYzJsg0GARxA33n4ZNNOTvV2+c2MOQn+Ff2N 008XW00NtCsgKqsqE2kbtyFSV+7wnQzJeyR141dM66zZpnIxhURzDiKAR9Kv/5MQEQgc h19Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=s1Avvz1h66BixbIt3cMuqFT42a4Y6eRXBpAQuPpp6qw=; b=h5/fBCYdFuGjorSQ4a9mI4aJ0c6Jf8enONsO3MTnYtA85m6HP6/Yt9D/iyyrlsyS8o yzjzk/0clfnq96J7jELIxBCgkTBdQFiZbPjS+3XxS7nfhnK+2J5vXJzmyNorB8Sy8+2y TNVewQr7idXyJgPOHoDKfcDGXa+L/WoAw+HN37rDMLgRv8Wnb8AyE4pFXtXL8AWxAzun MCPO/4kxC1OsVVxSEIpcbjFFHLBv+3z6jVD9trgu3knt8WoX+g6fmT2kj9bG35JQ6fy+ WnIE99MTsGeJ4IUAoYhk9DSWUiagsD3UNNuOYGyFiu8v9tn8gjApbmEG5WydUl9Re5GC MtQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=FHN3bvqE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si15258278jai.99.2021.06.22.04.39.50; Tue, 22 Jun 2021 04:40:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=FHN3bvqE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230071AbhFVLlh (ORCPT + 99 others); Tue, 22 Jun 2021 07:41:37 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:55428 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230039AbhFVLlg (ORCPT ); Tue, 22 Jun 2021 07:41:36 -0400 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20210622113917epoutp02448a472bc7117da11deb700e1186a4ce~K5JgHkKGp0362303623epoutp02w for ; Tue, 22 Jun 2021 11:39:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20210622113917epoutp02448a472bc7117da11deb700e1186a4ce~K5JgHkKGp0362303623epoutp02w DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1624361957; bh=s1Avvz1h66BixbIt3cMuqFT42a4Y6eRXBpAQuPpp6qw=; h=From:To:Cc:Subject:Date:References:From; b=FHN3bvqEZ5XNAyPokSjfYGbwy+y4cnkHdLZmDqxYjrVpbnvMbKM9IwZi3NKxlClzA TTjVOH5Z6gTESh24JfFf3GAhSf9hXvJ4yEA2i6Di0JHzXcQTQjxWl9tOEa/LuZ54Mu lc5u4lyvJNoEq0WWPZIZ/QQzXm1+XdsMjd99371U= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20210622113916epcas2p32f6acc194b1a6793eb53850b6ae5ef49~K5Jfgv8ZU1372513725epcas2p3F; Tue, 22 Jun 2021 11:39:16 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.40.187]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4G8PYv3tWsz4x9Q1; Tue, 22 Jun 2021 11:39:15 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id D0.0B.09571.3EBC1D06; Tue, 22 Jun 2021 20:39:15 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20210622113915epcas2p284c61291fc9d83487f6dfebb65fd4e9b~K5JeJ7Uuk0831208312epcas2p2J; Tue, 22 Jun 2021 11:39:15 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210622113915epsmtrp12b2960d91be90a33f08cf2cbff0bc16b~K5JeJPXHz0725207252epsmtrp1W; Tue, 22 Jun 2021 11:39:15 +0000 (GMT) X-AuditID: b6c32a48-1dfff70000002563-59-60d1cbe39e04 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 61.53.08394.2EBC1D06; Tue, 22 Jun 2021 20:39:15 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [12.36.155.120]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210622113914epsmtip263687963dec77073818dc30645a0b2cf~K5Jd_A5g40096900969epsmtip2f; Tue, 22 Jun 2021 11:39:14 +0000 (GMT) From: Daehwan Jung To: Greg Kroah-Hartman Cc: Daehwan Jung , Mathias Nyman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: usb: host: Reduce xhci_handshake timeout in xhci_reset Date: Tue, 22 Jun 2021 20:24:56 +0900 Message-Id: <1624361096-41282-1-git-send-email-dh10.jung@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHKsWRmVeSWpSXmKPExsWy7bCmme7j0xcTDFZskLW4s2Aak0Xz4vVs Fpd3zWGzWLSsldmiedMUVgdWj8V7XjJ57J+7ht2jb8sqRo/Pm+QCWKJybDJSE1NSixRS85Lz UzLz0m2VvIPjneNNzQwMdQ0tLcyVFPISc1NtlVx8AnTdMnOA9ioplCXmlAKFAhKLi5X07WyK 8ktLUhUy8otLbJVSC1JyCgwNC/SKE3OLS/PS9ZLzc60MDQyMTIEqE3IytnZOZyv4yFGxYFUL YwNjP3sXIyeHhICJxI9ll1lBbCGBHYwSc5YEdjFyAdmfGCWunLrKAuF8Y5S48/oTK0zHwstz 2CESexkl7vZ8YYJo/8EosW2dTRcjBwebgJbE94WMIGERAWOJ/rOzwOqZBfoYJeZ3fwUbJCxg L3Fn/RKwIhYBVYnDs46C2bwCrhLL585igVgmJ3HzXCczhN3PLrHjbh2E7SIxc8ZVNghbWOLV 8S1Q70hJvOxvYwe5QUKgXGLRfDuQvRICHYwSaz6dZYSoMZaY9aydEaSGWUBTYv0ufYhyZYkj t8C2MgvwSXQc/gs1hVeio00IolFZYvrlCdBQkJQ4+Poc1GEeEhdfLGOEBEKsxLm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ql VLVP+pr8QOZUxtOw5oeyliz/+kTVPFpnvL388PK3niK3ELnLspqim9YZtPmXTQnYbrY7x4G3 Z/X8/xdKH0zmiuhZkWpgVqoebq7s+ii1+lKfsCHrtIAXaoEBntm7P31m/rh9Xf1HAcWs7r1u VewXQlh02nh5O/xnvVm8wokzbsH+tNrGCxzl7QVRScKOrgeaPllUFn+aumh1kDP7QRWb1bZh DExdB2OFXpuzsiiXNB6TFXU2MC589fXNnsd+f9Z1epxT/j3B5t+qsLS+g/6cO6aon2Vgn77j cMhzTX071op/vyP+fw9O157FMjPZXWdP3uop7UosxRmJhlrMRcWJAH874HmDAgAA X-CMS-MailID: 20210622113915epcas2p284c61291fc9d83487f6dfebb65fd4e9b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210622113915epcas2p284c61291fc9d83487f6dfebb65fd4e9b References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It seems 10 secs timeout is too long in general case. A core would wait for 10 secs without doing other task and it can be happended on every device. It's better to reduce timeout for general case and use new quirk if needed. Signed-off-by: Daehwan Jung --- 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 9248ce8..0a1b6be 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