Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3276428imj; Tue, 19 Feb 2019 00:10:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IbSmbHikxqafm0/bBnYTwo1/CaCEr95fO94zQxdSHKI+GB5DoDZnZ1MOkKjmvOTtkQOjlM/ X-Received: by 2002:a17:902:4827:: with SMTP id s36mr29001677pld.168.1550563815219; Tue, 19 Feb 2019 00:10:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550563815; cv=none; d=google.com; s=arc-20160816; b=aMKshwi6DzL7TOoAEzwOo2L0Ydy+oxBdAvuQDtPTPTJ3NVf8svz9EpoV20L14RCJDA Eazddv5l7cL8Pv2fLinj2kedah1fodky4whrXKyv72XJSicFGD7bjU3TeRe5n2avZlD4 UUVfLioy3/Vj0cDoPmwC5cPTuUeXCbn75Usv6UJStC7hfJl6l5WdmbmisaMNRe+HkuvQ 4Qq5IzZggZhQiH3YKnlGH5MUEyFf18o2MfYeucBklSg0cYC+FqfQ/7wUkAquv2aQh+Da D1fZLmSmuQYj1e0TtycFnx/QhyMDQ8smpZSk+KwkGEN9VBsA4Ss+1z8OOJlq/yJ6duNA jYRw== 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=/bCu6PlclPfRYqwhw0RTi0ljoeeZbrlf1dKMjASdTRs=; b=S9U3znM32CndbTvliTV4v6jCjYgoTYNpMKI9dJDKlnItTugBK4FxgE9t3wrgyOVFw0 FJTaRCAEOF53+qq7zaxNZTDDnIYBytvZ2XrAAiOszuVkQdTjYUJLGi5yeYMjp3cS/HQ3 /ICwhLVTSDYu/nYEYjDN7lC9C9+R66Kpt0CyHgOD4ZHEoiYSLhKMgEHuA4p/EeXA1wtb K6+rL8O02MHpFzYTOqgbtn3rjGyaBiQ/k/yA4C+2jnMfwGdZwlFOJ0yUp5eFhVypu/C4 fctn0ypLmN3sHPsEucsbCy2ZKvPYI9jaLH11x6iu6/ZrsnmrcbyQqkKHWL3scOQYQ6XX 1Uew== 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 i3si8226013plt.120.2019.02.19.00.10.00; Tue, 19 Feb 2019 00:10:15 -0800 (PST) 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 S1727142AbfBSIJd (ORCPT + 99 others); Tue, 19 Feb 2019 03:09:33 -0500 Received: from mga06.intel.com ([134.134.136.31]:54323 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbfBSIJc (ORCPT ); Tue, 19 Feb 2019 03:09:32 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2019 00:09:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,387,1544515200"; d="scan'208";a="300810105" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.164]) ([10.237.72.164]) by orsmga005.jf.intel.com with ESMTP; 19 Feb 2019 00:09:30 -0800 Subject: Re: [PATCH 4.4 026/143] usb: hub: delay hub autosuspend if USB3 port is still link training To: Alan Stern , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Sasha Levin References: From: Mathias Nyman Message-ID: Date: Tue, 19 Feb 2019 10:11:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: 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 18.2.2019 17.39, Alan Stern wrote: > On Mon, 18 Feb 2019, Greg Kroah-Hartman wrote: > >> 4.4-stable review patch. If anyone has any objections, please let me know. >> >> ------------------ >> >> [ Upstream commit e86108940e541febf35813402ff29fa6f4a9ac0b ] >> >> When initializing a hub we want to give a USB3 port in link training >> the same debounce delay time before autosuspening the hub as already >> trained, connected enabled ports. >> >> USB3 ports won't reach the enabled state with "current connect status" and >> "connect status change" bits set until the USB3 link training finishes. >> >> Catching the port in link training (polling) and adding the debounce delay >> prevents unnecessary failed attempts to autosuspend the hub. >> >> Signed-off-by: Mathias Nyman >> Acked-by: Alan Stern >> Signed-off-by: Greg Kroah-Hartman >> Signed-off-by: Sasha Levin > > We should be careful with this commit; it has caused problems for some > people. Mathias has been working to fix them, but this commit > shouldn't go into -stable until the fixes are also ready to go. > This commit should be fine, it gives ports in link training a bit more time to finish. The commit causing issues is related, preventing runtime suspend if ports are link training: commit 2f31a67f01a8beb22cae754c53522cb61a005750 Author: Mathias Nyman Date: Thu Nov 15 11:38:41 2018 +0200 usb: xhci: Prevent bus suspend if a port connect change or polling state is detected Turns out it causes suspend issues on some MacBooks -Mathias