Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3039425ybn; Thu, 26 Sep 2019 23:32:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyofj5a/WPA51O4ClLBtULwWfHJrp5n2F8Wt5SeDeCUz5x97j/76qTaOzMkoeR1vcblHSAI X-Received: by 2002:a17:906:234e:: with SMTP id m14mr6293593eja.118.1569565944315; Thu, 26 Sep 2019 23:32:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569565944; cv=none; d=google.com; s=arc-20160816; b=Us8IEVRgNY3CC/jVbT2B343vlixx2OCbkjqRAJ/HXd4Tynm8Ng3oLTfOK5roQ5ymii 6KXQju8I10GyViB5BcLAyvM1QwCk30sqNDPsTN6ohIlrPkg2fLhEopG8uo/wbANMvOfv 8/UJ+d2kcKy/kM/ZIKdok8wlRc/bXOAsho+7zal2Ck0pbwU2qwptKdUlosxMwV7giWfN f1bnYo61MpK0fiP6laEcDQehWdvc0wl0+quNt0DpmBllP4/3Gr/iL/wuQykUVbGiAwvv HRelOi+Iq04sHUk3tijgy57RaPDrWaJ16ALEBoRaghAfDAnxNbphOpRZSifOAQBF2dYP jV2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Z0kqtBAl6VfA14dWKgI2m22pcojuQxs7u+k21HQF/rQ=; b=yPO49hwAfakGj9BbFN5tSq2XIj/cBq6WAcYvxoPT0cjE09kJosnZmMutrDUIwBH/ut BwlK9bsYAAuHOt2niwPNQS8kIYle1pQCv+wol9qNrgqQllY49HSilDaNjrkYGjXhLLem RnNQmMDvKGOIuTKRJcdVYHsu10voe5Pu0GeTW09UZlgPn5IKT97kruFBCAa8h3eiXNGk 3uCG0KXTeK0wC9vWZoUhDEQbWJF4aj1wdeEBezy4D8b26jkNXaincp+wG340uYy2vDY7 yC4k/kCr2yZGwuUfCa4wdPva9YATlsdIleh4H3ZKIqFxVvSLq2MZAgqvlIXHgFCJoNcC tU6g== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si975531ede.380.2019.09.26.23.32.00; Thu, 26 Sep 2019 23:32:24 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725914AbfI0G2Z (ORCPT + 99 others); Fri, 27 Sep 2019 02:28:25 -0400 Received: from mga12.intel.com ([192.55.52.136]:52431 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbfI0G2Z (ORCPT ); Fri, 27 Sep 2019 02:28:25 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2019 23:28:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,554,1559545200"; d="scan'208";a="193110324" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.170]) ([10.237.72.170]) by orsmga003.jf.intel.com with ESMTP; 26 Sep 2019 23:28:23 -0700 Subject: Re: [PATCH] xhci: Increase STS_SAVE timeout in xhci_suspend() To: Kai-Heng Feng , mathias.nyman@intel.com, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190926175722.2507-1-kai.heng.feng@canonical.com> From: Mathias Nyman Message-ID: Date: Fri, 27 Sep 2019 09:30:20 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190926175722.2507-1-kai.heng.feng@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26.9.2019 20.57, Kai-Heng Feng wrote: > After commit f7fac17ca925 ("xhci: Convert xhci_handshake() to use > readl_poll_timeout_atomic()"), ASMedia xHCI may fail to suspend. > > Although the algorithms are essentially the same, the old max timeout is > (usec + usec * time of doing readl()), and the new max timeout is just > usec, which is much less than the old one. > > Increase the timeout to make ASMedia xHCI able to suspend again. > > BugLink: https://bugs.launchpad.net/bugs/1844021 > Fixes: f7fac17ca925 ("xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()") > Signed-off-by: Kai-Heng Feng > --- Thanks, adding to queue with stable tag for v5.2+ kernels -Mathias