Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4974680pxu; Thu, 10 Dec 2020 09:48:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHsVLVyXGvqw+mXdBUo6/l4eUwAq1k3Ze0lRyEri9OjXuVSTY6YS7KFyrxq53EiY3+w4Pe X-Received: by 2002:aa7:cb49:: with SMTP id w9mr8184489edt.357.1607622485720; Thu, 10 Dec 2020 09:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607622485; cv=none; d=google.com; s=arc-20160816; b=bYWeYsAqlNHxCJmOdP9wH93zkgGFRW/QQ1CaKujwlfq1ZOZCTWe6DLE7/qA/45zYTD 0NelSIb2Yk8/feZRX2YRPl7rTv+LcHOHUeghi6BmGFSsX99f8Y3iSOTcAOp2zI1C+qqm Z8tHQmKNoStY03VnfN1j1fmYw/ksgq+SEu5LD0q9vS9vaCnfkjIdiiBFIKU2PYDvA/aO xOWB5UaFBVBDRsQhif30INV4iUz8cHg9+R55KE1hjSn8SYQEOme+c90CAfXY0BKgzVII raZng10rcLgzawkT/Fj0WDQ364yIWx7UGTOF313zQxAZ9oGHlnSFQAjhREAuATwCXXvh pPQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DJPibpTBI7ibES47Gz9om6shkGvNBtaQ4yr+2oUWILs=; b=cjvxmZfoigurHuQGm/2xszz5cYgoKplIKAnY5AMHF5eugB9Ea3NOtTlYLN3nGG0nrG tu1pW1J+wNQDHK+qcuxRoEVArJeypNErU94jtvZ+wVl0ESMJ44wdM9ztdWv8PfG8FpOK +4bmm72x5JFvdkGQJ8WajuSf4ICGt9uv81waayTF38tH3yoRxeM0TWm0agUjX3XXWMfO gIdAEgFGhPs7zEQePd4gnfAGJ6u8Ht0cbiJWgu51eD5L84uoZNoJ8KUwyGYW4/9q7qSD O0ncvs6mAJEKKffG044lrROomdAWBr0fPfr+RVhLbi5EURO+NV8VU1UVkMJQXc8Ody5I 513g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=Q6adGXIO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x101si3074156ede.118.2020.12.10.09.47.42; Thu, 10 Dec 2020 09:48:05 -0800 (PST) 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=fail header.i=@roeck-us.net header.s=default header.b=Q6adGXIO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392818AbgLJRoq (ORCPT + 99 others); Thu, 10 Dec 2020 12:44:46 -0500 Received: from gproxy3-pub.mail.unifiedlayer.com ([69.89.30.42]:33998 "EHLO gproxy3-pub.mail.unifiedlayer.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387836AbgLJRod (ORCPT ); Thu, 10 Dec 2020 12:44:33 -0500 Received: from cmgw10.unifiedlayer.com (unknown [10.9.0.10]) by gproxy3.mail.unifiedlayer.com (Postfix) with ESMTP id B9ADF4010F for ; Thu, 10 Dec 2020 10:43:49 -0700 (MST) Received: from bh-25.webhostbox.net ([208.91.199.152]) by cmsmtp with ESMTP id nPynk2rEBDlydnPynkobTs; Thu, 10 Dec 2020 10:43:49 -0700 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.3 cv=A9VCwZeG c=1 sm=1 tr=0 a=QNED+QcLUkoL9qulTODnwA==:117 a=2cfIYNtKkjgZNaOwnGXpGw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=kj9zAlcOel0A:10:nop_charset_1 a=zTNgK-yGK50A:10:nop_rcvd_month_year a=evQFzbml-YQA:10:endurance_base64_authed_username_1 a=1XWaLZrsAAAA:8 a=_jlGtV7tAAAA:8 a=QyXUC8HyAAAA:8 a=ag1SF4gXAAAA:8 a=cOPUhUyyOuhHbND_QhoA:9 a=CjuIK1q_8ugA:10:nop_charset_2 a=nlm17XC03S6CtCLSeiRr:22 a=Yupwre4RP9_Eg_Bd0iYG:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DJPibpTBI7ibES47Gz9om6shkGvNBtaQ4yr+2oUWILs=; b=Q6adGXIOQorfAD2KGYjHgscRi4 29PK73BFnvitInNkn0YKR4XA79OIuQmB7+NYFQmLpzWT2yd18gsSgurPQ/I/zsMhCrS6HGo9gSEFB 73RYB/Dj1Xt+J4dl9VY3qMsdjJmyzI8lVXuvbMBL0dWNeR4Opl+0fRNJB4DR39O2Nk0J+s0HUIfEq ZNXAQk3zAXXhHIAQsJevchWUHxIniugQV2Eg0koDmLGX4wyctqmRrGLl8j3ap+C5LW+uBUwfAulFu C6TifT8GC8Xjg2/7+jgexyWGshV7jKzEdGbOYibKWI+n6gOB45GscoF+9E39zqLyEpHFYmIoptLEF lrxWI6Ow==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:60456 helo=localhost) by bh-25.webhostbox.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1knPym-001SVA-T7; Thu, 10 Dec 2020 17:43:49 +0000 Date: Thu, 10 Dec 2020 09:43:48 -0800 From: Guenter Roeck To: Greg Kroah-Hartman Cc: heikki.krogerus@linux.intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Tso , Badhri Jagan Sridharan , Will McVicker Subject: Re: [PATCH 3/5] USB: typec: tcpm: Fix PR_SWAP error handling Message-ID: <20201210174348.GD107395@roeck-us.net> References: <20201210160521.3417426-1-gregkh@linuxfoundation.org> <20201210160521.3417426-4-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201210160521.3417426-4-gregkh@linuxfoundation.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-BWhitelist: no X-Source-IP: 108.223.40.66 X-Source-L: No X-Exim-ID: 1knPym-001SVA-T7 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 108-223-40-66.lightspeed.sntcca.sbcglobal.net (localhost) [108.223.40.66]:60456 X-Source-Auth: guenter@roeck-us.net X-Email-Count: 19 X-Org: HG=direseller_whb_net_legacy;ORG=directi; X-Source-Cap: cm9lY2s7YWN0aXZzdG07YmgtMjUud2ViaG9zdGJveC5uZXQ= X-Local-Domain: yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 10, 2020 at 05:05:19PM +0100, Greg Kroah-Hartman wrote: > From: Kyle Tso > > PD rev3.0 8.3.3.16.3.6 PE_PRS_SRC_SNK_Wait_Source_on State > The Policy Enging Shall transition to the ErrorRecovery state when the > PSSourceOnTimer times out ... > > Cc: Guenter Roeck > Cc: Heikki Krogerus > Cc: Badhri Jagan Sridharan > Signed-off-by: Kyle Tso > Signed-off-by: Will McVicker > Signed-off-by: Greg Kroah-Hartman Reviewed-by: Guenter Roeck > --- > drivers/usb/typec/tcpm/tcpm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c > index 0efda59bb104..d51c45961893 100644 > --- a/drivers/usb/typec/tcpm/tcpm.c > +++ b/drivers/usb/typec/tcpm/tcpm.c > @@ -3728,7 +3728,7 @@ static void run_state_machine(struct tcpm_port *port) > tcpm_set_state(port, ERROR_RECOVERY, 0); > break; > } > - tcpm_set_state_cond(port, SNK_UNATTACHED, PD_T_PS_SOURCE_ON); > + tcpm_set_state(port, ERROR_RECOVERY, PD_T_PS_SOURCE_ON); > break; > case PR_SWAP_SRC_SNK_SINK_ON: > /* Set the vbus disconnect threshold for implicit contract */ > -- > 2.29.2 >