Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2352927pxj; Sun, 16 May 2021 23:08:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3qpfX5gMXymuHShmsMqoxPclSwSe95o/ufrCc4ACC1ZWDpYN6oB2kkOqFuxdZ1LOula7c X-Received: by 2002:a05:6402:128f:: with SMTP id w15mr24267633edv.354.1621231731819; Sun, 16 May 2021 23:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621231731; cv=none; d=google.com; s=arc-20160816; b=iGBCkZYoP1v4HQ8eaZZetHuY7K5L4nv9b4srrGNJpnCCeYyh9w3A44aUFZt0qwe3T7 jV3zm/KPia4+zwfsKQxZiNQr1OfgK/nuDZ9E2l2TnkG3lFnLxT73NHjcaitT87UpZY34 fCeQQmWI518aBnxixmO24X52A7lcxB4pw0XvKgQhuOhds2aqSDo3V9cLZV4UvgyvOfe0 mgktd2k1XC2R5oskXOl/ZJdX95Nl5dmN1C9QzazeLWP4lJm02UGKMhmbSPCuL7OqD52J bSUzrgWBkgSJE+dIeeAf+noy72DWvz1ZveR2tfpBaDFUx3/BoFajIkOeAojYpLLlFj6M J3eg== 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=Yw/xXsqACHixDq3swwYf+wU3cdW3L9mi5Z8OOvp2IXY=; b=KGwQf7zAOKQgVjkHlLRNc9EZHXKDCGARH4LGlmcmLbhxz3/rnuDsSapKutq/ZkF1si 1m47pTxpFsjAHS9dcek79aQvOv0sl9Xi9xaxuQ5P7xmYyzI/c304pQPmBrKkpNvTZ4OJ Ux8RyD3rAsiwKJ5SBEgMTSN0wHi08UxqJnKsbRvBGC1hvd7yE4YcCLze4DrL39wQhSYl luC+FAReBI15j+oT0onkaFM+kZyn8mww0KCyv5DqWjbo+eP1LIhaI8FUgCmj06951vn1 6KgZS8I4F2QUHRoNuqRa7v3uCjGUiEDEpzpsn4nsmuw2PxMwpVeh1sDmzC0WTKZJdT4g Q1pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="D/fUFDAf"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p22si2010554eds.368.2021.05.16.23.08.25; Sun, 16 May 2021 23:08:51 -0700 (PDT) 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=pass header.i=@kernel.org header.s=k20201202 header.b="D/fUFDAf"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232649AbhEQBbf (ORCPT + 99 others); Sun, 16 May 2021 21:31:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:38174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbhEQBbe (ORCPT ); Sun, 16 May 2021 21:31:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F1ED611BE; Mon, 17 May 2021 01:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621215019; bh=gHAmi2NHDTka4+Zc5zDL0ZgHOqdFezotAMp/Y6iLG0Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D/fUFDAfNTgNx1wTUlZP9+Y/0Z/URWZUnXquRQ6GF6lM3L8jYjImPX34oza8xz082 lrdy5Aim1fxYC86l4EDM/y3pnkZ1VnwzBHbPlbtFMBYvWl/xMD5mE/0T9qvK6CAUBs S8TilG0rhiPul1TCQUKO9iPD9m87N7PhTH94J6uCNK4mTYrggTajKM6V4Bf6cGIa4T U5ixj4lKUC8y0XZmWqqLvhj6jDxDXk++kfXEjFt+LCWCA1tjgov20LtZSvFOtj+9Wt WHKZ5O9/G4eMoVYj1Ru3ILkwY3UoC+N5xnuEd+NRnou/7NXOsufF6xM3tMi5P8rzKk d2A7dewgCWZhw== Date: Mon, 17 May 2021 09:30:11 +0800 From: Peter Chen To: Badhri Jagan Sridharan Cc: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Tso , stable@vger.kernel.org Subject: Re: [PATCH v1 1/4] usb: typec: tcpm: Fix up PR_SWAP when vsafe0v is signalled Message-ID: <20210517013011.GA27963@nchen> References: <20210515052613.3261340-1-badhri@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210515052613.3261340-1-badhri@google.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-05-14 22:26:10, Badhri Jagan Sridharan wrote: > During PR_SWAP, When TCPM is in PR_SWAP_SNK_SRC_SINK_OFF, vbus is > expected to reach VSAFE0V when source turns of vbus. Do not move %s/of/off Peter > to SNK_UNATTACHED state when this happens. > > Fixes: 28b43d3d746b ("usb: typec: tcpm: Introduce vsafe0v for vbus") > Signed-off-by: Badhri Jagan Sridharan > --- > drivers/usb/typec/tcpm/tcpm.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c > index c4fdc00a3bc8..b93c4c8d7b15 100644 > --- a/drivers/usb/typec/tcpm/tcpm.c > +++ b/drivers/usb/typec/tcpm/tcpm.c > @@ -5114,6 +5114,9 @@ static void _tcpm_pd_vbus_vsafe0v(struct tcpm_port *port) > tcpm_set_state(port, SNK_UNATTACHED, 0); > } > break; > + case PR_SWAP_SNK_SRC_SINK_OFF: > + /* Do nothing, vsafe0v is expected during transition */ > + break; > default: > if (port->pwr_role == TYPEC_SINK && port->auto_vbus_discharge_enabled) > tcpm_set_state(port, SNK_UNATTACHED, 0); > -- > 2.31.1.751.gd2f1c929bd-goog > -- Thanks, Peter Chen