Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1395519ima; Sun, 21 Oct 2018 10:45:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV624gsGgAQVO1HjdqqodQ43SxZd93CaVHY1A1CnV0LyEcYgqFBI69jrcCGzSV11mKvUl3Igr X-Received: by 2002:a62:4c3:: with SMTP id 186-v6mr41980828pfe.156.1540143906183; Sun, 21 Oct 2018 10:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540143906; cv=none; d=google.com; s=arc-20160816; b=rbVgYnShq3BhwyCo/iFlbyyPfgFnCIHqwbhFRWJ1hNt7fmOGxURGrWhln1X/WfDTME W0cSg4lEOgId4K3rFOsfc7k1ytKfMCZ6yQNnoXeL5pkfstpxWVNUQCp/Mv/RODjOROKg nAEXvDLVgF54QMy79SXZ68Ps9aNo+wP8tFz2aBEbH2zgPLnbK2RNELgN0DRg/TGsGOXv LNcMixvGPAXBAOaDA5Ho6e58MUF/cvCV17Cw8yqipyhvuOUxW9xmzywwL6GgvJuNQfzB aOUWb0WFkHklWqlrJBYL+kNaeHeVQnNgUZa0W/SiSnTV5kLJL+s82rfb92e+jkTZugEF QYXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from; bh=m8sxFsDWzss+3BO0Rp562L3Ja++loClG64UPvePqgLc=; b=AqsoCu4q16S9E55y6+rapR6OT47N4Puz0FikuzElol5XWVDRRYfLI4/GGQHdyefdho 1zL2vnS3ofCETtEElkarDtFlw7lLOjH4w5RX5ysAW+o7SnBm3k5BLPa/zPnGkcOSAqs9 UiKZ8In54LnpyvTr6mMkXXu5wNYuz8l/3OqCw2MhvPpE36rT0NSeLGghZXTaq0Sn/naV t0JtVIk73m9hFepbr4vSrXesK4aYBL95tGzFuZRWN/eoIpfRADYaDRkgvzfapshvPxmc PX15X5sMd5vhC1uwjmSc74kItmr8xdDiHuYxiRNEONIPzAnQ6VkpWe+5nL9SDgkNGXhx jjOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11-v6si10696451pgh.511.2018.10.21.10.44.50; Sun, 21 Oct 2018 10:45:06 -0700 (PDT) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728219AbeJVBYA (ORCPT + 99 others); Sun, 21 Oct 2018 21:24:00 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:58567 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727688AbeJVBX7 (ORCPT ); Sun, 21 Oct 2018 21:23:59 -0400 Received: from [111.196.56.27] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1gEHDn-0005bZ-4L; Sun, 21 Oct 2018 17:08:59 +0000 From: Aaron Ma To: aaron.ma@canonical.com, mathias.nyman@intel.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] usb: xhci: fix timeout for transition from RExit to U0 Date: Mon, 22 Oct 2018 01:08:45 +0800 Message-Id: <1540141725-13047-2-git-send-email-aaron.ma@canonical.com> X-Mailer: git-send-email 1.8.5.5 In-Reply-To: <1540141725-13047-1-git-send-email-aaron.ma@canonical.com> References: <1540141725-13047-1-git-send-email-aaron.ma@canonical.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This definition is used by msecs_to_jiffies in milliseconds. According to the comments, max rexit timeout should be 20ms. Align with the comments to properly calculate the delay. Verified on Sunrise Point-LP and Cannon Lake. Signed-off-by: Aaron Ma --- drivers/usb/host/xhci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 6230a578324c..30225c53be1c 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -1678,7 +1678,7 @@ struct xhci_bus_state { * It can take up to 20 ms to transition from RExit to U0 on the * Intel Lynx Point LP xHCI host. */ -#define XHCI_MAX_REXIT_TIMEOUT (20 * 1000) +#define XHCI_MAX_REXIT_TIMEOUT 20 static inline unsigned int hcd_index(struct usb_hcd *hcd) { -- 2.19.1