Received: by 10.192.165.148 with SMTP id m20csp4178627imm; Mon, 30 Apr 2018 13:16:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrGNWWViiKgxveRFyX6HHCgFGpedY2hGVxuYTAa2TJqZ1jSELvcM+/+sZWcp2tZF2TO/8iB X-Received: by 2002:a17:902:8d81:: with SMTP id v1-v6mr13238722plo.383.1525119414409; Mon, 30 Apr 2018 13:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525119414; cv=none; d=google.com; s=arc-20160816; b=hmU0fTStNskXh+ZPx1aBklZcZyniVfl7oGzoiAnanHP4KH36zY1rEoZm9NEbP0VsE+ AtvxImtaWFX/B1wF8epfqxikzzw9VgjmYyaTlVqKpiQBJV5nGmJ5ivYzCkgwYiY8m//T ytNcWbDxS2XicvNemkezFPiT13z3Ie6OxIgc4O2qPSBOXA3MjWLPnn6y1As/vPQjRaMS 5eOi4KJoOST7NAt7hkDYs1KmBlrXe3iWpLw8Z4pCCALQt6ZvUj/VVaKtvovgO4gd9wwh D4wRLm1HrQIhM4Humt+n27sZX04hD4q2Tzbzu0EYrHJnEA0q2UxnrXjsm+K8F+YxH7HP xhMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=89LpjdmtO3Ud1A48G16afZ2lhsxvnmBUew81iOxv3XM=; b=jnVMwW83we7yNbLWPCr+iv2Lsvg2fzaodka6P7XCiprq6rMiVRwStxiDLdEnBhYPLH YWRC2TmM4X7vQXp4qbkwlpHTiRSaUTLszCoxtrelHke4XTILEgKApaV9asLWKK0kvAUK xxONmx8JMMmjRANWGtn2zQ5TiWYG3nUP81vQ13HI3d3d8s2tFqHzicqNUNxglUz184TV mksB0uMZGxI3hiQh0NyRjxdhoD8Nb5ygb0rUzFRkSUu8tLB7HyXgyW+6+RXFQ7NI/aqn MPXgTv2T65rnSLR4dfAlQdHJFVzO/veBxpmWHt7DcFUWFbjaprxDIDRy9dc9LJFZKo1I 1org== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4-v6si8013792ply.351.2018.04.30.13.16.40; Mon, 30 Apr 2018 13:16:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755890AbeD3UQd (ORCPT + 99 others); Mon, 30 Apr 2018 16:16:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:33080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932065AbeD3T1B (ORCPT ); Mon, 30 Apr 2018 15:27:01 -0400 Received: from localhost (unknown [104.132.1.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3942622DCB; Mon, 30 Apr 2018 19:27:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3942622DCB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quanxian Wang , Heikki Krogerus Subject: [PATCH 4.14 18/91] usb: typec: ucsi: Increase command completion timeout value Date: Mon, 30 Apr 2018 12:24:00 -0700 Message-Id: <20180430184005.166878717@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180430184004.216234025@linuxfoundation.org> References: <20180430184004.216234025@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heikki Krogerus commit b1b59e16075f5e5da2943ce8de724ab96bc3c6c2 upstream. On some boards, under heavy load, the EC firmware is unable to complete commands even in one second. Increasing the command completion timeout value to five seconds. Reported-by: Quanxian Wang Fixes: c1b0bc2dabfa ("usb: typec: Add support for UCSI interface") Cc: Signed-off-by: Heikki Krogerus Signed-off-by: Greg Kroah-Hartman --- drivers/usb/typec/ucsi/ucsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/typec/ucsi/ucsi.c +++ b/drivers/usb/typec/ucsi/ucsi.c @@ -31,7 +31,7 @@ * difficult to estimate the time it takes for the system to process the command * before it is actually passed to the PPM. */ -#define UCSI_TIMEOUT_MS 1000 +#define UCSI_TIMEOUT_MS 5000 /* * UCSI_SWAP_TIMEOUT_MS - Timeout for role swap requests